Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODEEXT-151

Cmake doens't see C++ compiler on Ubuntu 22.04

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 1.4.0, 1.5.0, 1.3.1
    • 1.2.0
    • CMake
    • None
    • Linux/X11

    Description

      Just installed Extension Pack and got errors while trying to build a simple project.

       

      [proc] Executing command: /usr/bin/cmake --version
      [proc] Executing command: /usr/bin/cmake -E capabilities
      [kit] Successfully loaded 30 kits from /home/amir/.local/share/CMakeTools/cmake-tools-kits.json
      [variant] Loaded new set of variants
      [main] Configuring project: elevationTest
      [proc] Executing command: /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/home/amir/Programs/Qt/6.8.2/gcc_64/lib/cmake/Qt6/qt.toolchain.cmake -DQT_QML_GENERATE_QMLLS_INI:STRING=ON --no-warn-unused-cli -S/home/amir/Projects/elevationTest -B/home/amir/Projects/elevationTest/build -G Ninja
      [cmake] Not searching for unused variables given on the command line.
      [kit] Successfully loaded 16 kits from /home/amir/.local/share/CMakeTools/cmake-tools-kits.json
      [cmake] – The CXX compiler identification is unknown
      [cmake] – Configuring incomplete, errors occurred!
      [cmake] See also "/home/amir/Projects/elevationTest/build/CMakeFiles/CMakeOutput.log".
      [cmake] See also "/home/amir/Projects/elevationTest/build/CMakeFiles/CMakeError.log".
      [cmake] CMake Error at CMakeLists.txt:3 (project):
      [cmake] No CMAKE_CXX_COMPILER could be found.
      [cmake]
      [cmake] Tell CMake where to find the compiler by setting either the environment
      [cmake] variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
      [cmake] to the compiler, or to the compiler name if it is in the PATH.
      [cmake]
      [cmake]
      [proc] The command: /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/home/amir/Programs/Qt/6.8.2/gcc_64/lib/cmake/Qt6/qt.toolchain.cmake -DQT_QML_GENERATE_QMLLS_INI:STRING=ON --no-warn-unused-cli -S/home/amir/Projects/elevationTest -B/home/amir/Projects/elevationTest/build -G Ninja exited with code: 1

       

       

      Pinned a project archive with build dir inside.

      Attachments

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

        Activity

          People

            orkun.tokdemir Orkun Tokdemir
            amirafendin Amir Afendin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes