Amarok/Development/Compiling: Difference between revisions
Appearance
< Amarok | Development
Copy page from old wiki |
correct link |
||
Line 19: | Line 19: | ||
* 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. | * 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 [ | * Check you have the [https://projects.kde.org/projects/extragear/multimedia/amarok/repository/revisions/master/entry/README mandatory dependencies] Amarok requires. If you aren't sure if you have these dependencies installed, the <tt>cmake</tt> will tell you. | ||
* Change into the build directory: | * Change into the build directory: |
Revision as of 13:44, 17 January 2013
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.