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



  • Although

    @configure -platform win32-msvc2005 -arch x86@

    works well, nmake is immediately giving a fatal error:

    @Qt has not been ported to this architecture@

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

    @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.@



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



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.