Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add multiple compiler for same Qt Creator

How to add multiple compiler for same Qt Creator

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 3 Posters 4.8k Views
  • 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.
  • V Vinoth Rajendran 4
    14 Nov 2016, 05:09

    Hai Everyone,
    I have installed QT 5.7 (MSVC 2015) and its working fine. I would like to add MSVC 2013 compiler to Qt Creator. Kindly give me suggestion on how to do it...

    Thank you.....

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 14 Nov 2016, 05:33 last edited by
    #2

    @Vinoth-Rajendran-4 First of all: if you installed Qt 5.7 for MSVC2015 then you will not be able to use it with MSVC2013! This is not Qt restriction: on Windows you cannot mix different compilers for same application! You can either install MSVC2013 or Qt 5.7 for MSVC2013 (you can install many different Qt versions on same machine).
    Just go to "Tools/Options.../Build&Run/Compilers". If the compiler you need was not autodetected then click on add button and navigate to the compiler executable.
    But usually QtCreator autodetects compiler if they are installed properly. If you install MSVC then C++ compiler is usually not installed, so check you installation and add C++ if not installed.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • V Offline
      V Offline
      Vinoth Rajendran 4
      wrote on 15 Nov 2016, 09:09 last edited by
      #3

      Thanks for your reply @jsulm

      I have installed MSVC 2013 ,,, Qt Creator detects 2013 compiler..Not sure what i have to do next....

      qmake.exe for MSVC 2013 not detected in "Tools/Options.../Build&Run/Qt Versions"

      Kindly guide me...

      Thank you.......

      J 1 Reply Last reply 15 Nov 2016, 09:10
      0
      • V Vinoth Rajendran 4
        15 Nov 2016, 09:09

        Thanks for your reply @jsulm

        I have installed MSVC 2013 ,,, Qt Creator detects 2013 compiler..Not sure what i have to do next....

        qmake.exe for MSVC 2013 not detected in "Tools/Options.../Build&Run/Qt Versions"

        Kindly guide me...

        Thank you.......

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 15 Nov 2016, 09:10 last edited by
        #4

        @Vinoth-Rajendran-4 So, you installed Qt for MSVC2013?
        If it is not autodetected for some reason then just add it manually: press Add button, navigate to the bin directory of your Qt installation and select qmake.exe

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply 15 Nov 2016, 09:52
        0
        • J jsulm
          15 Nov 2016, 09:10

          @Vinoth-Rajendran-4 So, you installed Qt for MSVC2013?
          If it is not autodetected for some reason then just add it manually: press Add button, navigate to the bin directory of your Qt installation and select qmake.exe

          V Offline
          V Offline
          Vinoth Rajendran 4
          wrote on 15 Nov 2016, 09:52 last edited by
          #5

          @jsulm : I have not installed QT for MSVC2013 , just Visual Studio 2013...

          I believe by installing QT for MSVC 2013 only , i will be able to work with MSVC 2013 compiler in QT..... and not by just installing Visual Studio 2013 alone...

          correct me if i am wrong......

          J 2 Replies Last reply 15 Nov 2016, 09:56
          0
          • V Vinoth Rajendran 4
            15 Nov 2016, 09:52

            @jsulm : I have not installed QT for MSVC2013 , just Visual Studio 2013...

            I believe by installing QT for MSVC 2013 only , i will be able to work with MSVC 2013 compiler in QT..... and not by just installing Visual Studio 2013 alone...

            correct me if i am wrong......

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 15 Nov 2016, 09:56 last edited by jsulm
            #6

            @Vinoth-Rajendran-4 If you want to use MSVC2013 you need to install it. If you want to use Qt then you need to install it. If you want to use Qt with MSVC2013 then you need to install Qt for MSVC2013. If you want to use Qt with MSVC2015 then you need to install Qt for MSVC2015.
            So, what do you want to do?

            You can use MSVC2013 compiler in QtCreator without installing Qt for MSVC2013, but in this case you will not be able to use Qt in your applications.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • V Vinoth Rajendran 4
              15 Nov 2016, 09:52

              @jsulm : I have not installed QT for MSVC2013 , just Visual Studio 2013...

              I believe by installing QT for MSVC 2013 only , i will be able to work with MSVC 2013 compiler in QT..... and not by just installing Visual Studio 2013 alone...

              correct me if i am wrong......

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 15 Nov 2016, 09:59 last edited by
              #7

              @Vinoth-Rajendran-4 said in How to add multiple compiler for same Qt Creator:

              work with MSVC 2013 compiler in QT

              What do you mean by "work with MSVC 2013 compiler in QT"? Qt is a framework, do you mean QtCreator?
              QtCreator can use any supported compiler. You can have many compilers installed and select one of them to build your project.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • V Offline
                V Offline
                Vinoth Rajendran 4
                wrote on 15 Nov 2016, 11:14 last edited by
                #8

                I meant QtCreator only.......

                Following Software i installed (for your reference) :
                QT for MSVC 2015 ( which comes with QtCreator)
                VIsual Studio 2013...

                QtCreator detects both my compiler msvc2015 and msvc2013 in "Tools/Options.../Build&Run/Compilers", but since i have installed only QT 5.7 for MSVC2015 , i am able to build my projects only with MSVC 2015....

                I guess i am required to install "QT for MSVC 2013" to build Qt project with it.

                Is there a way to just build non-QT project using MSVC 2013 with my existing QtCreator..

                Thank u.....

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 15 Nov 2016, 11:23 last edited by
                  #9

                  Hi

                  • I guess i am required to install "QT for MSVC 2013" to build Qt project with it.
                    Yes. MUST match the compiler version! ( no exceptions)
                    So Qt2013 -> Vs2013, NO mixing allowed :)

                  Can I ask why u want both 2013 and 2015 installed?
                  Last time I tried that, both stopped working.
                  It is possible but might have cavecats
                  https://msdn.microsoft.com/en-us/library/ms246609.aspx

                  1 Reply Last reply
                  1
                  • V Offline
                    V Offline
                    Vinoth Rajendran 4
                    wrote on 15 Nov 2016, 11:51 last edited by
                    #10

                    I am trying to build an open source project named OpenIG (Image Generator) using QtCreator (vc++ 2015 compiler). Build Failed, and my guess is that it might be due to dependencies (static libaries) issue with vc++ 2015..

                    For the sake of avoiding the time to download and install QT with MSVC 2013 , i thought there might be a way to just use already installed Visual Studio 2013 with existing QtCreator by tweaking somehow....

                    Guess i am wrong about it....Will download that version.....

                    Thanks for your patience @mrjj ....

                    J 1 Reply Last reply 15 Nov 2016, 11:56
                    0
                    • V Vinoth Rajendran 4
                      15 Nov 2016, 11:51

                      I am trying to build an open source project named OpenIG (Image Generator) using QtCreator (vc++ 2015 compiler). Build Failed, and my guess is that it might be due to dependencies (static libaries) issue with vc++ 2015..

                      For the sake of avoiding the time to download and install QT with MSVC 2013 , i thought there might be a way to just use already installed Visual Studio 2013 with existing QtCreator by tweaking somehow....

                      Guess i am wrong about it....Will download that version.....

                      Thanks for your patience @mrjj ....

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 15 Nov 2016, 11:56 last edited by
                      #11

                      @Vinoth-Rajendran-4 You can use MSVC2013 in QtCreator without Qt for MSVC2013 as long as the projects you build do not use Qt. Just create a Kit in QtCreator with MSVC2013 compiler and without Qt.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        Vinoth Rajendran 4
                        wrote on 15 Nov 2016, 12:22 last edited by
                        #12

                        Just to try out a simple project to build with vc++ 2013 , i created a kit using Compiler set to Visual C++ Compiler 12.0 and Qt Version: mentioned as None and then tried to create a new project in Plain C++ Project(CMake Build) ...

                        But it shows "Qt Creator has no kit that are suitable for CMake project. Please Configure a kit"...

                        What am i missing when configuring the kit......

                        J 1 Reply Last reply 15 Nov 2016, 13:23
                        0
                        • V Vinoth Rajendran 4
                          15 Nov 2016, 12:22

                          Just to try out a simple project to build with vc++ 2013 , i created a kit using Compiler set to Visual C++ Compiler 12.0 and Qt Version: mentioned as None and then tried to create a new project in Plain C++ Project(CMake Build) ...

                          But it shows "Qt Creator has no kit that are suitable for CMake project. Please Configure a kit"...

                          What am i missing when configuring the kit......

                          J Offline
                          J Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on 15 Nov 2016, 13:23 last edited by
                          #13

                          @Vinoth-Rajendran-4 said in How to add multiple compiler for same Qt Creator:

                          What am i missing when configuring the kit

                          CMake maybe?
                          Do you have CMake installed on your system and if so is it set in the Kit you're trying to use?

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          1
                          • V Offline
                            V Offline
                            Vinoth Rajendran 4
                            wrote on 16 Nov 2016, 04:38 last edited by
                            #14
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • V Offline
                              V Offline
                              Vinoth Rajendran 4
                              wrote on 16 Nov 2016, 04:47 last edited by Vinoth Rajendran 4
                              #15

                              Thank you @jsulm ....

                              My doubt got clarified....

                              1 Reply Last reply
                              0

                              11/15

                              15 Nov 2016, 11:56

                              • Login

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