[Interest] Trouble compiling Qt4 with Visual C++ 2010
Yves Bailly
yves.bailly at sescoi.fr
Wed Nov 30 08:34:56 CET 2011
Greatings all,
I'm having trouble compiling Qt 4.7.4 on Windows 7 using Visual C++ 2010 (pro),
when trying to compile a debug-only flavor.
My "configure" line:
configure -debug -nomake examples -nomake demos -no-incredibuild-xge -no-dsp -qt-libjpeg -qt-libtiff
-qt-libmng -qt-libpng -qt-zlib -qt-sql-sqlite -mp -no-native-gestures -opensource -ltcg
The error appears when trying to link "tools/activeqt":
cd activeqt\ && C:\vs10\VC\BIN\nmake.exe -f Makefile
C:\vs10\VC\BIN\nmake.exe -f Makefile.Debug
link /LIBPATH:"d:\libsrc\qt-4.7.4-win32-debug\lib"
/LIBPATH:"d:\libsrc\qt-4.7.4-win32-debug\lib" /NOLOGO /DEBUG /DLL
/MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\qaxwidget.intermediate.manifest"
/OUT:..\..\..\..\..\plugins\designer\qaxwidget.dll
@C:\Users\YBAILL~1.DOM\AppData\Local\Temp\nmD167.tmp
LINK : fatal error LNK1104: cannot open file 'QtGuid.lib'
NMAKE : fatal error U1077: 'C:\vs10\VC\BIN\link.EXE' : return code '0x450'
When looking in the "Makefile.Debug" file, I see the line:
LIBS = d:\libsrc\qt-4.7.4-win32-debug\lib\QAxContainerd.lib
d:\libsrc\qt-4.7.4-win32-debug\lib\QtGuid4.lib d:\libsrc\qt-4.7.4-win32-debug\lib\QtCored4.lib
ole32.lib oleaut32.lib user32.lib gdi32.lib advapi32.lib QtGuid.lib QtCored.lib
When looking in the corresponding "Makefile.Release" file, from a release-only
flavor (which compiles fine), I see the line:
LIBS = d:\libsrc\qt-4.7.4-win32-release\lib\QAxContainer.lib
d:\libsrc\qt-4.7.4-win32-release\lib\QtGui4.lib d:\libsrc\qt-4.7.4-win32-release\lib\QtCore4.lib
ole32.lib oleaut32.lib user32.lib gdi32.lib advapi32.lib
The difference is at the end: in the "debug" makefile, qmake has added "QtGuid.lib QtCored.lib",
which is obviously wrong. More strange, this error doesn't appear when building a "debug-and-release"
flavor, only in a "debug" only flavor (both 32bits and 64bits).
Did I miss something? Has anyone a hint about how to fis this?
On the other hand, I don't really need activeqt, so I could simply disable it
completly. However I couldn't find a "configure" option for this... any idea?
Thanks a lot for any hint, have all a nice day :-)
--
/- Yves Bailly - Software developper -\
\- Sescoi R&D - http://www.sescoi.fr -/
"The possible is done. The impossible is being done. For miracles,
thanks to allow a little delay."
More information about the Interest
mailing list