Qt 4.3.0 static without mingwm10.dll

If you are looking to build Qt 4.3.0 static without the dependency on mingwm10.dll. Then you will need to modify qmake.conf that lives in <QTDIR>/mkspecswin32-g++qmake.conf.

Change:

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

to (add -static)

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

And then run:

configure -static -release -no-exceptions
mingw32-make sub-src

That’s all and should do it…

See also this wiki.


© 2024. All rights reserved.