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

Request for compiling howto

Tags: None
(comma "," separated)
Zajec
Registered Member
Posts
53
Karma
0

Request for compiling howto

Fri Feb 15, 2008 9:04 pm
I wish to compile KTorrent 3.0 from SVN. Is this possible to put some howto on http://ktorrent.org/index.php?page=downloads page?
George
Moderator
Posts
5421
Karma
1

Fri Feb 15, 2008 11:01 pm
It is pretty simple :

svn co svn://anonsvn.kde.org/home/kde/trunk/ex ... k/ktorrent
cd ktorrent
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path/to/prefix/of/kde4/installation ..
make
sudo make install

I'll put it in the FAQ
johndoe32102002
Registered Member
Posts
35
Karma
0

Tue Mar 25, 2008 4:19 am
What is the default path to the "/path/to/prefix/of/kde4/installation"? I am using KDE4 installed on Ubuntu 7.10 (Kubuntu). I tried /usr/bin/kde4 and that was not the default folder.

Thanks.


My Public PGP Encryption Key:
http://johndoe32102002.blogspot.com
Athantor
Registered Member
Posts
45
Karma
0

Tue Mar 25, 2008 12:34 pm
johndoe32102002 wrote:What is the default path to the "/path/to/prefix/of/kde4/installation"? I am using KDE4 installed on Ubuntu 7.10 (Kubuntu). I tried /usr/bin/kde4 and that was not the default folder.


Code: Select all
$ echo $(`locate kde4-config | head -n1` --prefix)


For me it gives (but I'm using Gentoo):
Code: Select all
athantor@athantor ~ % echo $(`locate kde4-config | head -n1` --prefix)
/usr/kde/4.0
athantor@athantor ~ %


HTH. :-)


Image Image
George
Moderator
Posts
5421
Karma
1

Tue Mar 25, 2008 2:59 pm
johndoe32102002 wrote:What is the default path to the "/path/to/prefix/of/kde4/installation"? I am using KDE4 installed on Ubuntu 7.10 (Kubuntu). I tried /usr/bin/kde4 and that was not the default folder.

Thanks.


kubuntu is /usr/lib/kde4
johndoe32102002
Registered Member
Posts
35
Karma
0

Thu Mar 27, 2008 12:37 am
cmake -DCMAKE_INSTALL_PREFIX=/usr/lib/kde4
CMake Error: The source directory "/home/user/ktorrent/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

The instructions on the FAQ page for KDE4 users compiling the latest version did not work as seen above. Please advise/update.

Remove instructions on the FAQ page:
mkdir build
cd build

The below is the output after removing those instructions:
cmake -DCMAKE_INSTALL_PREFIX=/usr/lib/kde4
-- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
CMake Error: ERROR: cmake/modules/FindKDE4Internal.cmake not found in /home/user/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps
-- Configuring done


My Public PGP Encryption Key:
http://johndoe32102002.blogspot.com
agforsyth
Registered Member
Posts
133
Karma
0

Thu Mar 27, 2008 3:57 am
Don't forget the ".." at the end of the cmake line. The files for it are in the ktorrent directory, and you're in ktorrent/build.

Edit:

Also, you need to make sure you have the following packages installed:

libgmp3-dev
libphonon-dev
libphonon4
cmake
kdelibs5-dev
kdelibs5
kdelibs5-data
kde-icons-oxygen
kde4libs-bin
kdebase-bin-kde4
kdebase-data-kde4
kdebase-runtime
kdebase-runtime-bin-kde4
kdebase-runtime-data
kdebase-runtime-data-common

I think installing kdebase-dev-kde4 will install all of those with kde in the name, but it will also install a bunch of other stuff you don't need.

Last edited by agforsyth on Thu Mar 27, 2008 4:07 am, edited 1 time in total.
johndoe32102002
Registered Member
Posts
35
Karma
0

Thu Mar 27, 2008 4:07 am
Thanks! But that didn't fix it as seen below:

cmake -DCMAKE_INSTALL_PREFIX=/usr/lib/kde4 ..
CMake Error: ERROR: cmake/modules/FindKDE4Internal.cmake not found in /home/user/.kde4/share/apps;/usr/lib/kde4/share/kde4/apps

I am also running Kubuntu Hardy with KDE4.

Here is apt-get trying to install lots of files just to get KTorrent 3.0.x to work:

user@COMPUTER:~/ktorrent/build$ sudo apt-get install libgmp3-dev libphonon-dev libphonon4 cmake kdelibs5-dev kdelibs5 kdelibs5-data kde-icons-oxygen kde4libs-bin kdebase-bin-kde4 kdebase-data-kde4 kdebase-runtime kdebase-runtime-bin-kde4 kdebase-runtime-data kdebase-runtime-data-common
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libphonon4 is already the newest version.
libphonon4 set to manually installed.
cmake is already the newest version.
kdelibs5 is already the newest version.
kdelibs5 set to manually installed.
kdelibs5-data is already the newest version.
kdelibs5-data set to manually installed.
kde-icons-oxygen is already the newest version.
kde-icons-oxygen set to manually installed.
kde4libs-bin is already the newest version.
kde4libs-bin set to manually installed.
kdebase-bin-kde4 is already the newest version.
kdebase-bin-kde4 set to manually installed.
kdebase-data-kde4 is already the newest version.
kdebase-data-kde4 set to manually installed.
kdebase-runtime is already the newest version.
kdebase-runtime set to manually installed.
kdebase-runtime-bin-kde4 is already the newest version.
kdebase-runtime-bin-kde4 set to manually installed.
kdebase-runtime-data is already the newest version.
kdebase-runtime-data set to manually installed.
The following extra packages will be installed:
comerr-dev hspell libacl1-dev libasound2-dev libaspell-dev libattr1-dev
libaudio-dev libavahi-common-dev libbz2-dev libcupsys2-dev libdbus-1-dev
libenchant-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev
libgcrypt11-dev libgif-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev
libgmpxx4ldbl libgnutls-dev libgnutlsxx13 libgpg-error-dev libice-dev
libjasper-dev libjpeg62-dev libkadm55 libkeyutils-dev libkrb5-dev
liblcms1-dev liblzo2-dev libmng-dev libopencdk10-dev libopenexr-dev
libpcre3-dev libpcrecpp0 libpng12-dev libpq-dev libpthread-stubs0
libpthread-stubs0-dev libqt4-dev libsm-dev libsoprano-dev libsqlite0-dev
libstreamanalyzer-dev libstreams-dev libtasn1-3-dev libtiff4-dev
libtiffxx0c2 libx11-dev libxau-dev libxcb-xlib0-dev libxcb1-dev
libxcursor-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev
libxinerama-dev libxml2-dev libxml2-utils libxmu-dev libxmu-headers
libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libxtst-dev
mesa-common-dev x11proto-core-dev x11proto-fixes-dev x11proto-input-dev
x11proto-kb-dev x11proto-randr-dev x11proto-record-dev x11proto-render-dev
x11proto-xext-dev x11proto-xinerama-dev xsltproc xtrans-dev
Suggested packages:
libasound2-doc aspell-doc libgcrypt11-doc libglib2.0-doc libgmp3-doc
libmpfr-dev gnutls-bin gnutls-doc krb5-doc postgresql-doc-8.3 qt4-doc
sqlite-doc
Recommended packages:
qt4-dev-tools
The following NEW packages will be installed:
comerr-dev hspell kdebase-runtime-data-common kdelibs5-dev libacl1-dev
libasound2-dev libaspell-dev libattr1-dev libaudio-dev libavahi-common-dev
libbz2-dev libcupsys2-dev libdbus-1-dev libenchant-dev libexpat1-dev
libfontconfig1-dev libfreetype6-dev libgcrypt11-dev libgif-dev
libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libgmp3-dev libgmpxx4ldbl
libgnutls-dev libgnutlsxx13 libgpg-error-dev libice-dev libjasper-dev
libjpeg62-dev libkadm55 libkeyutils-dev libkrb5-dev liblcms1-dev liblzo2-dev
libmng-dev libopencdk10-dev libopenexr-dev libpcre3-dev libpcrecpp0
libphonon-dev libpng12-dev libpq-dev libpthread-stubs0 libpthread-stubs0-dev
libqt4-dev libsm-dev libsoprano-dev libsqlite0-dev libstreamanalyzer-dev
libstreams-dev libtasn1-3-dev libtiff4-dev libtiffxx0c2 libx11-dev
libxau-dev libxcb-xlib0-dev libxcb1-dev libxcursor-dev libxdmcp-dev
libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-dev
libxml2-utils libxmu-dev libxmu-headers libxrandr-dev libxrender-dev
libxslt1-dev libxt-dev libxtst-dev mesa-common-dev x11proto-core-dev
x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev
x11proto-record-dev x11proto-render-dev x11proto-xext-dev
x11proto-xinerama-dev xsltproc xtrans-dev
0 upgraded, 86 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.7MB/21.8MB of archives.
After this operation, 93.3MB of additional disk space will be used.
Do you want to continue [Y/n]?y

It tried to install these but some of the programs are not compatible with each other or not found. See the error below:

Failed to fetch http://us.archive.ubuntu.com/ubuntu/poo ... 1_i386.deb 404 Not Found [IP: 91.189.88.31 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


My Public PGP Encryption Key:
http://johndoe32102002.blogspot.com
agforsyth
Registered Member
Posts
133
Karma
0

Thu Mar 27, 2008 10:10 am
Well, you definitely need those -dev packages. They have the header files needed to link against those libraries.

Don't know why you're getting that error, I'm running basically the same thing as you and don't have any problems. Try again later?
johndoe32102002
Registered Member
Posts
35
Karma
0

Fri Mar 28, 2008 5:22 pm
Yep, I will have to just wait until this bug fixes itself on both the KTorrent end and Kubuntu Hardy end. This will probably take about two months of waiting though.


My Public PGP Encryption Key:
http://johndoe32102002.blogspot.com
agforsyth
Registered Member
Posts
133
Karma
0

Sat Mar 29, 2008 7:39 am
johndoe32102002 wrote:Yep, I will have to just wait until this bug fixes itself on both the KTorrent end and Kubuntu Hardy end. This will probably take about two months of waiting though.


If your only problem is that 404 error you should be able to just run an apt-get update and then try again... don't really think there are any general bugs, as it's working for me.
stoeptegel
Registered Member
Posts
1075
Karma
0

Sun Mar 30, 2008 2:45 pm
George, do you happen to know this too. When i have the dev version installed, and i do an svn up and install it again, all the plugins and toolbars are gone. I seem to be only able to fix this by fully checking out ktorrent again.
Is there another fix?
George
Moderator
Posts
5421
Karma
1

Sun Mar 30, 2008 3:49 pm
stoeptegel wrote:George, do you happen to know this too. When i have the dev version installed, and i do an svn up and install it again, all the plugins and toolbars are gone. I seem to be only able to fix this by fully checking out ktorrent again.
Is there another fix?


I haven't encountered this problem, and I constantly install newer versions.
stoeptegel
Registered Member
Posts
1075
Karma
0

Tue Apr 01, 2008 6:33 pm
Hmm, it seems that a make clean is the cause of this, does that make sense?
George
Moderator
Posts
5421
Karma
1

Wed Apr 02, 2008 7:40 am
stoeptegel wrote:Hmm, it seems that a make clean is the cause of this, does that make sense?


Not really


Bookmarks



Who is online

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