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. Build problem
QtWS25 Last Chance

Build problem

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 3 Posters 4.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.
  • P Offline
    P Offline
    Pekotte
    wrote on last edited by
    #1

    Hello everyone,
    I'm new using Qt5, and now I need your help. Maybe in a few weeks I could help someone ;).
    I was trying to build a project what is already working, and I found this error:

    'cl' is not recognized as an internal or external command,
    operable program or batch file.
    jom: C:\Users\YYYYYY\Desktop\build-XXXXXX-Desktop_Qt_5_3_MSVC2013_64bit-Debug\ZZZZZZ\Makefile.Debug [windows\hid.obj] Error 1
    jom: C:\Users\YYYYYY\Desktop\build-XXXXXX-Desktop_Qt_5_3_MSVC2013_64bit-Debug\ZZZZZZ\Makefile [debug] Error 2
    jom: C:\Users\YYYYYY\Desktop\build-XXXXXX-Desktop_Qt_5_3_MSVC2013_64bit-Debug\Makefile [sub-ZZZZZZ-make_first-ordered] Error 2
    11:57:38: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project XXXXXX (kit: Desktop Qt 5.3 MSVC2013 64bit)
    When executing step 'Make'

    I copied the 'cl' application from Visual Studio folder to "C:\Qt\Tools\QtCreator\bin" but now I've the same problem except the first line "'cl' is not recognized as an internal or external command, operable program or batch file."

    Regards

    Windows 8.1
    Visual Studio Express 2013
    Qt 5.3.1

    EDIT: I was reading the README file and I found this "This project was built and tested with the Qt 5.0.2 for Windows 32-bit (using the MinGW 4.7 compiler)". Could be that the problem?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      march
      wrote on last edited by
      #2

      You must set environment variables correctly.
      For example in my desktop:
      PATH=...;c:\Program Files\Microsoft Visual Studio 10.0\VC\bin;c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin;c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE;...

      INCLUDE=c:\Program Files\Microsoft Visual Studio 10.0\VC\include;c:\Program Files\Microsoft SDKs\Windows\v7.0A\Include;

      LIB=c:\Program Files\Microsoft Visual Studio 10.0\VC\lib;c:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib;

      VS100COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pekotte
        wrote on last edited by
        #3

        Thanks march to answer so quick,

        Could you say me exactly where I should change those parameters?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          march
          wrote on last edited by
          #4

          Try in google: "set environment variable windows"

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Pekotte
            wrote on last edited by
            #5

            Sorry march, I change them but I'm afraid is not working.
            Thanks anyway ;)

            EDIT: I could build it, I had to configure again the project Thanks for your help :)

            1 Reply Last reply
            0
            • M Offline
              M Offline
              march
              wrote on last edited by
              #6

              Hm, check your path details using my example. If you just copied my env vars values it's of course not working. I'm using MSVC2010 and it's version is 10.0 as you can see in path values (VS100COMNTOOLS - it's visual studio 10.0 version, c:\Program Files\Microsoft Visual Studio 10.0...)
              If you using MSVC2013 64 bit (version compiler 12.0) it might be something like VS120COMNTOOLS,
              c:\Program Files\Microsoft Visual Studio 12.0 etc
              I repeat - check your paths.
              You can run cmd(Start->Run->type 'cmd') and type ">cl" - to check is system can find this.
              Note. If you change your PATH and other vars you must reboot PC

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pekotte
                wrote on last edited by
                #7

                It can't no possible, I just come back from two weeks off, turn the pc on and now I've the same problem. :S

                D 1 Reply Last reply
                0
                • P Pekotte

                  It can't no possible, I just come back from two weeks off, turn the pc on and now I've the same problem. :S

                  D Offline
                  D Offline
                  danieldil
                  wrote on last edited by
                  #8

                  @Pekotte So did you ever fix it?

                  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