Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 7.0.0-beta1
-
Ubuntu 20.04 LTS
Windows 21H2
-
5edbf915a4 (qt-creator/qt-creator/8.0) 5edbf915a4 (qt-creator/qt-creator/master) 5edbf915a4 (qt-creator/tqtc-qt-creator/8.0)
Description
- In a terminal, add qmake and cmake to PATH.
I have my self-built Qt 6.2.3 and CMake 3.21.1 from Qt's online installer:qtrob@rob-desktop:~$ which qmake; which cmake /home/qtrob/dev/g++-9.3.0/qt-6.2.3-nowebengine-r/qtbase/bin/qmake /home/qtrob/qt-cmake/Tools/CMake/bin/cmake
- Start Creator with empty settings, e.g. using the parameter "-tcs".
It will automatically create a kit using the Qt version and CMake from step 1. - Create and build a new Qt Widgets Application project using Creator's wizard. Select CMake as build system and use defaults.
- Close Creator.
- Have a terminal which has different qmake and cmake versions in PATH:
qtrob@rob-desktop:~$ which qmake; which cmake /usr/bin/qmake /usr/bin/cmake
- Start Creator with empty settings, e.g. using the parameter "-tcs".
- Open the project you created in step 3.
You'll see a message box that no valid settings file could be found. - Click "OK".
You get to the "Configure Project" screen. Creator correctly detected the Qt and CMake previously used for building the project and created a temporary kit using those. - Click the "Manage..." button for the temporary kit.
- Select the temporary kit.
It claims to use CMake 0.0.0 which is obviously an incorrect version.
Please note that the paths to Qt and CMake in the temporary kit are absolutely correct, so all needed information seems to be available. Creator just fails at assigning the right name to CMake. In Creator 6.0.2 this worked correctly.