[Development] Qt 5 mingw build trying to link against Qt5Cored0.dll

Stephen Chu stephen at ju-ju.com
Mon Nov 12 21:02:40 CET 2012


I ran into this error while trying to build Qt 5 from git with mingw:

mingw32-make[3]: Entering directory 'C:/Qt/5.0/qtbase/src/network'
mingw32-make -f Makefile.Debug all
mingw32-make[4]: Entering directory 'C:/Qt/5.0/qtbase/src/network'
g++ -shared -Wl,--out-implib,C:\Qt\5.0\qtbase\lib\libQt5Networkd.a -o 
..\..\lib\
Qt5Networkd.dll object_script.Qt5Networkd.Debug  -lws2_32 -ldnsapi 
-ladvapi32 -L
C:/Qt/5.0/qtbase/lib -lQt5Cored0 
tmp\obj\debug_shared\Qt5Networkd_resource_res.o

c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/
ld.exe: cannot find -lQt5Cored0

It seems to be looking for Qt5Cored0.dll instead of Qt5Cored.dll. Maybe 
some bug introduced by the lib renaming? This is from qt5 git, not the 
latest qtbase.



More information about the Development mailing list