You are here

Compiling and installing KTorrent 3.3RC1 on Kubuntu Karmic

Submitted by Druss on Sat, 2009-11-07 20:30

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.

  1. Install cmake and related tools:
    sudo apt-get install cmake automoc build-essential gettext
  2. Install other required libraries:
    sudo apt-get install kdelibs5-dev kdebase-workspace-dev kdepimlibs5-dev python-kde4 libboost-dev libtag1-dev libqca2-dev libgmp3-dev
  3. Remove the existing ktorrent installation as a precaution: sudo apt-get remove ktorrent. This should not affect any existing configuration files.
  4. Download the Ktorrent source code from ktorrent.org. In this case, I downloaded 3.3RC1.
  5. Extract it to a subdirectory named ktorrent (in your home directory).
  6. Open a terminal and navigate into the ktorrent directory.
  7. Type:
    mkdir build
    cd build
  8. Type: cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
  9. Only if you want to enable debugging support, instead of the above, type: cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debug ..
  10. Type: make. This might take a while.
  11. Type:
    sudo make install
    This should install the compiled program in the appropriate directories.
  12. Run the program and test things out. If you need to uninstall this compiled program, type
    sudo make uninstall
    to do so.

If 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.