CMake generator error
-
Hello,
I've tried to re-open an "old" project made before I had to re-setup Windows. Since then I have the following error message when I try to build the project:
"Generator: execution of make failed. Make command was: C:/mingw64/bin/ninja.exe all &&"I've googled this error message but I did not find anything within my understanding level (a CMake configuration problem on Windows 10 ?).
However I've tried to change the CMake generator in the projetc settings to MinGW Makefiles (as it is the compiler use for the project) but it did not solve the problem.If you have any idea about what is wrong and how to solve it, let me know.
Thanks for reading.
-
@Aymeric_Qt said in CMake generator error:
"Generator: execution of make failed. Make command was: C:/mingw64/bin/ninja.exe all &&"
Try to do a clean build of your project, by either deleting the build directory / CMakeCache.txt file in the build directory manually, or by running 'Clear CMake Configuration' from Qt Creator's 'Build' menu.
-
-
Hello,
Thank you for your reply and sorry for this late answer.
Actually no the file does not exist. I have a mingw_64 folder in the Qt folder (C:\Qt<Qt version>\mingw_64\bin) but there is no ninja.exe file.
It seems that mingw uses ninja but ninja is not in the right folder.
However I've checked in the maintenance tool and Ninja is indeed installed.
But I don't really understand why ninja is suddenly required (maybe it was before) and why Make try to get mingw at C root and not in the Qt folder.
Therefore I don't know what to do.
Do I have to install mingw my self (but why) ?
Or do I need to configure CMake or Make and if how ?
Or do I miss the point ? -
@Aymeric_Qt Ninja is not required. Usually if you want to use Ninja you have to tell CMake so: cmake -GNinja ...
So, how do you call CMake? -
Hello @jsulm,
I call CMake simply by lauching a build of the project in Qt Creator, nothing more than that. -
@Aymeric_Qt said in CMake generator error:
"Generator: execution of make failed. Make command was: C:/mingw64/bin/ninja.exe all &&"
Try to do a clean build of your project, by either deleting the build directory / CMakeCache.txt file in the build directory manually, or by running 'Clear CMake Configuration' from Qt Creator's 'Build' menu.
-
Hello @kkoehne
Thank you for thi really quick reply!
I've run Clear CMake Configuration and it worked!Quick note: Just after clearing CMake Configuration the build was failling with some error message including: "Could not load cache".
I've just restarted QtCreator and everything was fine.