61
jonquil@jonquil-Satellite-L755D:~/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
  /home/jonquil/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
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!

With autotools I get this:

jonquil@jonquil-Satellite-L755D:~/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: `configure.ac' or `configure.in' is required
xjonquilx
  • 1,487

3 Answers3

96

Install build-essential Install build-essential if you haven't done so already. You can install it in the Software Center or with:

sudo apt-get update && sudo apt-get install build-essential
peterretief
  • 1,308
21

gcc does not contain g++, these are different packages. Install g++ Install g++:

apt-get install g++
Thomas
  • 1,656
  • Now I'm getting this:

    CMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE): ERROR: cmake/modules/FindKDE4Internal.cmake not found in /home/jonquil/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps Call Stack (most recent call first): CMakeLists.txt:6 (find_package)

    – xjonquilx Jun 18 '12 at 19:28
  • you are missing a build environment, it's more than just compilers, you need libraries and so on. Take a look here to find out what you need: https://help.ubuntu.com/community/CompilingEasyHowTo – Thomas Jun 18 '12 at 19:39
  • I KNEW there was a package I could install in Ubuntu that would give me all the necessary packages for compiling, I just couldn't remember the name of it. Thanks! – xjonquilx Jun 18 '12 at 19:50
  • I'm still getting the same error though. :( – xjonquilx Jun 18 '12 at 19:51
  • The error messages hint's at kde - kde development is not included in build-essential. Don't know if there is a meta package for this. – Thomas Jun 18 '12 at 20:00
  • Could kde-workspace-dev be it? How about kdelibs5-dev? – xjonquilx Jun 18 '12 at 20:36
  • I went ahead and installed them both and now it's going smoothly. Still got some unmet dependencies but I should be ok from here... if not I'll post here again! – xjonquilx Jun 18 '12 at 20:44
  • I thought I got all my dependencies but now when I type "make" I get this: /usr/local/bin/msgfmt: error while loading shared libraries: libgettextsrc-0.18.so: cannot open shared object file: No such file or directory make[2]: *** [po/bg/akonadi_gcal_resource.gmo] Error 127 make[1]: *** [po/bg/CMakeFiles/pofiles.dir/all] Error 2 make: *** [all] Error 2 – xjonquilx Jun 18 '12 at 21:15
  • I have libgettext installed btw. I also have libgettext-ocaml-dev installed. – xjonquilx Jun 18 '12 at 21:21
  • Ok, it was a package actually called libgettextsrc. I had to get the RPM version and convert it using Alien. I now have akonadi-google installed on my system. Thanks for all the help! I would vote you a few more times if I could. :D – xjonquilx Jun 18 '12 at 21:30
7

I am aware that this is "Ask Ubuntu", but if someone with Fedora would meet this problem, the following helped me:

sudo dnf install gcc-c++
Kepler
  • 71
  • 1
    Your are correct in terms of the purpose of this particular forum. Please note that questions - and answers - relating to distros other than Ubuntu Linux should be posted at https://unix.stackexchange.com – CentaurusA Sep 26 '18 at 02:52