Compiling KTorrent 3.3 RC1 on Kubuntu 9.10 Karmic with KDE 4.3:
Update 1: This works with 3.3 final as well.
Update 2: This works with 4.0 beta1 as well.
sudo apt-get install cmake automoc build-essential gettextsudo apt-get install kdelibs5-dev kdebase-workspace-dev kdepimlibs5-dev python-kde4 libboost-dev libtag1-dev libqca2-dev libgmp3-dev sudo apt-get remove ktorrent. This should not affect any existing configuration files.mkdir build
cd buildcmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debug ..make. This might take a while.sudo make install
This should install the compiled program in the appropriate directories.sudo make uninstallIf necessary, you can also do this with source code checked out from the KTorrent subversion repository. The KTorrent FAQ lists KDESDK as a dependency, but I did not need it while installing.