Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows
hi,
if developing platform independent software in linux using gtk+/gtkmm , you've managed cross compile windows, guide you.
i'm posting because after researching topic myself, encountered many posts people have abandoned gtk+/gtkmm wxwidgets because of gtks ugly default appearance in windows/wine. gtk+ themeable in windows/wine gnome. have set correctly . . . here's how.
guide gtkmm gtk+ similar.
(1) firstly, download , install gtkmm windows using wine. (you have if have cross compiled app windows)
https://live.gnome.org/gtkmm/mswindows
(2) run these commands create proper directory structure. (substitute 'proj' whatever project called)
mkdir ~/proj
mkdir ~/proj/bin
mkdir ~/proj/etc
mkdir ~/proj/etc/gtk-2.0
mkdir ~/proj/lib
mkdir ~/proj/lib/gtk-2.0
mkdir ~/proj/lib/gtk-2.0/2.10.0
mkdir ~/proj/lib/gtk-2.0/2.10.0/engines
mkdir ~/proj/share
mkdir ~/proj/share/themes
(3) move directory gtkmm installed (probably ~/.wine/drive_c/gtkmm/)
copy .dlls redist folder ~/proj/bin
cp redist/*.dll ~/proj/bin
(4) cross compile software windows , copy built executable ~/proj/bin
there several decent guides , forum posts on how if aren't sure, have google.
(5) download , install gtk+ theme selector windows
http://gtk-win.sourceforge.net/home/...preferencetool
(6) theme selector comes heap of themes , popular engines, built windows. you'll have copy them project folder go directory installed (try ~/.wine/drive_c/program files/gtk/2.0)
copy lib , share folders ~/proj
really, don't need every engine , theme you'll able try them , choose favorite. also, should able download theme , copy correct directory.
(7) move ~/proj/etc/gtk-2.0
create file , name gtkrc
copy gtkrc substitute aurora name of preferred theme
gtk-theme-name = "aurora"
move ~/proj/bin , run program in wine. more sexy, isn't it??
if give ~/proj directory windows user, run correctly , good. comments?
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows
Ubuntu
Comments
Post a Comment