Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Build problem

    Installation and Deployment
    3
    8
    4094
    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.
    • P
      Pekotte last edited by

      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 Reply Quote 0
      • M
        march last edited by

        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 Reply Quote 0
        • P
          Pekotte last edited by

          Thanks march to answer so quick,

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

          1 Reply Last reply Reply Quote 0
          • M
            march last edited by

            Try in google: "set environment variable windows"

            1 Reply Last reply Reply Quote 0
            • P
              Pekotte last edited by

              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 Reply Quote 0
              • M
                march last edited by

                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 Reply Quote 0
                • P
                  Pekotte last edited by

                  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 Reply Quote 0
                  • D
                    danieldil @Pekotte last edited by

                    @Pekotte So did you ever fix it?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post