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

installing ktorrent question

Tags: None
(comma "," separated)
KyferEz
Registered Member
Posts
32
Karma
0

installing ktorrent question

Mon Feb 02, 2009 8:49 pm
Maybe I'm just stupid, but I don't get this line:
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`..

Does the --prefix and .. bit mean I'm supposed to put something there? If so, I haven't a clue what!

In any event, I get this:
Code: Select all
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6$ mkdir build
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6$ cd build
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`..
bash: kde4-config: command not found
CMake Error: The source directory "/home/user/Desktop/filez/ktorrent-3.1.6/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$

Help! I think the install instructions are missing a few steps!
coj
Registered Member
Posts
13
Karma
0

Tue Feb 03, 2009 12:16 am
Make sure that you have a space between prefix' and the two dots,

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

or copy and paste the above.[/quote]
KyferEz
Registered Member
Posts
32
Karma
0

Tue Feb 03, 2009 12:24 am
Note: The instructions on the download page do NOT contain the space between the prefix' and the ..

Ok, I copied and pasted. Here's my result:
Code: Select all
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix' ..
>
So all I got was the > prompt. Typing make <enter> did nothing (which I figured wasn't right)

Now what?
George
Moderator
Posts
5421
Karma
1

Tue Feb 03, 2009 11:12 am
KyferEz wrote:Note: The instructions on the download page do NOT contain the space between the prefix' and the ..

Ok, I copied and pasted. Here's my result:
Code: Select all
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix' ..
>
So all I got was the > prompt. Typing make <enter> did nothing (which I figured wasn't right)

Now what?


`kde4-config --prefix`

You need two backticks
KyferEz
Registered Member
Posts
32
Karma
0

Tue Feb 03, 2009 10:29 pm
Now I'm getting this:
Code: Select all
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
bash: kde4-config: command not found
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- 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: 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.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring done
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$

But I have cmake 2.4.7-1 build 1 installed.
George
Moderator
Posts
5421
Karma
1

Wed Feb 04, 2009 9:53 am
Install g++

If you are running an ubuntu version or a debian based linux distro, it is best you do :

sudo apt-get install build-dep ktorrent

That will install most things you need to compile ktorrent.
KyferEz
Registered Member
Posts
32
Karma
0

Thu Feb 05, 2009 7:35 pm
Got this:
Code: Select all
Reading package lists... Done
user@LinuxOnGX280:~$ sudo apt-get install build-dep ktorrent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package build-dep
user@LinuxOnGX280:~$


??????
stoeptegel
Registered Member
Posts
1075
Karma
0

Thu Feb 05, 2009 8:23 pm
KyferEz wrote:Got this:
Code: Select all
Reading package lists... Done
user@LinuxOnGX280:~$ sudo apt-get install build-dep ktorrent
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package build-dep
user@LinuxOnGX280:~$


??????


Yeah, George made a typo, use this:
Code: Select all
sudo apt-get build-dep ktorrent


This will get you going with most dependencies.
KyferEz
Registered Member
Posts
32
Karma
0

Thu Feb 05, 2009 9:00 pm
Done. Now I get this:
Code: Select all
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
bash: kde4-config: command not found
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
CMake Error: ERROR: Could not find KDE4 kde4-config
-- Configuring done
user@LinuxOnGX280:~/Desktop/filez/ktorrent-3.1.6/build$

I have ktorrent version 3.0.1 already installed, so I know I have the kde stuff installed, or does this have to do with building a kde app?
KyferEz
Registered Member
Posts
32
Karma
0

Mon Feb 09, 2009 11:37 pm
Still trying to install... A full detailed guide would be much appreciated instead of it taking over a week in back and forth :(
KyferEz
Registered Member
Posts
32
Karma
0

Wed Feb 11, 2009 6:01 pm
anyone? :(

I'm running Ubuntu 8.04 with all the updates if that helps.
stoeptegel
Registered Member
Posts
1075
Karma
0

Wed Feb 11, 2009 6:06 pm
Yeah, i am sorry, i do not know what todo with this line of output:
Code: Select all
CMake Error: ERROR: Could not find KDE4 kde4-config
KyferEz
Registered Member
Posts
32
Karma
0

Wed Feb 25, 2009 9:14 pm
Well, guess I"m SOL :(
George
Moderator
Posts
5421
Karma
1

Thu Feb 26, 2009 9:22 am
Install the kde4 development packages, kde4-config should be included in those
KyferEz
Registered Member
Posts
32
Karma
0

Fri Feb 27, 2009 11:12 pm
I went to the package manager and selected kde4-devel which selected a bunch of other packages. Installed them all and same result as before: could not find kde4-config


Bookmarks



Who is online

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