Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18082

CMake: "Import existing build" comes up with a different build dir

    XMLWordPrintable

Details

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes