Re: Building and packaging for Windows - theme?
control H a écrit : You copied some mingw dlls? That doesn't sound right. mingwm10.dll is usually required for thread support. Are you sure about that? As far as I understood mingw dll's are only used during compile time, the result should be completely independant on mingw or other unixish help dll's. I've compiled my linux gtk app using mingw. I've also installed ldd. Let's run this on my mingw compiled exe: $ ldd ./foo.exe ntdll.dll = ntdll.dll (0x7c90) kernel32.dll = C:\WINDOWS\system32\kernel32.dll (0x7c80) libglib-2.0-0.dll = c:\mingw\bin\libglib-2.0-0.dll (0x1000) iconv.dll = c:\mingw\bin\iconv.dll (0x54) MSVCRT.dll = C:\WINDOWS\system32\MSVCRT.dll (0x77be) intl.dll = c:\mingw\bin\intl.dll (0x3d) ADVAPI32.DLL = C:\WINDOWS\system32\ADVAPI32.DLL (0x77f4) RPCRT4.dll = C:\WINDOWS\system32\RPCRT4.dll (0x77da) OLE32.dll = C:\WINDOWS\system32\OLE32.dll (0x774a) GDI32.dll = C:\WINDOWS\system32\GDI32.dll (0x77e4) USER32.dll = C:\WINDOWS\system32\USER32.dll (0x77d1) SHELL32.DLL = C:\WINDOWS\system32\SHELL32.DLL (0x7c9c) SHLWAPI.dll = C:\WINDOWS\system32\SHLWAPI.dll (0x77e9) WS2_32.DLL = C:\WINDOWS\system32\WS2_32.DLL (0x71a3) WS2HELP.dll = C:\WINDOWS\system32\WS2HELP.dll (0x71a2) libgthread-2.0-0.dll = c:\mingw\bin\libgthread-2.0-0.dll (0x3e) LIBMYSQL.dll = c:\Program Files\MySQL\MySQL Server 5.0\bin\LIBMYSQL.dll (0x62) WSOCK32.dll = C:\WINDOWS\system32\WSOCK32.dll (0x71a5) As you can see it's threaded (libgthread) but independant on custom dll's. So your app should work by having all relevant gtk dll's in PATH. regards, CH That's right. I don't depend on mingwm10.dll, but I do on a dozen gtk-related dlls, which I got from /mingw/bin and I have to copy them to the program's directory. Is there a better place to get them from? Other than the gtk-win32 zipfiles? Also i found I have to copy the .mo files to get the translations. My program installer ends up being 5M instead of 200K like it is on Linux, but it works and I can live with that. Cheers, Andrew ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Building and packaging for Windows - theme?
That's right. I don't depend on mingwm10.dll, but I do on a dozen gtk-related dlls, which I got from /mingw/bin Ah. In my opinion it is not a good idea to put stuff from other sources in the mingw tree. I tend to keep things from different sources in different locations, and then just use PATH, PKG_CONFIG_PATH, compiler and linker flags, etc as necessary. Is there a better place to get them from? Other than the gtk-win32 zipfiles? Better in what way? At least with the zipfiles you see exactly what you have, and the zipfiles are the original distribution of GTK+ etc for Windows. Also i found I have to copy the .mo files to get the translations. Of course, as that is where the translations *are*. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Building and packaging for Windows - theme?
Daniel Atallah wrote: On 11/1/07, Andrew Smith [EMAIL PROTECTED] wrote: Thanks everybody. I managed to build ISO Master on mingw and run it on a stock Windows box (just copied some dlls from the mingw bin directory), looks like the GTK parts work fine. Still, I'll be sure to look at all the examples that you pointed out. You copied some mingw dlls? That doesn't sound right. mingwm10.dll is usually required for thread support. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Building and packaging for Windows - theme?
You copied some mingw dlls? That doesn't sound right. mingwm10.dll is usually required for thread support. Are you sure about that? As far as I understood mingw dll's are only used during compile time, the result should be completely independant on mingw or other unixish help dll's. I've compiled my linux gtk app using mingw. I've also installed ldd. Let's run this on my mingw compiled exe: $ ldd ./foo.exe ntdll.dll = ntdll.dll (0x7c90) kernel32.dll = C:\WINDOWS\system32\kernel32.dll (0x7c80) libglib-2.0-0.dll = c:\mingw\bin\libglib-2.0-0.dll (0x1000) iconv.dll = c:\mingw\bin\iconv.dll (0x54) MSVCRT.dll = C:\WINDOWS\system32\MSVCRT.dll (0x77be) intl.dll = c:\mingw\bin\intl.dll (0x3d) ADVAPI32.DLL = C:\WINDOWS\system32\ADVAPI32.DLL (0x77f4) RPCRT4.dll = C:\WINDOWS\system32\RPCRT4.dll (0x77da) OLE32.dll = C:\WINDOWS\system32\OLE32.dll (0x774a) GDI32.dll = C:\WINDOWS\system32\GDI32.dll (0x77e4) USER32.dll = C:\WINDOWS\system32\USER32.dll (0x77d1) SHELL32.DLL = C:\WINDOWS\system32\SHELL32.DLL (0x7c9c) SHLWAPI.dll = C:\WINDOWS\system32\SHLWAPI.dll (0x77e9) WS2_32.DLL = C:\WINDOWS\system32\WS2_32.DLL (0x71a3) WS2HELP.dll = C:\WINDOWS\system32\WS2HELP.dll (0x71a2) libgthread-2.0-0.dll = c:\mingw\bin\libgthread-2.0-0.dll (0x3e) LIBMYSQL.dll = c:\Program Files\MySQL\MySQL Server 5.0\bin\LIBMYSQL.dll (0x62) WSOCK32.dll = C:\WINDOWS\system32\WSOCK32.dll (0x71a5) As you can see it's threaded (libgthread) but independant on custom dll's. So your app should work by having all relevant gtk dll's in PATH. regards, CH ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Building and packaging for Windows - theme?
$ ldd ./foo.exe ntdll.dll = ntdll.dll (0x7c90) kernel32.dll = C:\WINDOWS\system32\kernel32.dll (0x7c80) libglib-2.0-0.dll = c:\mingw\bin\libglib-2.0-0.dll (0x1000) iconv.dll = c:\mingw\bin\iconv.dll (0x54) MSVCRT.dll = C:\WINDOWS\system32\MSVCRT.dll (0x77be) intl.dll = c:\mingw\bin\intl.dll (0x3d) ADVAPI32.DLL = C:\WINDOWS\system32\ADVAPI32.DLL (0x77f4) RPCRT4.dll = C:\WINDOWS\system32\RPCRT4.dll (0x77da) OLE32.dll = C:\WINDOWS\system32\OLE32.dll (0x774a) GDI32.dll = C:\WINDOWS\system32\GDI32.dll (0x77e4) USER32.dll = C:\WINDOWS\system32\USER32.dll (0x77d1) SHELL32.DLL = C:\WINDOWS\system32\SHELL32.DLL (0x7c9c) SHLWAPI.dll = C:\WINDOWS\system32\SHLWAPI.dll (0x77e9) WS2_32.DLL = C:\WINDOWS\system32\WS2_32.DLL (0x71a3) WS2HELP.dll = C:\WINDOWS\system32\WS2HELP.dll (0x71a2) libgthread-2.0-0.dll = c:\mingw\bin\libgthread-2.0-0.dll (0x3e) LIBMYSQL.dll = c:\Program Files\MySQL\MySQL Server 5.0\bin\LIBMYSQL.dll (0x62) WSOCK32.dll = C:\WINDOWS\system32\WSOCK32.dll (0x71a5) As you can see it's threaded (libgthread) but independant on custom dll's. So your app should work by having all relevant gtk dll's in PATH. I forgot to say, the above example is for a glib dependant program which in addition uses mysql. So for a gtk program you'll see many more dll's, but not some mingw dll. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Building and packaging for Windows - theme?
On 11/1/07, Andrew Smith [EMAIL PROTECTED] wrote: Thanks everybody. I managed to build ISO Master on mingw and run it on a stock Windows box (just copied some dlls from the mingw bin directory), looks like the GTK parts work fine. Still, I'll be sure to look at all the examples that you pointed out. You copied some mingw dlls? That doesn't sound right. With Vista even windows application don't look native any more :) but all the same, is there any way to give the GTK I ship with my program a special theme? So at least the gray background matches other applications? I guess the theme is inside one of the dlls (cause the stock buttons do show up), but I'm willing to recompile it if that's what it takes. You probably just need to use the MS-Windows theme (by specifying it in your gtkrc file) instead of the default theme. -D ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Building and packaging for Windows - theme?
Andrew Smith a écrit : Hello I am the author of ISO Master ( http://littlesvr.ca/isomaster/ ). It's a reasonably simple GTK application. I'd like to make a Windows version. If possible, without porting the GUI to Win32. I managed to compile ISO Master on Windows using cygwin, but I don't see how I could distribute it without a cygwin prerequisite. Can someone share ideas about how to compile a GTK application for Windows and package it so it includes GTK and its dependencies? Any tips you would care to share would be very much appreciated. Thanks in advance, Andrew Thanks everybody. I managed to build ISO Master on mingw and run it on a stock Windows box (just copied some dlls from the mingw bin directory), looks like the GTK parts work fine. Still, I'll be sure to look at all the examples that you pointed out. With Vista even windows application don't look native any more :) but all the same, is there any way to give the GTK I ship with my program a special theme? So at least the gray background matches other applications? I guess the theme is inside one of the dlls (cause the stock buttons do show up), but I'm willing to recompile it if that's what it takes. Cheers, Andrew ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list