This forum has been archived. All content is frozen. Please use KDE Discuss instead.

installing 3.1.5

Tags: None
(comma "," separated)
dime
Registered Member
Posts
4
Karma
0

installing 3.1.5

Fri Dec 05, 2008 11:28 pm
Code: Select all
dime@lanfear:~/ktorrent-3.1.5/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND
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: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: CMAKE_CXX_COMPILER-NOTFOUND -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
  The C++ compiler "CMAKE_CXX_COMPILER-NOTFOUND" is not able to compile a
  simple test program.

  It fails with the following output:

   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)


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 Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  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 done

dime@lanfear:~/ktorrent-3.1.5/build$ cmake --version
cmake version 2.6-patch 0
foolofil
Registered Member
Posts
5
Karma
0

Fri Dec 05, 2008 11:48 pm
The CMAKE_CXX_COMPILER not found indicated that you most likely omitted to install the gcc package for your distrib. Go get it.
Tell us what your distribution is if you have no clue about how to get GCC.
dime
Registered Member
Posts
4
Karma
0

Sat Dec 06, 2008 8:02 am
Code: Select all
dime@lanfear:~$ gcc --version
gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
foolofil
Registered Member
Posts
5
Karma
0

Sat Dec 06, 2008 4:46 pm
if testing "g++" works, try :
Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_CXX_COMPILER=`which g++` ..
dime
Registered Member
Posts
4
Karma
0

Sun Dec 07, 2008 4:05 pm
Thanks for reply foolofil. It turns out I didn't have g++, so I installed g++ package and tried again.

Code: Select all
dime@lanfear:~/ktorrent-3.1.5/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_CXX_COMPILER=`which g++` ..
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/dime/.kde/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
  CMakeLists.txt:2 (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.6)

  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 done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_CXX_COMPILER= /usr/bin/g++

-- Generating done
-- Build files have been written to: /home/dime/ktorrent-3.1.5/build


So if I'm right in guessing that the next step would be to install kde4, I have to stop and ask if that's really necessary. I realize that the k in ktorrent is for kde. I'm running ubuntu 8.10 and in my package manager, I have an option to click and install ktorrent 3.1.2. It takes up 1 meg and I'm done. I've used ktorrent 3.1.2 and it's great, everything works. However, a specific tracker I use only allows latest stable version which is 3.1.5, hence all the trouble. Trying to install kde4 with all the dependencies requires around 650 megs.
stoeptegel
Registered Member
Posts
1075
Karma
0

Sun Dec 07, 2008 5:21 pm
Well, you are gona need the lastest kdelibs one way or another if you are going to compile KTorrent.
foolofil
Registered Member
Posts
5
Karma
0

Mon Dec 08, 2008 12:04 am
moreover, check that you fetch the kdelibs-devel or -dev package (I don't run ubuntu so I can't tel). That will ensure that the headers you need to get it to build are fetched with the binaries.
You shouldn't need to fetch all of kde btw !
Good luck
dime
Registered Member
Posts
4
Karma
0

Mon Dec 08, 2008 4:04 am
I've installed kdelibs and kdelibs-dev, which is roughly 170 with dependencies. I still get the same error. I guess I'll try installing kde next.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]