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

Problem installing KTorrent 3.2.2 from tarball

Tags: None
(comma "," separated)
imported4-nick
Registered Member
Posts
3
Karma
0
Hi,
Linux noob here, but this is what forums are for aye?
Okay; my current situation is this: KTorrent 3.2.2 is not installing from the tar.bz2. I can extract the files fine, but my first problem is the command
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`..
where by I am presented with the error:
CMake Error: The source directory "/home/nick/Desktop/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.


So I check /ktorrent-3.2.2/ and find there's a CMakeLists.txt file in there, and paste it to /ktorrent-3.2.2/build/, and run the command
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`..
again. But I get presented with this message:
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.


So, I edit the file with "cmake_minimum_required(VERSION 2.6)" so that CMakeLists.txt first reads:
project(KTORRENT)
find_package(KDE4 REQUIRED)
find_package(KDE4Internal REQUIRED)
find_package(GMP REQUIRED)
find_package(QCA2 REQUIRED)
cmake_minimum_required(VERSION 2.6)
and save.

I then run "cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`.." again, but this time, my noob skils let me down. This is the error:
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/nick/.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:2 (find_package)


I don't know what to do, hence why I am posting. I installed KTorrent 3.2.1 via the Synaptic Packet Manager, but the repositories don't have 3.2.2. I'm running Ubuntu with both GNOME and KDE installed, I've tried installing it under both (in seperate sessions of course) but still no go. I have root priveleges, but still this error continues. Should I try logging in as ROOT and trying over? How do I fix the error so I can install KTorrent 3.2.2?
Nick
User avatar
bassmadrigal
Registered Member
Posts
113
Karma
0

Sat Jun 13, 2009 10:02 pm
There is a minor typo in the directions on the website, that I just noticed...

There is supposed to be a space before the last two ..

cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..

So if you copy the above and try it in the build directory it should build properly.
imported4-nick
Registered Member
Posts
3
Karma
0

Sat Jun 13, 2009 11:30 pm
I'm afraid to say it didn't work; I still get the same error.
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/nick/.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:2 (find_package)

I've tried as ROOT but still not working :(

_________________________________________________-
Through some search I found this link: http://ktorrent.org/wiki/index.php/FAQ# ... pend_on.3F
And entered the command and everything was installed except for two things which I installed using Synaptic Packet Manager. But now I get this problem:
CMake Error at CMakeLists.txt:58 (add_subdirectory):
add_subdirectory given source "libbtcore" which is not an existing
directory.


CMake Error at CMakeLists.txt:59 (add_subdirectory):
add_subdirectory given source "libktcore" which is not an existing
directory.


CMake Error at CMakeLists.txt:60 (add_subdirectory):
add_subdirectory given source "libktupnp" which is not an existing
directory.


CMake Error at CMakeLists.txt:61 (add_subdirectory):
add_subdirectory given source "plugins" which is not an existing directory.


CMake Error at CMakeLists.txt:62 (add_subdirectory):
add_subdirectory given source "ideal" which is not an existing directory.


CMake Error at CMakeLists.txt:63 (add_subdirectory):
add_subdirectory given source "ktorrent" which is not an existing
directory.


CMake Error at CMakeLists.txt:64 (add_subdirectory):
add_subdirectory given source "ktupnptest" which is not an existing
directory.


CMake Error at CMakeLists.txt:66 (add_subdirectory):
add_subdirectory given source "plasma" which is not an existing directory.


--

-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
CMake Error at CMakeLists.txt:74 (add_subdirectory):
add_subdirectory given source "po" which is not an existing directory.



Any fixes? :(
I'm kind of getting annoyed here, and am thinking it would just be best to wait for Ubuntu's repositories to update and include 3.2.2.

___________________________________________________________

Fixed it; I installed TagLib or LibTag (can't remember) from Synaptic, and then tried the process again, and 3.2.2 installed.

Thread can be closed.
George
Moderator
Posts
5421
Karma
1

Sun Jun 14, 2009 12:20 pm
Looks like you are missing some dependencies :

http://ktorrent.org/wiki/index.php/FAQ# ... pend_on.3F

Install those packages, the missing cmake file should be in one of those (probably kdelibs5-dev).
imported4-nick
Registered Member
Posts
3
Karma
0

Sun Jun 14, 2009 6:16 pm
Yeh that was part of the problem, but that command didn't fully fix it; I had to install 3 packages extra via the Synaptic Package Manager, and so everything works now.


Bookmarks



Who is online

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