Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The problem of QtCreator on win
QtWS25 Last Chance

The problem of QtCreator on win

Scheduled Pinned Locked Moved General and Desktop
qtcreatorqt5.4msvc13c++11
23 Posts 3 Posters 11.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.
  • J Offline
    J Offline
    jack9603301
    wrote on 1 Sept 2015, 07:31 last edited by
    #1

    Hello, everyone, I use the QtCreator compiler of my project, often appear unable to compile the problem, use the compiler is the msvc2013 compiler, the error is:
    'cl'is not an internal or external command, nor can it run the program or batch file.
    J:\Programming\SourceCode\SeniorEditor\Build\Configure\Makefile.Debug [debug\moc_Configure.obj] Error jom: 1
    J:\Programming\SourceCode\SeniorEditor\Build\Configure\Makefile [debug] Error jom: 2
    J:\Programming\SourceCode\SeniorEditor\Build\Makefile [sub-Configure-make_first] Error jom: 2
    14:58:52: process "D:\Qt\Tools\QtCreator\bin\jom.exe" exit, exit code 2.
    While building/deploying project SeniorEditor Error (Desktop Qt 5.4.2 MSVC2013 OpenGL 32bit kit:)
    Executing step When "Make"

    There is no one who knows what is the problem, please help to see how to solve the problem.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jeroentjehome
      wrote on 1 Sept 2015, 07:36 last edited by
      #2

      cl.exe is a program that controls the C/C++ compiler on windows (just google). So my guess is, your compiler/kit is not setup properly in QtCreator. When your project is open go to the project tab on the left side of the screen and check your settings.
      Then check your kit setup for the compiler, in this case MSVC2013.
      Make sure that the cl.exe file has it's path included in your path variable in windows. (should be done automatic when installing MSVC, or a restart might be needed).

      Greetz, Jeroen

      J 2 Replies Last reply 1 Sept 2015, 07:49
      0
      • J Jeroentjehome
        1 Sept 2015, 07:36

        cl.exe is a program that controls the C/C++ compiler on windows (just google). So my guess is, your compiler/kit is not setup properly in QtCreator. When your project is open go to the project tab on the left side of the screen and check your settings.
        Then check your kit setup for the compiler, in this case MSVC2013.
        Make sure that the cl.exe file has it's path included in your path variable in windows. (should be done automatic when installing MSVC, or a restart might be needed).

        J Offline
        J Offline
        jack9603301
        wrote on 1 Sept 2015, 07:49 last edited by
        #3

        @Jeroentjehome Sorry, I just checked the qtcreator build tool settings, can detect and identify the MSVC2013 compiler

        1 Reply Last reply
        0
        • J Jeroentjehome
          1 Sept 2015, 07:36

          cl.exe is a program that controls the C/C++ compiler on windows (just google). So my guess is, your compiler/kit is not setup properly in QtCreator. When your project is open go to the project tab on the left side of the screen and check your settings.
          Then check your kit setup for the compiler, in this case MSVC2013.
          Make sure that the cl.exe file has it's path included in your path variable in windows. (should be done automatic when installing MSVC, or a restart might be needed).

          J Offline
          J Offline
          jack9603301
          wrote on 1 Sept 2015, 08:16 last edited by
          #4

          @Jeroentjehome Excuse me, is not set to go on the line, you have to set up their own PATH environment variables?

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jeroentjehome
            wrote on 1 Sept 2015, 10:09 last edited by
            #5

            In Windows your able to read out the path and check for yourself. It should have set the path automatic when installing. Did you have other MSVC compilers installed before? Maybe remove the old version from you path so it will find the new one?

            Greetz, Jeroen

            J 3 Replies Last reply 1 Sept 2015, 11:25
            0
            • J Jeroentjehome
              1 Sept 2015, 10:09

              In Windows your able to read out the path and check for yourself. It should have set the path automatic when installing. Did you have other MSVC compilers installed before? Maybe remove the old version from you path so it will find the new one?

              J Offline
              J Offline
              jack9603301
              wrote on 1 Sept 2015, 11:25 last edited by
              #6

              @Jeroentjehome Yes, I have MSVC2013, MSVC2008 and MSVC20.

              1 Reply Last reply
              0
              • J Jeroentjehome
                1 Sept 2015, 10:09

                In Windows your able to read out the path and check for yourself. It should have set the path automatic when installing. Did you have other MSVC compilers installed before? Maybe remove the old version from you path so it will find the new one?

                J Offline
                J Offline
                jack9603301
                wrote on 1 Sept 2015, 11:31 last edited by
                #7

                @Jeroentjehome Yes, I have VS2008, VS2013 and VS2015.

                1 Reply Last reply
                0
                • J Jeroentjehome
                  1 Sept 2015, 10:09

                  In Windows your able to read out the path and check for yourself. It should have set the path automatic when installing. Did you have other MSVC compilers installed before? Maybe remove the old version from you path so it will find the new one?

                  J Offline
                  J Offline
                  jack9603301
                  wrote on 2 Sept 2015, 03:03 last edited by
                  #8

                  @Jeroentjehome Sometimes, I go back home for a computer to open, and then every 2 days in the cl.exe to find out the error of the command of the computer, can be compiled, but it will be the same error, the recent emergence of information, whether it can help to solve the error?

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    Jeroentjehome
                    wrote on 2 Sept 2015, 09:54 last edited by
                    #9

                    Hi,
                    In your last post you mention that the cl sometimes works and sometimes not? Or am I mistaken?
                    It might be good that when you encounter this error you do a clean/run qmake/ build. Or just delete the entire 'release' shadow build folder.

                    Greetz, Jeroen

                    J 1 Reply Last reply 2 Sept 2015, 16:27
                    0
                    • J Jeroentjehome
                      2 Sept 2015, 09:54

                      Hi,
                      In your last post you mention that the cl sometimes works and sometimes not? Or am I mistaken?
                      It might be good that when you encounter this error you do a clean/run qmake/ build. Or just delete the entire 'release' shadow build folder.

                      J Offline
                      J Offline
                      jack9603301
                      wrote on 2 Sept 2015, 16:27 last edited by
                      #10

                      @Jeroentjehome I just tried to delete the build folder, the original notebook computer is still unable to compile, but after the replacement of the desktop, the compiler normal.

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        Jeroentjehome
                        wrote on 3 Sept 2015, 07:54 last edited by
                        #11

                        Hmm,
                        Well, then it seems that something must have gone wrong when you installed the notebook. Maybe reinstall MSVC and Qt and that might fix it.
                        Good for you that you are able to compile!

                        Greetz, Jeroen

                        J 4 Replies Last reply 5 Sept 2015, 07:24
                        0
                        • J Jeroentjehome
                          3 Sept 2015, 07:54

                          Hmm,
                          Well, then it seems that something must have gone wrong when you installed the notebook. Maybe reinstall MSVC and Qt and that might fix it.
                          Good for you that you are able to compile!

                          J Offline
                          J Offline
                          jack9603301
                          wrote on 5 Sept 2015, 07:24 last edited by
                          #12

                          @Jeroentjehome Thank you. I'll try.

                          1 Reply Last reply
                          0
                          • J Jeroentjehome
                            3 Sept 2015, 07:54

                            Hmm,
                            Well, then it seems that something must have gone wrong when you installed the notebook. Maybe reinstall MSVC and Qt and that might fix it.
                            Good for you that you are able to compile!

                            J Offline
                            J Offline
                            jack9603301
                            wrote on 6 Sept 2015, 08:06 last edited by
                            #13

                            @Jeroentjehome Sorry, I have tried to reinstall the Qt environment, is still invalid, online has said that the path to join the environmental variables PATH, QtCeator can not automatically identify the compiler path? I didn't join in before.

                            1 Reply Last reply
                            0
                            • J Jeroentjehome
                              3 Sept 2015, 07:54

                              Hmm,
                              Well, then it seems that something must have gone wrong when you installed the notebook. Maybe reinstall MSVC and Qt and that might fix it.
                              Good for you that you are able to compile!

                              J Offline
                              J Offline
                              jack9603301
                              wrote on 6 Sept 2015, 08:44 last edited by
                              #14

                              @Jeroentjehome Set the path to the PATH CL environment variable, or not.

                              1 Reply Last reply
                              0
                              • J Jeroentjehome
                                3 Sept 2015, 07:54

                                Hmm,
                                Well, then it seems that something must have gone wrong when you installed the notebook. Maybe reinstall MSVC and Qt and that might fix it.
                                Good for you that you are able to compile!

                                J Offline
                                J Offline
                                jack9603301
                                wrote on 6 Sept 2015, 09:09 last edited by
                                #15

                                @Jeroentjehome Will it be caused by MSVC2014? Can I from the QtCreator "build and run" setting, I use the Qt compiler settings is MSVC2013 ah.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 6 Sept 2015, 21:08 last edited by
                                  #16

                                  Hi,

                                  Yes it is, on Windows you can't mix and match. All of your libraries/application must be compiled with the same compiler. They are not compatible one with the other. So since you have the VS2013 package installed you must use Visual Studio 2013.

                                  If you want to use Visual Studio 2015, you have to build Qt yourself at this time.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  J 1 Reply Last reply 7 Sept 2015, 02:24
                                  0
                                  • S SGaist
                                    6 Sept 2015, 21:08

                                    Hi,

                                    Yes it is, on Windows you can't mix and match. All of your libraries/application must be compiled with the same compiler. They are not compatible one with the other. So since you have the VS2013 package installed you must use Visual Studio 2013.

                                    If you want to use Visual Studio 2015, you have to build Qt yourself at this time.

                                    J Offline
                                    J Offline
                                    jack9603301
                                    wrote on 7 Sept 2015, 02:24 last edited by
                                    #17

                                    @SGaist said:
                                    Visual Studio 2015 is installed to my experience, my computer at the same time the installation of Visual Studio 2015 and Visual Studio 2013, QtCreator can automatically identify it?

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 7 Sept 2015, 20:41 last edited by
                                      #18

                                      I'm not sure I understood what you wrote. Do you have both version installed on your machine ?

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      J 1 Reply Last reply 8 Sept 2015, 15:29
                                      0
                                      • S SGaist
                                        7 Sept 2015, 20:41

                                        I'm not sure I understood what you wrote. Do you have both version installed on your machine ?

                                        J Offline
                                        J Offline
                                        jack9603301
                                        wrote on 8 Sept 2015, 15:29 last edited by
                                        #19

                                        @SGaist Qt has MSVC 32 and x64, both use msvc2013 compiler, the compiler also installed vs2013 and 2015 (for experience). Mingw version can be compiled, MSVC is unable to find the CL command.

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 8 Sept 2015, 19:13 last edited by SGaist 9 Aug 2015, 19:13
                                          #20

                                          Did you check that your kits are setup properly ?

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          J 1 Reply Last reply 9 Sept 2015, 03:01
                                          0

                                          8/23

                                          2 Sept 2015, 03:03

                                          15 unread
                                          • Login

                                          • Login or register to search.
                                          8 out of 23
                                          • First post
                                            8/23
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved