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

Cant get ktorrent to compile

Tags: None
(comma "," separated)
ninjasense
Registered Member
Posts
5
Karma
0

Cant get ktorrent to compile

Mon Jul 06, 2009 7:42 am
Im having a problem compiling the newest version of ktorrent on ubuntu 9.04. When i compile I get the following error from this line cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

Code: Select all
-- The CXX compiler identification is unknown
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.6/Modules/FindKDE4.cmake:84 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/sense/.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 incomplete, errors occurred!


I think I am missing some dependencies, but i dont know how to get them can someone help?

Last edited by ninjasense on Tue Jul 07, 2009 1:21 am, edited 1 time in total.
stoeptegel
Registered Member
Posts
1075
Karma
0

Mon Jul 06, 2009 3:45 pm
Have you followed the faq in the wiki?

Note that for KTorrent 3.2.2 you need kde 4.2.4(i am not totally sure about this version, could also be 4.2.2)
George
Moderator
Posts
5421
Karma
1

Mon Jul 06, 2009 8:33 pm
stoeptegel wrote:Have you followed the faq in the wiki?

Note that for KTorrent 3.2.2 you need kde 4.2.4(i am not totally sure about this version, could also be 4.2.2)


4.2 is also OK, KDE doesn't change the API with minor releases.
ninjasense
Registered Member
Posts
5
Karma
0

Tue Jul 07, 2009 1:21 am
stoeptegel wrote:Have you followed the faq in the wiki?

Note that for KTorrent 3.2.2 you need kde 4.2.4(i am not totally sure about this version, could also be 4.2.2)


yea, I tried

Code: Select all
build-essential kdesdk kdelibs5-dev libqca2-dev libgmp3-dev subversion cmake
automoc kdebase-workspace-dev libplasma-dev libboost-dev kdepimlibs5-dev libtag1-dev


and I got errors on both, It said it did not know what build-essential was
ninjasense
Registered Member
Posts
5
Karma
0

Tue Jul 07, 2009 8:29 am
I think I have the dependencies working correctly with:


Code: Select all
sudo apt-get install build-essential kdesdk kdelibs5-dev libqca2-dev libgmp3-dev subversion cmake
sudo apt-get install
automoc kdebase-workspace-dev libplasma-dev kdepimlibs5-dev libtag1-dev


but now Im getting this:
Code: Select all
CMake Error: The source directory "/home/user/ktorrent-3.2.2/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
[/code]
George
Moderator
Posts
5421
Karma
1

Tue Jul 07, 2009 8:20 pm
Don't forget the .. at the end of the cmake command, you need to point cmake to the source directory.
ninjasense
Registered Member
Posts
5
Karma
0

Wed Jul 08, 2009 8:55 am
George wrote:Don't forget the .. at the end of the cmake command, you need to point cmake to the source directory.


in the directory ~/ktorrent-3.2.2/build i am running

Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`..


and that error is popping up
stoeptegel
Registered Member
Posts
1075
Karma
0

Thu Jul 09, 2009 6:20 pm
ninjasense wrote:and I got errors on both, It said it did not know what build-essential was


Weird, build-essential should be in your repo, maybe you /etc/apt/sources.list is corrupted or something, just a guess.
George
Moderator
Posts
5421
Karma
1

Thu Jul 09, 2009 8:32 pm
ninjasense wrote:
George wrote:Don't forget the .. at the end of the cmake command, you need to point cmake to the source directory.


in the directory ~/ktorrent-3.2.2/build i am running

Code: Select all
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`..


and that error is popping up


Put a space between cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` and ..
ninjasense
Registered Member
Posts
5
Karma
0

Fri Jul 10, 2009 10:22 am
Thank you guys for being so helpful, I finally got it!!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar