Monday, 10 August 2009

How-To: Compile and Install Kaffeine 1.0-pre2 in Kubuntu 9.04 Jaunty Jackalope

Kaffeine is a powerful video player for KDE using the Xine engine, which released a new pre-release for 1.0 yesterday. Version 1.0 will be the first stable port for KDE4, and in the meantime you can try the latest pre-release on your Ubuntu or Kubuntu box by following the next steps.

First, install the necessary dependencies and tools needed by the compilation:

sudo apt-get install cmake build-essential
sudo apt-get install kdelibs5-dev libgettext-ruby-util

First, download the source tarball from the official website (direct link here) and uncompress it:

tar -xzf kaffeine-1.0-pre2.tar.gz

Next, make sure the current working directory is kaffeine-1.0-pre2/ and issue the following commands:

mkdir build
cd build
cmake ..
sudo make install

Kaffeine 1.0-pre2 should be now properly installed in /usr/local/bin/kaffeine.

Notice that you can specify another prefix for the installation and install Kaffeine as a normal user. To do that, instead of the commands above, do:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/USER/usr/ ..
make install

You will have to replace USER with your username, and make sure the path /home/USER/usr/bin is included in your $PATH variable.

No comments: