PDA

View Full Version : Linker Error, QT 2010.05 + VS 2010, Win, 32



justik
5th December 2010, 13:47
I have problem when trying to compile Qt 2010.05 with Visual Studio 2010 Ultimate(Win 7, 32bit).

Make and configure:

nmake distclean
configure -debug-and-release -opensource -no-stl -no-openssl -no-qt3support -no-phonon -nomake demos -nomake examples -qt-libpng -qt-zlib -qt-libmng -qt-libtiff -qt-libjpeg -platform win32-msvc2010
nmake

Error:

C:\Qt\2010.05\qt\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -
DWIN32 -DQT_LARGEFILE_SUPPORT -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=q
tjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_BUILD_SCRIPT_LIB -DQT_NO_US
ING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_MAKEDLL -DQT_NO_CAST_TO_
ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_
USE_FAST_CONCATENATION -D_USE_MATH_DEFINES -DBUILDING_QT__=1 -DWTF_USE_ACCELERAT
ED_COMPOSITING -DUSE_SYSTEM_MALLOC -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DB
UILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO
_EXPORT -DQT_DLL -DQT_CORE_LIB @tmp\moc\debug_shared/mocinclude.tmp -D_MSC_VER=1
600 -DWIN32 api\qscriptextensionplugin.h -o tmp\moc\debug_shared\moc_qscriptexte
nsionplugin.cpp
api\qscriptextensionplugin.h(43): Error: Undefined interface
NMAKE : fatal error U1077: 'C:\Qt\2010.05\qt\bin\moc.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

Thanks for your help...

justik
5th December 2010, 16:49
The flag -static was added and compilation was successfull. But during Visual Studio Add In configuration I obtained the following error:

QT in the given path was built with MinGW