Qt World Summit: Register Today!

Configure Qt5.0.2 with compiler msc2010

  • Hello Guys? I wonder how do I configure the compiler Mircrosoft in Qt Creator? Well I installed visual studio 2012 and there he found the comiladores automatically so that in Qt Creator when I compile the error warning that has no compiler, the "error" in qmake. Does anyone have any tutorials on how I can proceed to configure QtCreator with libraries to the compiler Qt5.0.2 msc2010?

  • To configure a compiler for Qt Creator go to Tools > Options. Click Build & Run and select tab Kit.

  • The different versions of MSVC produce binaries that are incompatible with each other.. You can not use MSVC 2012 together with the Qt libraries build with MSVC 2010.

    You will either need to install MSVC 2010 or rebuild Qt yourself using MSVC 2012.

  • compiling now so good this mode realese! I installed MSVC 2010 now do not know what compiler he is using if it is 2010 or 2012 ...

    11:55:08: Running steps for project Programaqq...
    11:55:08: Configuration unchanged, skipping qmake step.
    11:55:08: Starting: "C:\Qt\Qt5.0.2\Tools\QtCreator\bin\jom.exe"
    C:\Qt\Qt5.0.2\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    echo 1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID / 24 / RT_MANIFEST / "debug\Programaqq.exe.embed.manifest">debug\Programaqq.exe_manifest.rc
    if not exist debug\Programaqq.exe if exist debug\Programaqq.exe.embed.manifest del debug\Programaqq.exe.embed.manifest
    if exist debug\Programaqq.exe.embed.manifest copy /Y debug\Programaqq.exe.embed.manifest debug\Programaqq.exe_manifest.bak
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='' publicKeyToken='6595b64144ccf1df' language='
    ' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:debug\Programaqq.exe.embed.manifest /OUT:debug\Programaqq.exe @C:\Users\Edson\AppData\Local\Temp\Programaqq.exe.1244.31.jom
    LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
    jom: C:\Downloads\build-Programaqq-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile.Debug [debug\Programaqq.exe] Error 1123
    jom: C:\Downloads\build-Programaqq-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\Makefile [debug] Error 2
    11:55:10: The process "C:\Qt\Qt5.0.2\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project Programaqq (kit: Desktop Qt 5.0.2 MSVC2010 32bit)
    When executing step 'Make'
    11:55:10: Elapsed time: 00:02.

Log in to reply