cmake échoue avec "Erreur CMake: votre compilateur CXX:" CMAKE_CXX_COMPILER-NOTFOUND "n'a pas été trouvé."

[email protected]:~/Downloads/akonadi-googledata-1.2.0/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Avec les autotools, j'obtiens ceci:

[email protected]:~/Downloads/akonadi-googledata-1.2.0/build/build$ autoreconf -i -f
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
autoreconf: '' or '' is required
posée xjonquilx 18.06.2012 - 19:14
la source

2 réponses


Installez build-essential si vous ne l'avez pas déjà fait. Vous pouvez l'installer dans le Software Center ou avec:

sudo apt-get update && sudo apt-get install build-essential
réponse donnée peterretief 03.02.2013 - 08:44
la source

gcc ne contient pas g ++, ce sont des packages différents. Installez g ++ :

apt-get install g++
réponse donnée Thomas 18.06.2012 - 20:13
la source

Lire d'autres questions sur les étiquettes