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.

Share

Uco Mesdag

A sysadmin by day and a coder by night. Working as a senior Linux system engineer with plus 20 years of experience. I write about Linux, tech, code and other things that have my interest.

You've successfully subscribed to Mesd.ag
Great! Next, complete checkout for full access to Mesd.ag
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.