Amarok/Development/Compiling: Difference between revisions

From KDE Community Wiki
(correct link)
m (Update compilation instructions to kf5)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Tarball Compilation Instructions for Amarok 2.x=
=Tarball Compilation Instructions for Amarok 2.x-3.x=


Extract the downloaded tarball thus:
Extract the downloaded tarball thus:


  tar xjf amarok-x.y.z.tar.bz2
  tar xJf amarok-x.y.z.tar.xz


:Obviously you must replace x.y.z with the version of Amarok you have downloaded, eg:
:Obviously you must replace x.y.z with the version of Amarok you have downloaded, eg:


  tar xjf amarok-2.0.tar.bz2
  tar xJf amarok-2.9.82.tar.xz


* Change into the directory that was extracted from the tarball, it should have the form amarok-x.y.z, eg:
* Change into the directory that was extracted from the tarball, it should have the form amarok-x.y.z, eg:
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 [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.
* Check you have the [https://invent.kde.org/multimedia/amarok/-/blob/master/README mandatory dependencies] Amarok requires. Alternatively you can look for find_package calls in CMakeLists.txt. If you aren't sure if you have these dependencies installed, then <tt>cmake</tt> will tell you.


* Change into the build directory:
* Change into the build directory:
Line 27: Line 27:
and compile Amarok with the following commands:
and compile Amarok with the following commands:


  cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
  cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix`
  make
  make
  sudo make install
  sudo make install
Line 39: Line 39:
:If you are compiling development version, please consider compiling with debug enabled:
:If you are compiling development version, please consider compiling with debug enabled:


  cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull
  cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DCMAKE_BUILD_TYPE=debugfull


:as this greatly helps us to fix crash bugs.
:as this greatly helps us to fix crash bugs.

Latest revision as of 07:22, 17 April 2024

Tarball Compilation Instructions for Amarok 2.x-3.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.82.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. Alternatively you can look for find_package calls in CMakeLists.txt. If you aren't sure if you have these dependencies installed, then 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=`kf5-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=`kf5-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.