PDA

View Full Version : Build static on windows without deps on mingwm10.dll



ucomesdag
8th July 2007, 17:15
Hi all,

I want to build static with Qt 4.3.0 without the dependency on mingwm10.dll
Before I used this (http://wiki.qtcentre.org/index.php?title=Building_static_Qt_on_Windows) article on the wiki but the qmake.conf has changed with 4.3.0.

Can someone point me out what should be modified and where in the qmake.confof 4.3.0
Thanks a lot!

jpn
8th July 2007, 17:44
Could you try changing:

QMAKE_LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
to:

QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
and then:

> configure -static -no-exceptions

ucomesdag
9th July 2007, 06:46
Excellent!!! You saved me from trial and error and wasting my whole day recompiling the src...

First time was right!!!