irudkin
18th June 2007, 11:42
Hi
I'm trying to build Qt4.3.0 commercial on my laptop which uses WinXP SP2 compiling with VStudio 2003. Using the Visual Studio .Net2003 command prompt after configuring
configure -debug -stl -rtti -qt-style-windowsxp -shared - exceptions
I type NMake which fails at some point with the following
cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fptmp\obj\debug_shared\QtGuid_pch
.pch -nologo -Zm300 -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc -DQT_SHARED -DQT_THRE
AD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_EDITION=QT_EDITION_DESK
TOP -DQT_BUILD_GUI_LIB -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNIN
GS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DQT_RASTER_IMAGEENGINE -DQ
T_RASTER_PAINTENGINE -DQT_NO_CUPS -DQT_NO_LPR -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT
_HAVE_SSE -DQT_HAVE_SSE2 -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQ
_INTERNAL_QAPP_SRC -DQT_DLL -DQT_CORE_LIB -I"..\..\include\QtCore" -I"..\..\incl
ude\QtCore" -I"..\..\include" -I"..\..\include\QtGui" -I"tmp" -I"..\3rdparty\win
tab" -I"..\3rdparty\libpng" -I"..\3rdparty\zlib" -I"dialogs" -I"..\..\include\Ac
tiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\mkspecs\win32-msvc.net" -Fotmp\o
bj\debug_shared\ @C:\DOCUME~1\irudkin.TG\LOCALS~1\Temp\nm23A.tmp
moc_qwizard_win_p.cpp
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(36) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(41) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(42) : error C2270: 'metaObject' : mod
ifiers not allowed on nonmember functions
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(46) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(50) : error C2061: syntax error : ide
ntifier 'QVistaHelper'
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(50) : error C2146: syntax error : mis
sing '(' before identifier 'QVistaHelper'
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(51) : error C2352: 'QObject::qt_metac
ast' : illegal call of non-static member function
c:\Qt\4.3.0\include\QtCore\../../src\corelib\kernel\qobject.h(92) : see
declaration of 'QObject::qt_metacast'
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(54) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(56) : error C2352: 'QObject::qt_metac
all' : illegal call of non-static member function
c:\Qt\4.3.0\include\QtCore\../../src\corelib\kernel\qobject.h(92) : see
declaration of 'QObject::qt_metacall'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
I can compile with the same Qt config setting on another XP OS PC and it compiles with no problem. Why is this failing? Thanks
Cya Illya
I'm trying to build Qt4.3.0 commercial on my laptop which uses WinXP SP2 compiling with VStudio 2003. Using the Visual Studio .Net2003 command prompt after configuring
configure -debug -stl -rtti -qt-style-windowsxp -shared - exceptions
I type NMake which fails at some point with the following
cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fptmp\obj\debug_shared\QtGuid_pch
.pch -nologo -Zm300 -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc -DQT_SHARED -DQT_THRE
AD_SUPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_EDITION=QT_EDITION_DESK
TOP -DQT_BUILD_GUI_LIB -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNIN
GS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DQT_RASTER_IMAGEENGINE -DQ
T_RASTER_PAINTENGINE -DQT_NO_CUPS -DQT_NO_LPR -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT
_HAVE_SSE -DQT_HAVE_SSE2 -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQ
_INTERNAL_QAPP_SRC -DQT_DLL -DQT_CORE_LIB -I"..\..\include\QtCore" -I"..\..\incl
ude\QtCore" -I"..\..\include" -I"..\..\include\QtGui" -I"tmp" -I"..\3rdparty\win
tab" -I"..\3rdparty\libpng" -I"..\3rdparty\zlib" -I"dialogs" -I"..\..\include\Ac
tiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\mkspecs\win32-msvc.net" -Fotmp\o
bj\debug_shared\ @C:\DOCUME~1\irudkin.TG\LOCALS~1\Temp\nm23A.tmp
moc_qwizard_win_p.cpp
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(36) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(41) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(42) : error C2270: 'metaObject' : mod
ifiers not allowed on nonmember functions
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(46) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(50) : error C2061: syntax error : ide
ntifier 'QVistaHelper'
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(50) : error C2146: syntax error : mis
sing '(' before identifier 'QVistaHelper'
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(51) : error C2352: 'QObject::qt_metac
ast' : illegal call of non-static member function
c:\Qt\4.3.0\include\QtCore\../../src\corelib\kernel\qobject.h(92) : see
declaration of 'QObject::qt_metacast'
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(54) : error C2653: 'QVistaHelper' : i
s not a class or namespace name
tmp\moc\debug_shared\moc_qwizard_win_p.cpp(56) : error C2352: 'QObject::qt_metac
all' : illegal call of non-static member function
c:\Qt\4.3.0\include\QtCore\../../src\corelib\kernel\qobject.h(92) : see
declaration of 'QObject::qt_metacall'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
I can compile with the same Qt config setting on another XP OS PC and it compiles with no problem. Why is this failing? Thanks
Cya Illya