February 6, 2012

ronM71 ronM71
Lab Rat
225 posts

[resolved] Qt 4.8, Windows 7 64bit box, Building for VS2005 32 bit

 

Although

  1. configure -platform win32-msvc2005 -arch x86

works well, nmake is immediately giving a fatal error:

  1. Qt has not been ported to this architecture

I build on a 64 bit Windows 7 machine. Any ideas why this happens?

  1. Generating Code...
  2.         cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT
  3.  -DQT_UIC -DQT_UIC_CPP_GENERATOR -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST
  4. _TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYS
  5. TEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NODLL
  6. -I"." -I"." -I"cpp" -I"." -I"..\..\..\include" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtXml" -I"..\..\xml" -I".
  7. .\..\..\mkspecs\win32-msvc2005" -Fotmp\obj\release_shared\ @C:\Users\ronen\AppData\Local\Temp\nm60BD.tmp
  8. cppextractimages.cpp
  9. cppwritedeclaration.cpp
  10. cppwriteicondata.cpp
  11. cppwriteicondeclaration.cpp
  12. cppwriteiconinitialization.cpp
  13. cppwriteincludes.cpp
  14. cppwriteinitialization.cpp
  15. Generating Code...
  16.         link /LIBPATH:"c:\dev\Qt480\src\tools\bootstrap\release" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYST
  17. EM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='
  18. 6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:"tmp\obj\release_shared\uic.intermedia
  19. te.manifest" /OUT:..\..\..\bin\uic.exe @C:\Users\ronen\AppData\Local\Temp\nm7547.tmp
  20.         mt.exe -nologo -manifest "tmp\obj\release_shared\uic.intermediate.manifest" -outputresource:..\..\..\bin\uic.exe
  21. ;1
  22.         cd src\winmain\ && "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile
  23.  
  24. Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
  25. Copyright (C) Microsoft Corporation.  All rights reserved.
  26.  
  27.         "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile.Debug all
  28.  
  29. Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
  30. Copyright (C) Microsoft Corporation.  All rights reserved.
  31.  
  32.         cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -W3 -w34100 -w34189 -GR -EHsc -DQT_THREAD_SUPPORT -DUNICODE -DWIN32 -
  33. DQT_LARGEFILE_SUPPORT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILD
  34. ER -D_USE_MATH_DEFINES -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\include" -I"
  35. tmp" -I"..\..\include\QtCore" -I"c:\dev\Qt480\include\qtmain" -I"tmp\rcc\debug_shared" -I"tmp" -I"..\..\include\ActiveQt
  36. " -I"tmp\moc\debug_shared" -I"..\..\mkspecs\win32-msvc2005" -Fotmp\obj\debug_shared\ @C:\Users\ronen\AppData\Local\Temp\
  37. nm7813.tmp
  38. qtmain_win.cpp
  39. c:\dev\qt480\include\qtcore\../../src/corelib/arch/qatomic_arch.h(96) : fatal error C1189: #error :  "Qt has not been po
  40. rted to this architecture"
  41. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
  42. Stop.
  43. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
  44. Stop.
  45. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  46. Stop.

2 replies

February 7, 2012

p-himik p-himik
Lab Rat
255 posts

Try -arch i386 (at least there is qatomic_i386.h and there is no qatomic_x86.h).

February 7, 2012

ronM71 ronM71
Lab Rat
225 posts

removing the -arch parameter worked. Verified in the VS2005 command prompt that the “cl” was indeed 32 bit.

 
  ‹‹ No examples showing in Qt Creator      launching app outside of Creator? ››

You must log in to post a reply. Not a member yet? Register here!