Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.3.0-rc1
-
Ubuntu 16.04
cmake 3.7.2
Description
- Build a cmake project on the command line
- Open the project in Qt Creator
- In projects mode, click Import Existing Build... and choose the build directory
Qt Creator creates an "Imported Kit" with a different build directory than the one specified. Changing the build directory to the actual one shows "Configuration failed", in the General Messages the output is:
Running "/home/nik/usr/cmake-3.7.2-Linux-x86_64/bin/cmake -E server --pipe=/tmp/cmake-OEcuue/socket --experimental" in /tmp/QtCreator-8cdLJm/qtc-cmake-XXTDwOi0. The C compiler identification is unknown CMake Error at CMakeLists.txt:47 (project): No CMAKE_C_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Configuring incomplete, errors occurred! See also "/tmp/QtCreator-8cdLJm/qtc-cmake-XXTDwOi0/CMakeFiles/CMakeOutput.log". See also "/tmp/QtCreator-8cdLJm/qtc-cmake-XXTDwOi0/CMakeFiles/CMakeError.log". Running "/home/nik/usr/cmake-3.7.2-Linux-x86_64/bin/cmake -E server --pipe=/tmp/cmake-WaxZwI/socket --experimental" in /tmp/QtCreator-8cdLJm/qtc-cmake-XXTDwOi0. Running "/home/nik/usr/cmake-3.7.2-Linux-x86_64/bin/cmake -E server --pipe=/tmp/cmake-HJkO7c/socket --experimental" in /home/nik/dev/llvm/4.0/builds/gcc54_rtti_debug. The C compiler identification is unknown CMake Error at CMakeLists.txt:47 (project): No CMAKE_C_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Configuring incomplete, errors occurred! See also "/home/nik/dev/llvm/4.0/builds/gcc54_rtti_debug/CMakeFiles/CMakeOutput.log". See also "/home/nik/dev/llvm/4.0/builds/gcc54_rtti_debug/CMakeFiles/CMakeError.log".
Attachments
For Gerrit Dashboard: QTCREATORBUG-18082 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
192696,2 | ProjectExplorer: Make imported buildconfiguration active | 4.3 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |