> Date: Sun, 16 Jan 2011 22:45:15 +0100
> From: Dominik Riebeling <dominik.riebeling@...>
> Subject: Re: [Mingw-users] developing cross-platform GUIs
> To: MinGW Users List <mingw-users@...>
> Content-Type: text/plain; charset=UTF-8
> On Sun, Jan 16, 2011 at 6:54 AM, Simson Garfinkel <simsong@...> wrote:
>> 3. Qt compiled with mingw on windows.
>> Does anybody on the list have real experience with #2 or #3? Does it work well? Are there pitfalls? Is it pretty transparent and cross-platform?
> I maintain an application that uses Qt4 and works on Windows, Linux
> and Mac OS X. From my development point of view this works pretty
> nicely. There isn't almost anyhing you need to take care of,
> especially if you don't need to call platform-specific code. Some
> issues I came across:
> - For deployment our application is statically linked on Windows and
> Linux (OS X uses an application bundle, so no static linking required
> there) since we want a single binary. gcc-4.5 on Windows adds a
> dependency on libgcc and libstdc++, which is a bit unwanted for a
> static binary but can be resolved by adding -static-libgcc
> -static-libstdc++ to the linker options. You also need to build your
> own copy of Qt for static linking. This is pretty easy but takes a
Thanks for this note.
I'm not sure how to get mingw to statically link. Beyond the -static-libgcc and -static-libstdc++, what other flags do I need to specify?
Also, any special instructions for building the Qt?