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] How can I add a compiler?
Forum Update on Monday, May 27th 2025

[Solved] How can I add a compiler?

Scheduled Pinned Locked Moved Installation and Deployment
30 Posts 3 Posters 15.5k 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.
  • R Offline
    R Offline
    Rela
    wrote on 1 Oct 2015, 13:13 last edited by Rela 10 Jul 2015, 11:50
    #1

    Hi, I installed Qt 5.4, and I also have Visual studio 2010. Now Qt gives an error "Qt Creator needs a compiler set up to build. Configure a compiler in the kit options."
    I go to tools > options > compiler. There is an Auto-detected list including some Visual studio C++ compiler 10.0 (...).
    Should I choose among them and if yes which one?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Oct 2015, 13:19 last edited by
      #2

      Hi and welcome to devnet,

      Did you install Visual Studio 2010 Qt build ?

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rela
        wrote on 1 Oct 2015, 13:43 last edited by
        #3

        Thanks, should it be shown in my Qt folder or I need to install it separately?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rela
          wrote on 1 Oct 2015, 14:32 last edited by
          #4

          Should I download qt-everywhere-opensource-src-4.8.2.tar.gz ?
          (https://download.qt.io/archive/qt/4.8/4.8.2/)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 1 Oct 2015, 14:36 last edited by
            #5

            If you don't have any compiler installed you have two choices:

            1. Use the MinGW package, the compiler is included
            2. Install Visual Studio then Qt
              The Visual Studio version and the Qt build must match, you can't use a library built with MSVC2010 with MSVC2013 and vice-versa
              Visual Studio can only be obtained from Microsoft website.

            Why Qt 4.8.2 ?

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

            R 1 Reply Last reply 1 Oct 2015, 18:33
            0
            • R Offline
              R Offline
              Rela
              wrote on 1 Oct 2015, 14:54 last edited by
              #6

              I am not sure if I have any compiler, but I receive this error:
              "Configuration is faulty. Check the Issues view for details.
              Error while building/deploying project Youtube (kit: Desktop Qt 5.4.2 MSVC2013 64bit)
              When executing step "Make"."

              1. How can I use MinGW package?
              2. I had Visual Studio 2010 and after that installed Qt 5.4. Will it be ok if I install an older version of Qt?
              1 Reply Last reply
              0
              • S SGaist
                1 Oct 2015, 14:36

                If you don't have any compiler installed you have two choices:

                1. Use the MinGW package, the compiler is included
                2. Install Visual Studio then Qt
                  The Visual Studio version and the Qt build must match, you can't use a library built with MSVC2010 with MSVC2013 and vice-versa
                  Visual Studio can only be obtained from Microsoft website.

                Why Qt 4.8.2 ?

                R Offline
                R Offline
                Rela
                wrote on 1 Oct 2015, 18:33 last edited by
                #7

                When I check tools > options > compiler this option menu appears, which includes the compilers I can add.

                Here is the screenshot

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 1 Oct 2015, 19:21 last edited by
                  #8

                  Like I wrote before, if you want to use the MSVC2013 package, you need to instal Visual Studio 2013.

                  For MinGW, just use the kit that has been made for it when you installed it.

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

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Rela
                    wrote on 2 Oct 2015, 07:10 last edited by Rela 10 Feb 2015, 09:21
                    #9

                    Could you please tell me which one of these options I should add for MinGW?
                    Kits
                    And if I want to use visual studio 2010 as compiler which version of Qt I can install instead of Qt 5.4?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 2 Oct 2015, 21:53 last edited by
                      #10

                      Did you install the MinGW build of Qt ? If not, then then that's the first thing to do

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

                      R 1 Reply Last reply 5 Oct 2015, 12:10
                      0
                      • S SGaist
                        2 Oct 2015, 21:53

                        Did you install the MinGW build of Qt ? If not, then then that's the first thing to do

                        R Offline
                        R Offline
                        Rela
                        wrote on 5 Oct 2015, 12:10 last edited by Rela 10 May 2015, 12:44
                        #11

                        @SGaist

                        I tried to installed it using this link: link

                        A Zip file was downloaded including these folders: Z7 file

                        I don't know which one is the correct path to add to kits.

                        O 1 Reply Last reply 5 Oct 2015, 12:47
                        0
                        • R Rela
                          5 Oct 2015, 12:10

                          @SGaist

                          I tried to installed it using this link: link

                          A Zip file was downloaded including these folders: Z7 file

                          I don't know which one is the correct path to add to kits.

                          O Offline
                          O Offline
                          onek24
                          wrote on 5 Oct 2015, 12:47 last edited by onek24 10 May 2015, 12:52
                          #12

                          @Rela

                          Hello Rela and welcome to devnet,

                          it would be easier to install MinGW using the 'Qt Maintenance Tool'. You can find it in your Qt folder. It's name is "MaintenanceTool.exe". Just start the tool and select "Change" or something like that. Afterwards select the Package "MinGW" (you might find listed under your Qt Version). Then just continue with the installation and when it's done you can configure your project inside Qt for MinGW.

                          And just for interesst: why don't you want to use a newer version of Qt? Is it because you are trying to run an older qt project and you have concerns about compatibility?

                          R 1 Reply Last reply 5 Oct 2015, 13:04
                          1
                          • O onek24
                            5 Oct 2015, 12:47

                            @Rela

                            Hello Rela and welcome to devnet,

                            it would be easier to install MinGW using the 'Qt Maintenance Tool'. You can find it in your Qt folder. It's name is "MaintenanceTool.exe". Just start the tool and select "Change" or something like that. Afterwards select the Package "MinGW" (you might find listed under your Qt Version). Then just continue with the installation and when it's done you can configure your project inside Qt for MinGW.

                            And just for interesst: why don't you want to use a newer version of Qt? Is it because you are trying to run an older qt project and you have concerns about compatibility?

                            R Offline
                            R Offline
                            Rela
                            wrote on 5 Oct 2015, 13:04 last edited by
                            #13

                            @onek24

                            Hi and thanks.

                            When I click on "Maintenance Tool.exe" it asks some setup questions:
                            "Add or remove components"
                            "Update components"
                            "Remove all components"
                            Which one should I choose?

                            I installed Qt5.4, and the newest one is 5.5. I am not going to run an old project, just want to start developing an GUI for a C++ algorithm in MVS 2010. May I ask what is the advantage of the newest version?

                            O 1 Reply Last reply 5 Oct 2015, 13:15
                            0
                            • R Rela
                              5 Oct 2015, 13:04

                              @onek24

                              Hi and thanks.

                              When I click on "Maintenance Tool.exe" it asks some setup questions:
                              "Add or remove components"
                              "Update components"
                              "Remove all components"
                              Which one should I choose?

                              I installed Qt5.4, and the newest one is 5.5. I am not going to run an old project, just want to start developing an GUI for a C++ algorithm in MVS 2010. May I ask what is the advantage of the newest version?

                              O Offline
                              O Offline
                              onek24
                              wrote on 5 Oct 2015, 13:15 last edited by onek24 10 May 2015, 13:16
                              #14

                              @Rela said:

                              When I click on "Maintenance Tool.exe" it asks some setup questions:
                              "Add or remove components"
                              "Update components"
                              "Remove all components"
                              Which one should I choose?

                              First of all you might click "Update components" and check if the MaintenanceTool needs an update - if so: update it. After you updated the MaintenanceTool you have to restart it. Then click on "Add or remove components". That's the part where you can modify or change your current Qt Setup. Since you're using Qt 5.4 you just go in the entry 'Qt 5.4' and then select the ackages you want - in this case: MinGW(newest version of it). Then press "continue" or something like that. If you want to update to Qt 5.5, you will have to deselect Qt 5.4 and select Qt 5.5(just the packages you want/need).

                              I installed Qt5.4, and the newest one is 5.5. I am not going to run an old project, just want to start developing an GUI for a C++ algorithm in MVS 2010. May I ask what is the advantage of the newest version?

                              Then you might want to check the new Features in Qt 5.5 . If your algorithm was written to work with the mvsc2010, then you might want to keep it that way. You can install MSVC on your computer and afterwards install the MSVC package in your MaintenanceTool just like you did with MinGW.

                              Oh and by the way, this link might be very helpfull for you:
                              Getting Startet with Qt

                              R 2 Replies Last reply 5 Oct 2015, 13:33
                              0
                              • O onek24
                                5 Oct 2015, 13:15

                                @Rela said:

                                When I click on "Maintenance Tool.exe" it asks some setup questions:
                                "Add or remove components"
                                "Update components"
                                "Remove all components"
                                Which one should I choose?

                                First of all you might click "Update components" and check if the MaintenanceTool needs an update - if so: update it. After you updated the MaintenanceTool you have to restart it. Then click on "Add or remove components". That's the part where you can modify or change your current Qt Setup. Since you're using Qt 5.4 you just go in the entry 'Qt 5.4' and then select the ackages you want - in this case: MinGW(newest version of it). Then press "continue" or something like that. If you want to update to Qt 5.5, you will have to deselect Qt 5.4 and select Qt 5.5(just the packages you want/need).

                                I installed Qt5.4, and the newest one is 5.5. I am not going to run an old project, just want to start developing an GUI for a C++ algorithm in MVS 2010. May I ask what is the advantage of the newest version?

                                Then you might want to check the new Features in Qt 5.5 . If your algorithm was written to work with the mvsc2010, then you might want to keep it that way. You can install MSVC on your computer and afterwards install the MSVC package in your MaintenanceTool just like you did with MinGW.

                                Oh and by the way, this link might be very helpfull for you:
                                Getting Startet with Qt

                                R Offline
                                R Offline
                                Rela
                                wrote on 5 Oct 2015, 13:33 last edited by
                                #15
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • O onek24
                                  5 Oct 2015, 13:15

                                  @Rela said:

                                  When I click on "Maintenance Tool.exe" it asks some setup questions:
                                  "Add or remove components"
                                  "Update components"
                                  "Remove all components"
                                  Which one should I choose?

                                  First of all you might click "Update components" and check if the MaintenanceTool needs an update - if so: update it. After you updated the MaintenanceTool you have to restart it. Then click on "Add or remove components". That's the part where you can modify or change your current Qt Setup. Since you're using Qt 5.4 you just go in the entry 'Qt 5.4' and then select the ackages you want - in this case: MinGW(newest version of it). Then press "continue" or something like that. If you want to update to Qt 5.5, you will have to deselect Qt 5.4 and select Qt 5.5(just the packages you want/need).

                                  I installed Qt5.4, and the newest one is 5.5. I am not going to run an old project, just want to start developing an GUI for a C++ algorithm in MVS 2010. May I ask what is the advantage of the newest version?

                                  Then you might want to check the new Features in Qt 5.5 . If your algorithm was written to work with the mvsc2010, then you might want to keep it that way. You can install MSVC on your computer and afterwards install the MSVC package in your MaintenanceTool just like you did with MinGW.

                                  Oh and by the way, this link might be very helpfull for you:
                                  Getting Startet with Qt

                                  R Offline
                                  R Offline
                                  Rela
                                  wrote on 5 Oct 2015, 13:46 last edited by Rela 10 May 2015, 13:50
                                  #16

                                  @onek24
                                  Thanks for your complete explanation.

                                  I chose the MinGW in the list for Qt5.4, could you tell me if I need choose more components?Maintain Qt

                                  I have the C++ algorithm in Microsoft visual studio 2010 and it has been installed already. Can I work with Qt5.4 while I have MVS2010?
                                  With respect to the MSVCs that are marked in the list are 2013.

                                  O 1 Reply Last reply 5 Oct 2015, 14:06
                                  0
                                  • R Rela
                                    5 Oct 2015, 13:46

                                    @onek24
                                    Thanks for your complete explanation.

                                    I chose the MinGW in the list for Qt5.4, could you tell me if I need choose more components?Maintain Qt

                                    I have the C++ algorithm in Microsoft visual studio 2010 and it has been installed already. Can I work with Qt5.4 while I have MVS2010?
                                    With respect to the MSVCs that are marked in the list are 2013.

                                    O Offline
                                    O Offline
                                    onek24
                                    wrote on 5 Oct 2015, 14:06 last edited by onek24 10 May 2015, 14:08
                                    #17

                                    @Rela

                                    You're welcome. :)

                                    I chose the MinGW in the list for Qt5.4, could you tell me if I need choose more components?

                                    Depends on what you need. If you want to develop for Windows (x86/x64) only, then i would recommend to select the following packages only:

                                    • Qt 5.4
                                      • MinGW 4.9.1(32 bit) OpenGL <--- maybe???
                                      • msvc2013 32-bit
                                      • msvc2013 64-bit
                                      • Source Components
                                      • Qt WebEngine
                                    • Tools
                                      • MinGW 4.9.1

                                    Keep in mind [!]: The compiler comes with the visual studio! That means that you will have to install the appropriated Visual Studio version. Example: For msvc2013 you'll need Visual Studio 2013. Lets take the selected packages - in the case above: msvc2013 32-bit and 64-bit. These are just pre-build components! This package doesn't contain the compiler.

                                    You can see MinGW 4.9.1 under Tools. It's the full MinGW Toolchain(containing the compiler). So for MinGW you won't need to download the compiler from third-party(like visual studio from microsoft).

                                    Under Qt 5.4 you can see MinGW 4.9.1(32 bit) OpenGL. These are also just the prebuild qt-components for MinGW.

                                    Qt WebEngine might be interesting for you since your project-name was "YouTube".

                                    Disclaimer:
                                    I might be wrong with my informations since i'm just a beginner myself. But still: this might be correct and get you started. :)

                                    1 Reply Last reply
                                    0
                                    • R Offline
                                      R Offline
                                      Rela
                                      wrote on 5 Oct 2015, 14:18 last edited by
                                      #18

                                      Thank you, your help is so helpful, since from last week I am just involving with this compiler problem.

                                      I see 5 marked MSVC2013 for 64 and 32, how to know which two ones I should choose?MSVC components

                                      O 2 Replies Last reply 5 Oct 2015, 14:24
                                      0
                                      • O Offline
                                        O Offline
                                        onek24
                                        wrote on 5 Oct 2015, 14:21 last edited by onek24 10 May 2015, 14:25
                                        #19

                                        You can imagine it that way:

                                        Qt is just here to help you develop applications. It has a large amount of classes you can use and the qt creator(the gui which helps you develop applications with qt). It's far more - but let's keep it simple.
                                        If you want to compile an application for an platform, then you'll need an compiler which can compile it for that platform. For windows, microsoft provided an compiler which is included in the MSVC(Microsoft Visual C++) package.

                                        So lets say you want to compile for windows: You'll need MSVC. Afaik Qt isn't allowed to put MSVC into their installation, so you'll have to download and install MSVC on your own.

                                        Theoretically you can compile a Qt application for windows now. But it would take a very long time to compile all the qt code from the Qt classes you use because it's a large amount of code. Therefore you can download the precompiled qt classes. That means some guy compiled them using an compiler for a spezific platform (lets say MSVC for windows) and put them free for download. So if you download these packages you won't have to compile them a second time!

                                        I hope i could explain it a bit. I cut a few steps and informations but i tried to keep it simple. :)

                                        1 Reply Last reply
                                        0
                                        • R Rela
                                          5 Oct 2015, 14:18

                                          Thank you, your help is so helpful, since from last week I am just involving with this compiler problem.

                                          I see 5 marked MSVC2013 for 64 and 32, how to know which two ones I should choose?MSVC components

                                          O Offline
                                          O Offline
                                          onek24
                                          wrote on 5 Oct 2015, 14:24 last edited by
                                          #20

                                          @Rela said:

                                          Thank you, your help is so helpful, since from last week I am just involving with this compiler problem.

                                          I see 5 marked MSVC2013 for 64 and 32, how to know which two ones I should choose?MSVC components

                                          If you read it again you'll see that it isn't msvc2013 only. It has also packages for msvc2012 and msvc2010! It has also msvc OpenGL packages - which you won't need now(i guess).

                                          I would take the newest:

                                          • msvc2013 32-bit
                                          • msvc2013 64-bit

                                          Select the ones without OpenGL.

                                          R 1 Reply Last reply 6 Oct 2015, 07:52
                                          0

                                          1/30

                                          1 Oct 2015, 13:13

                                          • Login

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