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. Qt Creator 4 - Windows 10 detects MSVC but not detects cl.exe and lib + include folders
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 4 - Windows 10 detects MSVC but not detects cl.exe and lib + include folders

Scheduled Pinned Locked Moved Solved Installation and Deployment
13 Posts 2 Posters 4.0k 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.
  • G Offline
    G Offline
    glararan
    wrote on last edited by A Former User
    #1

    Hi,

    I installed Qt 5.7 RC with Qt Creator 4.0.1.
    I have Windows 10 Insider Preview installed on disc "C". MSVC 15 Enterprise is installed on disc "D". Qt can't find cl.exe even if it's in System Environment Path.

    What is strange is that new created project has different environment path string than system environment path. So currently it can't find cl.exe and include headers like <iostream>..

    When I type "#include <" I can see from intellisense Qt headers and dirs from C:/ which is strange. C:/ is not in environment path.

    Can someone explain what's going on?

    Thanks

    SOLUTION: Manually add Kits

    1 Reply Last reply
    0
    • G Offline
      G Offline
      glararan
      wrote on last edited by glararan
      #2

      no one had this problem before?

      1 Reply Last reply
      0
      • jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Did you check the compiler settings in "Tools/Options.../Build & Run/Compilers"?
        Qt headers/libs are found if Qt is configured properly in QtCreator, no need to have it in PATH.

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

        1 Reply Last reply
        0
        • G Offline
          G Offline
          glararan
          wrote on last edited by
          #4

          Compiler is successfully found.

          Btw it was Qt 5.7 RC, so I uninstalled it, currently downloading final release

          1 Reply Last reply
          0
          • G Offline
            G Offline
            glararan
            wrote on last edited by
            #5

            Even after install Qt 5.7 final not working.

            Options > Tools > Compilers look like this: https://ctrlv.cz/shots/2016/06/16/Tq9z.png

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

              Is the C++ compiler really installed?
              As far as I know it is not installed by default if you install VS2015.
              Can you build a simple C++ program in VS2015?

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

              1 Reply Last reply
              0
              • G Offline
                G Offline
                glararan
                wrote on last edited by glararan
                #7

                Sure, there is a prove: https://ctrlv.cz/shots/2016/06/17/RPx7.png

                Yes I know VS15 normally not install C++, I installed these modules

                Can be problem in drives? Visual Studio is not installed on System drive.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  glararan
                  wrote on last edited by
                  #8

                  Thread revive... Still can't figure it out, any ideas please?

                  Thanks

                  1 Reply Last reply
                  0
                  • jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    In the screen-shot you posted you have compilers with exactly same name under autodetected and manual sections. Which one do you use? Are there differences?

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

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      glararan
                      wrote on last edited by
                      #10

                      I did not created them manually, they appeard there. I'm using auto-detected.

                      jsulmJ 1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        glararan
                        wrote on last edited by
                        #11

                        Thread revive...

                        1 Reply Last reply
                        0
                        • G glararan

                          I did not created them manually, they appeard there. I'm using auto-detected.

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @glararan I really doubt the compilers under "Manual" appeared automatically. Auto-detected compilers are in the "Auto-detected" section.

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

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            glararan
                            wrote on last edited by glararan
                            #13

                            I'm 100% I did not added them. I removed them, now it says "No compiler" in Options > Build & Run > Kits > Auto-detected.

                            EDIT: So I had to add manually new Kit. Solved for now

                            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