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 (0x7c900000)
        kernel32.dll => C:\WINDOWS\system32\kernel32.dll (0x7c800000)
        libglib-2.0-0.dll => c:\mingw\bin\libglib-2.0-0.dll (0x10000000)
        iconv.dll => c:\mingw\bin\iconv.dll (0x540000)
        MSVCRT.dll => C:\WINDOWS\system32\MSVCRT.dll (0x77be0000)
        intl.dll => c:\mingw\bin\intl.dll (0x3d0000)
        ADVAPI32.DLL => C:\WINDOWS\system32\ADVAPI32.DLL (0x77f40000)
        RPCRT4.dll => C:\WINDOWS\system32\RPCRT4.dll (0x77da0000)
        OLE32.dll => C:\WINDOWS\system32\OLE32.dll (0x774a0000)
        GDI32.dll => C:\WINDOWS\system32\GDI32.dll (0x77e40000)
        USER32.dll => C:\WINDOWS\system32\USER32.dll (0x77d10000)
        SHELL32.DLL => C:\WINDOWS\system32\SHELL32.DLL (0x7c9c0000)
        SHLWAPI.dll => C:\WINDOWS\system32\SHLWAPI.dll (0x77e90000)
        WS2_32.DLL => C:\WINDOWS\system32\WS2_32.DLL (0x71a30000)
        WS2HELP.dll => C:\WINDOWS\system32\WS2HELP.dll (0x71a20000)
        libgthread-2.0-0.dll => c:\mingw\bin\libgthread-2.0-0.dll (0x3e0000)
        LIBMYSQL.dll => c:\Program Files\MySQL\MySQL Server
5.0\bin\LIBMYSQL.dll (0x620000)
        WSOCK32.dll => C:\WINDOWS\system32\WSOCK32.dll (0x71a50000)

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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]