Configuration of CMake throws error "No CMAKE_CXX_COMPILER could be found" - CMake log inside



  • Hello All,

    I am trying to configure Qt 5.7 on my PC running ubuntu 17.10 "artful". gcc and g++ are installed. when I run the "hello world" test application a CMake log is printed to console. I am not sure what steps I need to take or what information I need to provide in order to get Qt 5.7 to run successfully on my machine.

    /Running "/usr/bin/cmake /home/aorona/workspace/language/cpp/concurrency_project '-GCodeBlocks - Unix Makefiles' -DCMAKE_CXX_COMPILER:STRING= -DQT_QMAKE_EXECUTABLE:STRING=/opt/Qt5_7_0/5.7/gcc_64/bin/qmake" in /home/aorona/workspace/language/cpp/build-concurrency_project-Desktop_Qt_GCC_64bit_qt_57_g-Default.
    -- The CXX compiler identification is unknown
    -- Configuring incomplete, errors occurred!
    See also "/home/aorona/workspace/language/cpp/build-concurrency_project-Desktop_Qt_GCC_64bit_qt_57_g-Default/CMakeFiles/CMakeOutput.log".
    See also "/home/aorona/workspace/language/cpp/build-concurrency_project-Desktop_Qt_GCC_64bit_qt_57_g-Default/CMakeFiles/CMakeError.log".
    CMake Error at CMakeLists.txt:1 (project):
      No CMAKE_CXX_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
      to the compiler, or to the compiler name if it is in the PATH.
    
    
    *** cmake process exited with exit code 1.
    Running "/usr/bin/cmake /home/aorona/test '-GCodeBlocks - Unix Makefiles' -DCMAKE_CXX_COMPILER:STRING= -DQT_QMAKE_EXECUTABLE:STRING=/opt/Qt5_7_0/5.7/gcc_64/bin/qmake" in /tmp/qtc-cmake-7TyR8D.
    Running "/usr/bin/cmake /home/aorona/test '-GCodeBlocks - Unix Makefiles' -DCMAKE_CXX_COMPILER:STRING= -DQT_QMAKE_EXECUTABLE:STRING=/opt/Qt5_7_0/5.7/gcc_64/bin/qmake" in /tmp/qtc-cmake-rf3tjD.
    -- The C compiler identification is GNU 7.2.0
    -- The CXX compiler identification is unknown
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    CMake Error at CMakeLists.txt:1 (project):
      No CMAKE_CXX_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CXX" or the CMake cache entry CMAKE_CXX_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/qtc-cmake-rf3tjD/CMakeFiles/CMakeOutput.log".
    See also "/tmp/qtc-cmake-rf3tjD/CMakeFiles/CMakeError.log".
    *** cmake process exited with exit code 1.
    

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    How did you install the compilers ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.