Qt64bit cant compile simple project with command promit



  • hi
    i have installed a fresh windows 64Bit ultimate , and Visual studio 2012
    and installed qt-windows-opensource-5.0.2-msvc2012_64-x64-offline.exe downloaded from here ...

    Qt Creator works fine with projects but when i want to want to compile a simple project with Qt 5.0.2 64-bit for Desktop (MSVC 2012) ( Qt command prompt)
    after this commands
    @cd project_path
    qmake
    nmake@

    if get this error
    @Qt5Gui.lib(Qt5Gui.dll) : fatal error LNK1112: module machine type 'x64' conflict
    s with target machine type 'X86'
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\link.EXE"' : return code '0x458'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
    \VC\BIN\nmake.exe"' : return code '0x2'
    Stop.@

    can any one help me ?
    ty


  • Lifetime Qt Champion

    Hi,

    Are you starting a 64 bit command line ?



  • choose the platform from win32 to x64


Log in to reply
 

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