Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Support for compiling with Visual Studio 2015 Community on Windows 8.1 for Qt 5.5.0
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Support for compiling with Visual Studio 2015 Community on Windows 8.1 for Qt 5.5.0

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 4.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jbrend
    wrote on last edited by jbrend
    #1

    I have VS 2015 Community installed on Windows 8.1 64-bit but see no supporting kits in the Qt installation. Installed were:
    msvc2012
    msvc2013_64
    winphone_arm
    winphone_x86
    winrt_x64

    I installed VS before installing Qt 5.5.

    I noticed cl.exe installed for the following Visual Studio versions under Program Files (x86): 11.0, 12.0, 14.0

    When I try to compile using the msvc2013_64 kit (since there was nothing for , I get jom.exe exiting with code 2, but not much else in the way of diagnostic information.

    Am I missing something?

    Build output below:
    01:17:13: Running steps for project touchinteraction...
    01:17:13: Configuration unchanged, skipping qmake step.
    01:17:13: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"
    C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    cl -c -nologo -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -w44996 -EHsc /Fddebug\touchinteraction.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I..\touchinteraction -I. -I........\5.5\msvc2013_64\include -I........\5.5\msvc2013_64\include\QtQuick -I........\5.5\msvc2013_64\include\QtGui -I........\5.5\msvc2013_64\include\QtANGLE -I........\5.5\msvc2013_64\include\QtQml -I........\5.5\msvc2013_64\include\QtNetwork -I........\5.5\msvc2013_64\include\QtCore -Idebug -I........\5.5\msvc2013_64\mkspecs\win32-msvc2013 -Fodebug\ @C:\Users\Jeffrey\AppData\Local\Temp\main.obj.4788.31.jom
    jom: C:\Qt\Examples\Qt-5.5\quick\build-touchinteraction-Desktop_Qt_5_5_0_MSVC2013_64bit-Debug\Makefile.Debug [debug\main.obj] Error 2
    C:\Qt\5.5\msvc2013_64\bin\rcc.exe -name touchinteraction ..\touchinteraction\touchinteraction.qrc -o debug\qrc_touchinteraction.cpp
    C:\Qt\5.5\msvc2013_64\bin\rcc.exe -name shared ..\shared\shared.qrc -o debug\qrc_shared.cpp
    jom: C:\Qt\Examples\Qt-5.5\quick\build-touchinteraction-Desktop_Qt_5_5_0_MSVC2013_64bit-Debug\Makefile.Debug [debug\qrc_shared.cpp] Error 2
    jom: C:\Qt\Examples\Qt-5.5\quick\build-touchinteraction-Desktop_Qt_5_5_0_MSVC2013_64bit-Debug\Makefile.Debug [debug\qrc_touchinteraction.cpp] Error 2
    jom: C:\Qt\Examples\Qt-5.5\quick\build-touchinteraction-Desktop_Qt_5_5_0_MSVC2013_64bit-Debug\Makefile [debug] Error 2
    01:17:15: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project touchinteraction (kit: Desktop Qt 5.5.0 MSVC2013 64bit)
    When executing step "Make"
    01:17:15: Elapsed time: 00:01.

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      On Windows, you can't mix compilers especially Visual Studio. The different versions are not compatible one with the other. So since you installed the MSVC2013 build of Qt you need to use Visual Studio 2013. This is not a Qt limitation, it's valid for any C++ project.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        On Windows, you can't mix compilers especially Visual Studio. The different versions are not compatible one with the other. So since you installed the MSVC2013 build of Qt you need to use Visual Studio 2013. This is not a Qt limitation, it's valid for any C++ project.

        J Offline
        J Offline
        jbrend
        wrote on last edited by
        #3

        @SGaist Since my posting, I have upgraded to Windows 10 and uninstalled and re-installed VS2015. I also uninstalled Qt 5.5.0. When I went to re-install Qt, I was not offered any choice for MSVC2015, but reinstalled using the defaults (included MSVC2013, i.e., kits msvc2013 and msvc2013_64 but no option for msvc2015). After installing VS2013 alongside VS2015, the MSVC2013_64 kit worked with no additional configuration.

        How do I get Qt to work with VS2015? Do I need to compile it from source?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Currently, you have to build Qt from source if you want to use it with Visual Studio 2015

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply
          1
          • SGaistS SGaist

            Currently, you have to build Qt from source if you want to use it with Visual Studio 2015

            J Offline
            J Offline
            jbrend
            wrote on last edited by
            #5

            @SGaist Thanks, that answers my question.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved