As of version 4.0rc1 you first need to compile and install libktorrent before you do ktorrent:
tar -xvjf libktorrent-1.X.Y.tar.bz2
cd libktorrent-1.X.Y
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make install
Compiling and installing ktorrent:
tar -xvjf ktorrent-4.X.Y.tar.bz2
cd ktorrent-4.X.Y
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make install
You will need to install cmake and all the necessary development packages (Qt,KDE,libgmp,QCA2), to get it compiled properly.
Compiling 2.2.8 is a bit different :
tar -xvjf ktorrent-X.Y.tar.bz2
cd ktorrent-X.Y
./configure
make
make install
If you want really fast compilation times, you should use ./configure --enable-final instead of
./configure
People on Mac OS X who have trouble compiling should try the following:
configure --prefix=/sw
sed -i -e 's/^whole_archive_flag_spec=.*/whole_archive_flag_spec=""/g;'
libtool
make
sudo make install