Error: CMake + JOM + CL + Qt Creator
Solved
General and Desktop
-
I have a CMake project that works good on Mac OSX and Linux (Ubuntu), and now I would like to run it on Qt Creator IDE - Windows 10 x64.
I installed the Visual Studio Community 2019 (With C++ components) and CMake GUI.
When I try to open this project in Qt using MSVC compiler, I got this error below:
Running C:\Qt\Tools\CMake_64\bin\cmake.exe C:/Users/VM/Desktop/rtt-cmake "-GCodeBlocks - NMake Makefiles JOM" "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_CXX_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe" "-DCMAKE_C_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe" "-DCMAKE_PREFIX_PATH:STRING=C:/Qt/5.14.1/msvc2017_64" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/5.14.1/msvc2017_64/bin/qmake.exe" in C:\Users\VM\AppData\Local\Temp\QtCreator-oEgRZZ\qtc-cmake-WoTDSXJd. -- The CXX compiler identification is MSVC 19.25.28611.0 -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe CMake Error: Generator: execution of make failed. Make command was: jom /nologo cmTC_a1034\fast && -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe -- broken CMake Error at C:/Qt/Tools/CMake_64/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message): The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeTmp Run Build Command(s):jom /nologo cmTC_a1034\fast && O sistema não pode encontrar o arquivo especificado Generator: execution of make failed. Make command was: jom /nologo cmTC_a1034\fast && CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeOutput.log". See also "C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeError.log". CMake process exited with exit code 1. Running C:\Qt\Tools\CMake_64\bin\cmake.exe C:/Users/VM/Desktop/rtt-cmake "-GCodeBlocks - NMake Makefiles JOM" in C:\Users\VM\AppData\Local\Temp\QtCreator-oEgRZZ\qtc-cmake-WoTDSXJd. -- The CXX compiler identification is MSVC 19.25.28611.0 -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe CMake Error: Generator: execution of make failed. Make command was: jom /nologo cmTC_d1434\fast && -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe -- broken CMake Error at C:/Qt/Tools/CMake_64/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message): The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeTmp Run Build Command(s):jom /nologo cmTC_d1434\fast && O sistema não pode encontrar o arquivo especificado Generator: execution of make failed. Make command was: jom /nologo cmTC_d1434\fast && CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeOutput.log". See also "C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeError.log". CMake process exited with exit code 1. Running C:\Qt\Tools\CMake_64\bin\cmake.exe C:/Users/VM/Desktop/rtt-cmake "-GCodeBlocks - NMake Makefiles JOM" in C:\Users\VM\AppData\Local\Temp\QtCreator-oEgRZZ\qtc-cmake-WoTDSXJd. -- The CXX compiler identification is MSVC 19.25.28611.0 -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe CMake Error: Generator: execution of make failed. Make command was: jom /nologo cmTC_79ccb\fast && -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe -- broken CMake Error at C:/Qt/Tools/CMake_64/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message): The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/HostX86/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeTmp Run Build Command(s):jom /nologo cmTC_79ccb\fast && O sistema não pode encontrar o arquivo especificado Generator: execution of make failed. Make command was: jom /nologo cmTC_79ccb\fast && CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeOutput.log". See also "C:/Users/VM/AppData/Local/Temp/QtCreator-oEgRZZ/qtc-cmake-WoTDSXJd/CMakeFiles/CMakeError.log". CMake process exited with exit code 1.
Could you help me?