Amarok/Development/Compiling

From KDE Community Wiki
Revision as of 20:56, 15 October 2012 by Mamarok (talk | contribs) (Copy page from old wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Tarball Compilation Instructions for Amarok 2.x

Extract the downloaded tarball thus:

tar xjf amarok-x.y.z.tar.bz2
Obviously you must replace x.y.z with the version of Amarok you have downloaded, eg:
tar xjf amarok-2.0.tar.bz2
  • Change into the directory that was extracted from the tarball, it should have the form amarok-x.y.z, eg:
cd amarok-2.x.y.z
  • Create a build directory as to not pollute the sources:
mkdir amarok-x.y.z-build
  • Read the README file that is in this directory, it may contain specific information that you will need when attempting to build and install Amarok.
  • Check you have the mandatory dependencies Amarok requires. If you aren't sure if you have these dependencies installed, the cmake will tell you.
  • Change into the build directory:
cd amarok-x.y.z-build

and compile Amarok with the following commands:

cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make
sudo make install
If you are compiling and installing as a regular user, call cmake with
-DDBUS_INTERFACES_INSTALL_DIR=/home/someuser
so that these files are not installed to a system location that you cannot write to.
If you are compiling development version, please consider compiling with debug enabled:
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull
as this greatly helps us to fix crash bugs.
  • You're done! Type amarok to start Amarok.

Note that your cmake preferences are saved in CMakeCache.txt, so you don't have to have the -D options every time you run cmake.

ccmake will give you a nice ncurses interface.