Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unable to build project with JOM in Qt Creator
I'm trying to build a project with MSVC 2013 and Qt Creator 4.4.0 with JOM and was having issues to configure JOM. So, I tried to erase Qt Creator's configuration files completely and start from scratch.
In the fresh Qt configuration, after I opened the project, I set the CMake (3.9.3) location and ran CMake on the project. Unfortunately, by default, the Qt 5.6.3 Kit seems to choose the NMake generator instead of the NMake JOM generator. After deleting the build directory, I changed the generator to NMake JOM in the Kit configurations, but met the following error message:
CMake Error: Generator: execution of make failed. Make command was: "jom" "/NOLOGO" "cmTC_276f9\fast"
Any idea of why this is happening? As far as I remember, Qt Creator is supposed to build the projects with JOM.
How did you install Qt ?
Via the online installer
Do you have the same situation with a more recent version of Qt ?
Yup. Same situation with Qt 5.9.1
rmam last edited by rmam
I've just installed Qt Creator 4.6.2 on Windows 10 and when I tried to build the first project I've also experienced a similar problem.
Here's Qt Creator's output:
C:\Program Files\CMake\share\cmake-3.12\Modules\CMakeTestCCompiler.cmake:52: error: The C compiler "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.14.26428/bin/HostX86/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/rmam/AppData/Local/Temp/QtCreator-WwNhAr/qtc-cmake-cZffZkom/CMakeFiles/CMakeTmp Run Build Command:"jom" "/nologo" "cmTC_2b1c8\fast" The system cannot find the file specified Generator: execution of make failed. Make command was: "jom" "/nologo" "cmTC_2b1c8\fast"
edit: after adding Qt Creator's bin directory to the system path ( i.e. if Qt is installed in C:\Qt then it's C:\Qt\Tools\QtCreator\bin ) the build proceeded as expected. This agrees with Qt's FAQ entry on Qt Creator not finding a helper application, such as Git or a compiler, which suggests checking if the application is in the system PATH.
Qt Creator enables users to add entries to the PATH environment variable that are specific to each cmake project through the "Projects" menu -> "Build", and in the bottom part of the form in the "Build Environment" section click on "Details" and add entries to the PATH environment variable.
Having said that, how exactly can Qt Creator fail to include Qt Creator's bin folder in Qt Creator's PATH environment variable?