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. CL not recognized
Forum Updated to NodeBB v4.3 + New Features

CL not recognized

Scheduled Pinned Locked Moved Installation and Deployment
13 Posts 4 Posters 14.0k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bjaustin
    wrote on last edited by
    #1

    This is my first time I have installed QT creator. Then I installed MSVC 2010, and the compiler(s) appeared in QTCreator. I have also added CL.exe to my path, but when I ran my first application, I received the following error:
    @'cl' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Users\Brian\QTProjects\ImagineInventory-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\main.obj] Error 1
    jom: C:\Users\Brian\QTProjects\ImagineInventory-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1
    jom: C:\Users\Brian\QTProjects\ImagineInventory-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile [debug] Error 2
    19:14:02: The process "C:\Qt\Qt5.0.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project ImagineInventory (kit: Desktop Qt 5.0.0 MSVC2010 32bit (SDK))
    When executing step 'Make'@
    How should I fix this?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      You should not need to add anything to your PATH, creator should do that for you.

      MSVC 2010 is detected in a lot of different flavors and a coworker recently found that not all of those are installed in all circumstances, so we sometimes show MSVC flavors that are not actually there (fixed in master;-). So try switching to a different flavor of the compiler. Does that fix the issue?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bjaustin
        wrote on last edited by
        #3

        [quote author="Tobias Hunger" date="1358761957"]You should not need to add anything to your PATH, creator should do that for you.
        [/quote]
        When would it do that?

        [quote author="Tobias Hunger" date="1358761957"]So try switching to a different flavor of the compiler. Does that fix the issue?[/quote]
        What do you mean by a different flavor?

        1 Reply Last reply
        0
        • B Offline
          B Offline
          BelenMuñoz
          wrote on last edited by
          #4

          I had the same problems a few days ago and I solved it executing vcvarsall.bat before (I was using nmake) it's suposed to add the variable to the path.
          I hope it can help you.
          Regards.

          Me casé con un enano pa jartarme de reí.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bjaustin
            wrote on last edited by
            #5

            I tried that:
            @C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC> vcvarsall.bat
            ERROR: Cannot determine the location of the VS Common Tools folder.
            C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>@

            [My operating system is Windows 7 64bit. Besides Qt and VSC++, I also have RAD Studio XE3 installed (C++, Delphi, HTML5Builder, and Prism).]

            1 Reply Last reply
            0
            • B Offline
              B Offline
              BelenMuñoz
              wrote on last edited by
              #6

              It's a problem with VS Common Tools.
              I've found this thread, hope you find something useful.
              http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/3312be98-cf2b-4907-af89-d91170ee90c0/

              Regards.

              Me casé con un enano pa jartarme de reí.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                bjaustin
                wrote on last edited by
                #7

                I read the first forum, and there was a link to another forum. I couldn't make heads or tails of the second; the first was helpful, but the suggestion that the environmental variable was not set was not true for my machine.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  sahumada
                  wrote on last edited by
                  #8

                  are you using msvc2010 express ?

                  Sergio Ahumada

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    bjaustin
                    wrote on last edited by
                    #9

                    [quote author="seahumad" date="1359174961"]are you using msvc2010 express ?[/quote]
                    Yes I am.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      sahumada
                      wrote on last edited by
                      #10

                      See the workaround for msvc2010 express 64 bit here http://qt-project.org/wiki/Qt500Beta2KnownIssues

                      Sergio Ahumada

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        bjaustin
                        wrote on last edited by
                        #11

                        When installing the SDK I get an error, and it just says to check the log.

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          sahumada
                          wrote on last edited by
                          #12

                          well .. this is a windows/msvc problem rather than a Qt problem

                          Sergio Ahumada

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            bjaustin
                            wrote on last edited by
                            #13

                            [quote author="seahumad" date="1359209110"]See the workaround for msvc2010 express 64 bit here http://qt-project.org/wiki/Qt500Beta2KnownIssues[/quote]
                            I think that this worked (I had uninstall MSVC++ first then reinstall after the SDK installed). However, now when I compile most example programs, I get the error:
                            @error: LNK1104: cannot open file 'gdi32.lib'@

                            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