Cannot create cmake project
-
Here is a screenshot
https://i.imgur.com/4z2Zzq6.png
The cmake executable is not marked red, and it can be invoked from the command line, yet the wizard does not let me continue, without any error message indicating what goes wrong.
What is the problem and how to fix it?
-
You can set the path for the CMake executable in Tools > Options > Build & Run > CMake.
( more info: https://qt-project.org/doc/qtcreator-2.8/creator-project-cmake.html )Then Create project: Ctrl+N - Project Without Qt - Empty Project C++ (Cmake build) - Next - Next - Next
And it's working for me. -
I already set that. It doesn't work.
[quote author="ningen" date="1415344017"]You can set the path for the CMake executable in Tools > Options > Build & Run > CMake.
(more info: https://qt-project.org/doc/qtcreator-2.8/creator-project-cmake.html)Then Create project: Ctrl+N - Project Without Qt - Empty Project C++ (Cmake build) - Next - Next - Next
And it's working for me. [/quote] -
How do you get your Cmake Wizard window (see screenshot) ? I do not find it.
-
What is qt creator version are you using?
-
[quote author="ningen" date="1415344485"]How do you get your Cmake Wizard window (see screenshot) ? I do not find it.[/quote]
Just open with Qt Creator a CMakeLists.txt file.
-
[quote author="ningen" date="1415344682"]What is qt creator version are you using?[/quote]
Qt Creator 2.8.1 (Qt 5.0.2)
The one that comes with Ubuntu 12.04.
-
Try to test Hello world project.
Ctrl+N – Project Without Qt – Empty Project C++ (Cmake build)
My version is 3.2.0 -
[quote author="ningen" date="1415344944"]Try to test Hello world project.
Ctrl+N – Project Without Qt – Empty Project C++ (Cmake build)
My version is 3.2.0[/quote]It works, but I need a project out of existing CMakeLists.txt file. I want the Qt Creator to automatically infer the build settings from it.
-
Try to open CMakeLists.txt (Hello world project) with qt creator. If it works too, check your first CMakeLists.txt format.