Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator and MS C++ Build Tools

Qt Creator and MS C++ Build Tools

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
22 Posts 8 Posters 17.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.
  • Nikolay D. BychinskiyN Offline
    Nikolay D. BychinskiyN Offline
    Nikolay D. Bychinskiy
    wrote on last edited by Nikolay D. Bychinskiy
    #1

    Qt Creator 4.0 does not detect compiler installed with MS C++ Build Tools. Also it didn't detect Clang compiler and CMake. I tried to add manually Clang compiler and CMake and use it with MSVC kit (it required CMake), but it still doesn't work and requires mingw32-make (I have it installed with mingw-w64, but I'm not sure why it's needed) for some reason. CMake generator is set to CodeBlocks - NMake. Also there is no option to add MSVC compiler - only MinGW/GCC/Clang/QCC/Custom.
    What am I doing wrong? I tried to find solution, but the only thing that I found is a patch that added support MS C++ Built Tools support to Qt Creator, but Qt Creator 4.0 doesn't seem to include it, since it doesn't detect MSVC compiler.

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

      Hi and welcome to devnet,

      Which package of Qt did you install ? On which version of Windows ?

      Where did you found that patch ?

      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
      • Nikolay D. BychinskiyN Offline
        Nikolay D. BychinskiyN Offline
        Nikolay D. Bychinskiy
        wrote on last edited by Nikolay D. Bychinskiy
        #3

        Offline Qt Creator 4.0 + Offline Qt 5.6.0 for win x86_64 VS 2015, windows 10.
        I found it patch here - https://codereview.qt-project.org/#/c/147865/ it seems to add C++ Build tools detection.
        This was the only half-relevant result that I got by looking up this issue. It seems to be code of some plugin, I just mentioned it because it was the only search result that wasn't completely irrelevant.

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

          The patch has been merge so it should be in.

          Where do you have these tools located on your machine ?

          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
          • Nikolay D. BychinskiyN Offline
            Nikolay D. BychinskiyN Offline
            Nikolay D. Bychinskiy
            wrote on last edited by
            #5

            Default location. It should detect it.

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

              The full path would be useful in this case to check with the code.

              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
              • Nikolay D. BychinskiyN Offline
                Nikolay D. BychinskiyN Offline
                Nikolay D. Bychinskiy
                wrote on last edited by
                #7

                It installs multiple things, code checks for vcbuildtools.bat in "C:\Program Files (x86)\Microsoft Visual C++ Build Tools" which I have.

                1 Reply Last reply
                0
                • Mauro177M Offline
                  Mauro177M Offline
                  Mauro177
                  wrote on last edited by
                  #8

                  I'm in same situation of Nikolay. QtCreator 4.0 doesn't detect MS C++ Build Tools, on a Win 7 32 bit machine, and there isn't a way to manually add MSVC toolchain.
                  On the same machine, QtCreator 3.6.1 auto detects MSVC toolchain correctly.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    synasius
                    wrote on last edited by
                    #9

                    Same here. Qt Creator 4.0 cannot detect MS C++ Build Tools. I'm running a Windows Server 2012 64bit

                    1 Reply Last reply
                    0
                    • LorenzoBL Offline
                      LorenzoBL Offline
                      LorenzoB
                      wrote on last edited by
                      #10

                      I'm having the same problem on a Win 7 Desktop.
                      Are Qt Creator 4.0 and Qt 5.6 compatible with:
                      Microsoft Visual Studio Community 2015
                      Version 14.0.23107.0 D14REL

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        synasius
                        wrote on last edited by
                        #11

                        Hi all,
                        the issue seems to be fixed here: https://bugreports.qt.io/browse/QTCREATORBUG-16136

                        1 Reply Last reply
                        0
                        • joaopagottoJ Offline
                          joaopagottoJ Offline
                          joaopagotto
                          wrote on last edited by
                          #12

                          Hello . I'm MSVC2015 problems , it does not work and gives as not recognized CL command. What can it be ?

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

                            Hi,

                            Did you install Visual Studio 2015 or at least the corresponding Build Tool package ?

                            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
                            • joaopagottoJ Offline
                              joaopagottoJ Offline
                              joaopagotto
                              wrote on last edited by
                              #14

                              It worked and stopped for no reason.

                              I can only do work that way.

                              Open Windows 10 Line Command:

                              %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86

                              C:\Qt\Tools\QtCreator\bin\qtcreator.exe

                              Only in this way works.

                              Along with MSVC 2015 package appears an exclamation mark .

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

                                You should be able to get more information hovering the exclamation mark

                                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
                                • joaopagottoJ Offline
                                  joaopagottoJ Offline
                                  joaopagotto
                                  wrote on last edited by
                                  #16

                                  https://s32.postimg.org/p0mazvdsl/error.png

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

                                    Silly question but do you have setup cmake in the corresponding tab ?

                                    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
                                    • joaopagottoJ Offline
                                      joaopagottoJ Offline
                                      joaopagotto
                                      wrote on last edited by
                                      #18

                                      The problem was solved.

                                      The operating system or visual studio 2015 should be corrupted after formatting and reinstalling everything functioned normally .

                                      Other applications were also with strange behavior .

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

                                        2016 and reformatting still works well it seems :D

                                        Glad you found a solution and thanks for sharing.

                                        Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                                        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
                                        1
                                        • T Offline
                                          T Offline
                                          twar
                                          wrote on last edited by
                                          #20

                                          Hello,
                                          I've got exactly the same problem and I do not know how to fix it.

                                          I installed
                                          https://www.visualstudio.com/pl/downloads/?rr=https%3A%2F%2Fwww.google.pl%2F
                                          Build Tools for Visual Studio 2017
                                          but I cannot set this in qtcreator.

                                          jsulmJ 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