Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    Tools
    2
    9
    10227
    Loading More Posts
    • 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
      hsierra00 last edited by

      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 Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        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 Reply Quote 0
        • H
          hsierra00 last edited by

          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 Reply Quote 0
          • JKSH
            JKSH Moderators last edited by

            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 Reply Quote 0
            • H
              hsierra00 last edited by

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

              1 Reply Last reply Reply Quote 0
              • JKSH
                JKSH Moderators last edited by

                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 Reply Quote 0
                • H
                  hsierra00 last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • JKSH
                    JKSH Moderators last edited by

                    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 Reply Quote 0
                    • H
                      hsierra00 last edited by

                      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 Reply Quote 0
                      • First post
                        Last post