Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Module machine type 'X86' conflicts with target machine type 'x64'



  • I am using qt creator on windows with cmake

    I choose the NMake generator VS 2010. It seems that i never get it to link without the error

    module machine type 'X86' conflicts with target machine type 'x64' if i set

    set(CMAKE_EXE_LINKER_FLAGS "/MACHINE:X64")
    set(CMAKE_MODULE_LINKER_FLAGS "/MACHINE:X64")
    set(CMAKE_SHARED_LINKER_FLAGS "/MACHINE:X64")

    It somtime switches the error.

    How do you force to compile with 64 bits and make sure that all are in 64 bits

    If i run with Visual c++ 2010 generator outside of qt it doens give me the error


Log in to reply