Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Configuration of CMake throws error "No CMAKE_CXX_COMPILER could be found" - CMake log inside
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ajorona
    wrote on last edited by
    #1

    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.
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      How did you install the compilers ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved