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 build example error, configuration problem, cl not found
QtWS25 Last Chance

Qt Creator build example error, configuration problem, cl not found

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 2 Posters 10.9k 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.
  • H Offline
    H Offline
    hsierra00
    wrote on last edited by
    #1

    hello
    I’m new for Qt,I installed qt for msvc2010, i have VS 2010 installed, when I load a example and try to run or build have error in compiled output with cl not found.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      Follow these guides to "tell Qt Creator where to find your compiler":http://qt-project.org/doc/qtcreator-2.7/creator-tool-chains.html, and then "add a Kit":http://qt-project.org/doc/qtcreator-2.7/creator-targets.html

      After that, you'll need to re-configure your example project (open it, and then click on "Projects" on the left of Qt Creator)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hsierra00
        wrote on last edited by
        #3

        hi, I review the post recomended, but in my case I do not have to add any compiler because it is autodetected by Qt "Microsoft Visual C++ compiler" 10.0(x86) and example are in "C:\Qt\Qt5.0.2\5.0.2\msvc2010" so i think that it is right configured!!!

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          What Kit is your project using?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hsierra00
            wrote on last edited by
            #5

            I used this Kit "Desktop Qt 5.0.2 MSVC2010 32bit"

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Open Tools -> Options -> Build & Run -> Kits

              Do you see a yellow or red error icon next to "Desktop Qt 5.0.2 MSVC2010 32bit"? If so, what does it say?

              Which example are you trying to build?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hsierra00
                wrote on last edited by
                #7

                I see yellow icon and this happen with everything, that include one new project created by me.

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  Yellow icon means that your Kit is not set up properly -- either your Qt Version and/or your Compiler is not set up properly.

                  Hover your mouse over the yellow icon, and a box should pop-up. Post the error/warning here (or take a screenshot)

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hsierra00
                    wrote on last edited by
                    #9

                    I searched about this problem, and after so much time I find a soluction for this, the cause of the problem is unknow for me, but work fine I did a .bat file with this code:

                    call "C:\Archivos de programa\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
                    "C:\Qt\Qt5.1.0\Tools\QtCreator\bin\qtcreator"

                    so I have to run vcvars32.bat before the qtcreator. I think that is not ideal soluction but it is the only one found up to this moment.

                    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