虽然
configure -platform win32-msvc2005 -arch x86
运作良好,nmake立即发出致命错误:
Qt has not been ported to this architecture
我在64位Windows 7机器上构建。任何想法为什么会这样?
Generating Code...
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
-DQT_UIC -DQT_UIC_CPP_GENERATOR -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST
_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYS
TEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NODLL
-I"." -I"." -I"cpp" -I"." -I"..\..\..\include" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\xml" -I".
.\..\..\mkspecs\win32-msvc2005" -Fotmp\obj\release_shared\ @C:\Users\ronen\AppData\Local\Temp\nm60BD.tmp
cppextractimages.cpp
cppwritedeclaration.cpp
cppwriteicondata.cpp
cppwriteicondeclaration.cpp
cppwriteiconinitialization.cpp
cppwriteincludes.cpp
cppwriteinitialization.cpp
Generating Code...
link /LIBPATH:"c:\dev\Qt480\src\tools\bootstrap\release" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYST
EM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='
6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:"tmp\obj\release_shared\uic.intermedia
te.manifest" /OUT:..\..\..\bin\uic.exe @C:\Users\ronen\AppData\Local\Temp\nm7547.tmp
mt.exe -nologo -manifest "tmp\obj\release_shared\uic.intermediate.manifest" -outputresource:..\..\..\bin\uic.exe
;1
cd src\winmain\ && "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile.Debug all
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -
DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILD
ER -D_USE_MATH_DEFINES -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\include" -I"
tmp" -I"..\..\include\QtCore" -I"c:\dev\Qt480\include\qtmain" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\..\include\ActiveQt
" -I"tmp\moc\debug_shared" -I"..\..\mkspecs\win32-msvc2005" -Fotmp\obj\debug_shared\ @C:\Users\ronen\AppData\Local\Temp\
nm7813.tmp
qtmain_win.cpp
c:\dev\qt480\include\qtcore\../../src/corelib/arch/qatomic_arch.h(96) : fatal error C1189: #error : "Qt has not been po
rted to this architecture"
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
答案 0 :(得分:0)
尝试使用mingw构建它。我认为当你表演nmake时,这会对你有所帮助。我有关于用nmake构建的问题。尝试在更高版本的VS2008>
上构建它答案 1 :(得分:0)
您不需要提供arch参数。从qatomic_arch.h的来源看来它似乎跳过了QT_ARCH_WINDOWS
部分。所以尝试在没有-arch
的情况下构建。还要确保从32位Visual Studio命令提示符构建(假设VS2005具有64位编译器 - 我不记得它是否存在)。如果使用VS2008构建,则需要根据需要启动32位或64位Visual Studio命令提示符。