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

compiling ktorrent on Kubuntu

Tags: None
(comma "," separated)
goodtorrents
Registered Member
Posts
8
Karma
0

compiling ktorrent on Kubuntu

Tue Feb 02, 2010 1:23 pm
Hello,

Because of this critical bug:
viewtopic.php?f=1&t=3426
I must compile ktorrent from the patched source.

I am trying to follow the instructions here:
http://ktorrent.org/wiki/index.php/FAQ# ... _depend.3F

But on Kubuntu 9.10, I get:
Code: Select all
$ sudo apt-get install build-essential kdesdk kdelibs5-dev libqca2-dev libgmp3-dev subversion cmake automoc kdebase-workspace-dev libboost-dev kdepimlibs5-dev libtag1-dev python-kde4 kdelibs5-dev libgeoip-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
subversion is already the newest version.
subversion set to manually installed.
cmake is already the newest version.
python-kde4 is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  kdebase-workspace-dev: Depends: kdebase-workspace-libs4+5 (= 4:4.3.2-0ubuntu7.1) but 4:4.3.4-0ubuntu1~karmic1~ppa2 is to be installed
                         Depends: libkwineffects1 (= 4:4.3.2-0ubuntu7.1) but 4:4.3.4-0ubuntu1~karmic1~ppa2 is to be installed
                         Depends: libkdecorations4 (= 4:4.3.2-0ubuntu7.1) but 4:4.3.4-0ubuntu1~karmic1~ppa2 is to be installed
  kdelibs5-dev: Depends: kdelibs5 (= 4:4.3.2-0ubuntu7.2) but 4:4.3.4-0ubuntu1~karmic1~ppa1 is to be installed
                Depends: libplasma3 (= 4:4.3.2-0ubuntu7.2) but 4:4.3.4-0ubuntu1~karmic1~ppa1 is to be installed
  kdepimlibs5-dev: Depends: kdepimlibs5 (= 4:4.3.2-0ubuntu1) but 4:4.3.4-0ubuntu1~karmic1~ppa1 is to be installed
E: Broken packages


I am still investigating the dependency errors, but any help at this stage would be welcome. :)

Thanks.
goodtorrents
Registered Member
Posts
8
Karma
0

Re: compiling ktorrent on Kubuntu

Tue Feb 02, 2010 1:41 pm
btw, here is what I got when I tried to compile:
Code: Select all
$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..                                                                                         
-- The C compiler identification is GNU                                                                   
-- The CXX compiler identification is GNU                                                                 
-- Check for working C compiler: /usr/bin/gcc                                                             
-- Check for working C compiler: /usr/bin/gcc -- works                                                     
-- Detecting C compiler ABI info                                                                           
-- Detecting C compiler ABI info - done                                                                   
-- Check for working CXX compiler: /usr/bin/c++                                                           
-- Check for working CXX compiler: /usr/bin/c++ -- works                                                   
-- Detecting CXX compiler ABI info                                                                         
-- Detecting CXX compiler ABI info - done                                                                 
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):                                   
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in                                                 
  .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)                                                                         


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!
George
Moderator
Posts
5421
Karma
1

Re: compiling ktorrent on Kubuntu

Tue Feb 02, 2010 5:10 pm
Which package repositories are you using ?
goodtorrents
Registered Member
Posts
8
Karma
0

Re: compiling ktorrent on Kubuntu

Wed Feb 03, 2010 4:44 am
here is /etc/apt/source.list
Code: Select all
# deb cdrom:[Kubuntu 9.10 _Karmic Koala_ - Beta amd64 (20090929.2)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://tw.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://tw.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner

deb http://us.archive.ubuntu.com/ubuntu/ karmic-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-security main restricted
deb http://us.archive.ubuntu.com/ubuntu/ karmic-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-security universe
deb http://us.archive.ubuntu.com/ubuntu/ karmic-security multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-security multiverse

# http://www.kubuntu.org/news/kde-4.3.3
# http://www.kubuntu.org/faq/PPA-keys
deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu karmic main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu karmic main

George
Moderator
Posts
5421
Karma
1

Re: compiling ktorrent on Kubuntu

Wed Feb 03, 2010 5:25 pm
I get my KDE packages from karmic-backports (4.3.5 packages), you should try those instead of packages from ppa.launchpad, usually official packages are better, and there is less chance to run into these kind of dependency problems.
goodtorrents
Registered Member
Posts
8
Karma
0

Re: compiling ktorrent on Kubuntu

Mon Feb 08, 2010 6:53 pm
Thank you George for the 3.3.4 release :)

Yes, you're right about the sources.
Besides, I just noticed that kubuntu.org itself advises to move to karmic-backport:
"KDE SC 4.3.4 moved from PPA to karmic-backports"
http://www.kubuntu.org/node/126

(Also, I had missed this piece of news:
http://dot.kde.org/2009/11/24/repositioning-kde-brand
... I was wondering where the SC came from).

Back to the compilation: with the new repositories, everything went like a charm. I still have to make install, but the compilation itself went smoothly.

Here are a few warnings that were given while compiling. I don't know if it means anything to you and if it's useful:

Code: Select all
...                                                                         
[  5%] Building CXX object libbtcore/CMakeFiles/btcore.dir/net/socket.o                                                                               
ktorrent-3.3.4/libbtcore/net/socket.cpp:333:2: warning: #warning "Find way to set IPv6 traffic class"       
[  5%] Building CXX object libbtcore/CMakeFiles/btcore.dir/net/socketmonitor.o
...                                                       
[ 15%] Building CXX object libbtcore/CMakeFiles/btcore.dir/interfaces/chunkselectorinterface.o                                                         
ktorrent-3.3.4/libbtcore/interfaces/chunkselectorinterface.cpp:36: warning: unused parameter ‘from’         
ktorrent-3.3.4/libbtcore/interfaces/chunkselectorinterface.cpp:36: warning: unused parameter ‘to’           
ktorrent-3.3.4/libbtcore/interfaces/chunkselectorinterface.cpp:36: warning: unused parameter ‘max_len’     
[ 15%] Building CXX object libbtcore/CMakeFiles/btcore.dir/interfaces/cachefactory.o         
...
                                                                   
[ 25%] Building CXX object libbtcore/CMakeFiles/btcore.dir/tracker/udptrackersocket.o                                                                 
ktorrent-3.3.4/libbtcore/tracker/udptrackersocket.cpp: In member function ‘void bt::UDPTrackerSocket::dataReceived()’:                                                                                                                                       
ktorrent-3.3.4/libbtcore/tracker/udptrackersocket.cpp:180: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result                                                                                       
[ 25%] Building CXX object libbtcore/CMakeFiles/btcore.dir/tracker/trackermanager.o 
...
                                                                   
[ 27%] Building CXX object libbtcore/CMakeFiles/btcore.dir/migrate/ccmigrate.o                                                                         
ktorrent-3.3.4/libbtcore/migrate/ccmigrate.cpp:59: warning: unused parameter ‘tor’                         
[ 27%] Building CXX object libbtcore/CMakeFiles/btcore.dir/migrate/migrate.o     
...
                                                     
[ 30%] Building CXX object libktcore/CMakeFiles/ktcore.dir/torrent/queuemanager.o                                                                     
ktorrent-3.3.4/libktcore/torrent/queuemanager.cpp: In member function ‘bt::TorrentStartResponse kt::QueueManager::start(bt::TorrentInterface*)’:                                                                                                                   
ktorrent-3.3.4/libktcore/torrent/queuemanager.cpp:158: warning: unused variable ‘start_tc’                 
ktorrent-3.3.4/libktcore/torrent/queuemanager.cpp: In member function ‘void kt::QueueManager::stop(bt::TorrentInterface*)’:                                                                                                                           
ktorrent-3.3.4/libktcore/torrent/queuemanager.cpp:187: warning: unused variable ‘check_done’               
ktorrent-3.3.4/libktcore/torrent/queuemanager.cpp: In member function ‘void kt::QueueManager::orderQueue()’:
ktorrent-3.3.4/libktcore/torrent/queuemanager.cpp:552: warning: unused variable ‘dummy’                     
[ 30%] Building CXX object libktcore/CMakeFiles/ktcore.dir/torrent/torrentfilemodel.o         
...
                                                                     
[ 33%] Building CXX object libktcore/CMakeFiles/ktcore.dir/gui/activitylistmodel.o                                                                     
ktorrent-3.3.4/libktcore/gui/activitylistmodel.cpp:111: warning: unused parameter ‘column’                 
ktorrent-3.3.4/libktcore/gui/activitylistmodel.cpp:111: warning: unused parameter ‘order’                   
[ 34%] Building CXX object libktcore/CMakeFiles/ktcore.dir/gui/activitylistwidget.o 
...
[ 34%] Building CXX object libktcore/CMakeFiles/ktcore.dir/plugin/pluginmanager.o                                                                     
ktorrent-3.3.4/libktcore/plugin/pluginmanager.cpp:131: warning: unused parameter ‘pi’                       
[ 34%] Building CXX object libktcore/CMakeFiles/ktcore.dir/plugin/pluginactivity.o 
...
[ 36%] Building CXX object libktupnp/CMakeFiles/ktupnp.dir/httprequest.o                                                                               
ktorrent-3.3.4/libktupnp/httprequest.cpp:110: warning: unused parameter ‘err’                               
[ 36%] Building CXX object libktupnp/CMakeFiles/ktupnp.dir/soap.o   
...
                                                                   
[ 36%] Building CXX object libktupnp/CMakeFiles/ktupnp.dir/upnpmcastsocket.o                                                                           
ktorrent-3.3.4/libktupnp/upnpmcastsocket.cpp: In member function ‘void kt::UPnPMCastSocket::onReadyRead()’:
ktorrent-3.3.4/libktupnp/upnpmcastsocket.cpp:123: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result                                                                                                 
[ 37%] Building CXX object libktupnp/CMakeFiles/ktupnp.dir/upnprouter.o   
...
                                                         
[ 37%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logflags.o                                                               
ktorrent-3.3.4/plugins/logviewer/logflags.cpp:183: warning: unused parameter ‘parent’                       
ktorrent-3.3.4/plugins/logviewer/logflags.cpp:190: warning: unused parameter ‘parent’                       
[ 37%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logviewer.o       
...
[ 38%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logflagsdelegate.o                                                       
ktorrent-3.3.4/plugins/logviewer/logflagsdelegate.cpp:78: warning: unused parameter ‘option’               
ktorrent-3.3.4/plugins/logviewer/logflagsdelegate.cpp:78: warning: unused parameter ‘index’                 
[ 38%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logviewerpluginsettings.o
...
[ 42%] Building CXX object plugins/infowidget/CMakeFiles/ktinfowidgetplugin.dir/trackermodel.o                                                         
ktorrent-3.3.4/plugins/infowidget/trackermodel.cpp: In member function ‘bool kt::TrackerModel::Item::update()’:                                                                                                                                               ktorrent-3.3.4/plugins/infowidget/trackermodel.cpp:263: warning: comparison between signed and unsigned integer expressions                                                                                                                                       
[ 42%] Building C object plugins/infowidget/CMakeFiles/ktinfowidgetplugin.dir/GeoIP.o                                                                 
ktorrent-3.3.4/plugins/infowidget/GeoIP.c: In function ‘_setup_segments’:                                   
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:154: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:156: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:178: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c: In function ‘_GeoIP_seek_record’:                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:249: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c: In function ‘_GeoIP_lookupaddress’:                             
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:473: warning: unused variable ‘herr’                             
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:472: warning: unused variable ‘buflength’                         
ktorrent-3.3.4/plugins/infowidget/GeoIP.c: In function ‘GeoIP_database_info’:                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:625: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:640: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:646: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
ktorrent-3.3.4/plugins/infowidget/GeoIP.c: In function ‘_get_name’:                                         
ktorrent-3.3.4/plugins/infowidget/GeoIP.c:778: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result                                                                                                                               
[ 42%] Building CXX object plugins/infowidget/CMakeFiles/ktinfowidgetplugin.dir/geoipmanager.o
...
[ 43%] Building CXX object plugins/upnp/CMakeFiles/ktupnpplugin.dir/routermodel.o                                                                     
ktorrent-3.3.4/plugins/upnp/routermodel.cpp:125: warning: unused parameter ‘parent’                         
ktorrent-3.3.4/plugins/upnp/routermodel.cpp:132: warning: unused parameter ‘parent’                         
[ 44%] Building CXX object plugins/upnp/CMakeFiles/ktupnpplugin.dir/upnppluginsettings.o
...
[ 45%] Building CXX object plugins/search/CMakeFiles/ktsearchplugin.dir/htmlpart.o                                                                     
ktorrent-3.3.4/plugins/search/htmlpart.cpp:75: warning: unused parameter ‘arg’                             
[ 45%] Building CXX object plugins/search/CMakeFiles/ktsearchplugin.dir/searchprefpage.o                                                               
[ 45%] Building CXX object plugins/search/CMakeFiles/ktsearchplugin.dir/searchwidget.o                                                                 
ktorrent-3.3.4/plugins/search/searchwidget.cpp:171: warning: unused parameter ‘text’                       
[ 46%] Building CXX object plugins/search/CMakeFiles/ktsearchplugin.dir/searchtoolbar.o
...
[ 48%] Generating ui_webinterfaceprefwidget.h                                                                                                         
Warning: name gridLayout is already used                                                                                                               
Scanning dependencies of target ktwebinterfaceplugin
...
[ 54%] Building CXX object plugins/ipfilter/CMakeFiles/ktipfilterplugin.dir/antip2p.o                                                                 
ktorrent-3.3.4/plugins/ipfilter/antip2p.cpp:53: warning: ‘QString kt::StringFromUint32(bt::Uint32)’ defined but not used                                                                                                                                           
[ 54%] Building CXX object plugins/ipfilter/CMakeFiles/ktipfilterplugin.dir/ipblockingprefpage.o
...
[ 60%] Building CXX object plugins/bwscheduler/CMakeFiles/ktbwschedulerplugin.dir/weekscene.o                                                         
ktorrent-3.3.4/plugins/bwscheduler/weekscene.cpp: In member function ‘QGraphicsItem* kt::WeekScene::addScheduleItem(kt::ScheduleItem*)’:                                                                                                                ktorrent-3.3.4/plugins/bwscheduler/weekscene.cpp:156: warning: unused variable ‘min_h’                     
[ 60%] Building CXX object plugins/bwscheduler/CMakeFiles/ktbwschedulerplugin.dir/schedule.o                                                           
[ 60%] Building CXX object plugins/bwscheduler/CMakeFiles/ktbwschedulerplugin.dir/scheduleeditor.o                                                     
[ 61%] Building CXX object plugins/bwscheduler/CMakeFiles/ktbwschedulerplugin.dir/additemdlg.o                                                         
[ 61%] Building CXX object plugins/bwscheduler/CMakeFiles/ktbwschedulerplugin.dir/schedulegraphicsitem.o                                               
ktorrent-3.3.4/plugins/bwscheduler/schedulegraphicsitem.cpp:244: warning: unused parameter ‘event’         
[ 61%] Building CXX object plugins/bwscheduler/CMakeFiles/ktbwschedulerplugin.dir/bwprefpage.o
...
[ 74%] Building CXX object plugins/zeroconf/CMakeFiles/ktzeroconfplugin.dir/torrentservice.o                                                           
ktorrent-3.3.4/plugins/zeroconf/torrentservice.cpp:50: warning: unused parameter ‘wjob’                     
Linking CXX shared module ../../lib/ktzeroconfplugin.so
...
[ 79%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/main.o                                                                                     
ktorrent-3.3.4/ktorrent/main.cpp: In function ‘bool GrabPIDLock()’:                                         
ktorrent-3.3.4/ktorrent/main.cpp:63: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result                                                                                                       
[ 80%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/fileselectdlg.o
...
[ 85%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/spinboxdelegate.o                                                                         
ktorrent-3.3.4/ktorrent/spinboxdelegate.cpp:73: warning: unused parameter ‘option’                         
ktorrent-3.3.4/ktorrent/spinboxdelegate.cpp:73: warning: unused parameter ‘index’                           
[ 86%] Building CXX object ktorrent/CMakeFiles/ktorrent.dir/torrentcreatordlg.o                                                                       
...
[ 88%] Generating ui_upnptestwidget.h                                                                                                                 
'horizontalSpacer' isn't a valid widget                                                                                                               
Scanning dependencies of target ktupnptest
...
[ 88%] Building CXX object ktupnptest/CMakeFiles/ktupnptest.dir/upnptestwidget.o                                                                       
ktorrent-3.3.4/ktupnptest/upnptestwidget.cpp:93: warning: unused parameter ‘arg’                           
Linking CXX executable ktupnptest
...


Bookmarks



Who is online

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