'cl' is not recognized as an internal or external command,

前端 未结 10 1722
萌比男神i
萌比男神i 2020-12-13 12:21

I am trying to compile a hello world program in Qt Using Qt Creator.

I am getting \'cl\' is not recognized as an internal or external command.

I am using Win

相关标签:
10条回答
  • 2020-12-13 12:38

    I had the same problem and I solved it by switching to MinGW from MSVC2010.

    Select the Project Tab from your left pane. Then select the "Target". From there change Qt version to MinGW instead of VC++.

    0 讨论(0)
  • 2020-12-13 12:39

    You will have to set environmental variables properly for each compiler. There are commands on your Program menu for each compiler that does that, while opening a command prompt.

    Another option is of course to use the IDE for building your application.

    0 讨论(0)
  • 2020-12-13 12:42

    You can use Command prompt for VS 2010 and then select the path that your boost located. Use "bootstrap.bat", you can successfully install it.

    0 讨论(0)
  • 2020-12-13 12:43

    I had the same problem. Try to make a bat-file to start the Qt Creator. Add something like this to the bat-file:

    call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"  
    "C:\QTsdk\qtcreator\bin\qtcreator" 
    

    Now I can compile and get:

    jom 1.0.8 - empower your cores
    11:10:08: The process "C:\QTsdk\qtcreator\bin\jom.exe" exited normally.
    
    0 讨论(0)
  • 2020-12-13 12:48

    Make sure you restart your computer after you install the Build Tools.

    This was what was causing the error for me.

    0 讨论(0)
  • 2020-12-13 12:55

    I had this problem because I forgot to select "Visual C++" when I was installing Visual Studio.

    To add it, see: https://stackoverflow.com/a/31568246/1054322

    0 讨论(0)
提交回复
热议问题