Amarok/Development/Compiling
< Amarok | Development
Tarball Compilation Instructions for Amarok 2.x
Extract the downloaded tarball thus:
tar xJf amarok-x.y.z.tar.xz
- Obviously you must replace x.y.z with the version of Amarok you have downloaded, eg:
tar xJf amarok-2.9.0.tar.xz
- 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.