From Amarok Wiki

Amarok requires several packages installed on your system in order for it to compile. Many of these packages are only needed for adding special features to Amarok. There are also packages that must be installed in order to get Amarok to work at all. First we will discuss the packages that are absolutely required. As always is the case with RPM based distros, you must also install the development versions of these packages if you plan to compile Amarok yourself.

Contents

Mandatory Dependencies

KDElibs 4.1

You must have KDElibs 4.1 or higher installed. This is where we get all the nifty things like Plasma that make the Context View.
If you are compiling KDE 4, make sure you also install kdebase-runtime (icons are there).
In debian/ubuntu just do 'sudo aptitude install kdelibs5-dev'

TagLib 1.6

TagLib is absolutely required. TagLib is the basis for all of Amarok's tag handling. We've decided on TagLib 1.6 because of functionality and stability. TagLib is used in many multimedia applications, and has proved to be an excellent interface for tag reading and writing.
In ubuntu/debian you can install it by 'sudo aptitude install libtag-extras-dev libtag1-dev'

Qt 4.4

Qt library is required to compile from source. Qt sets the standard for high-performance, cross-platform application development. It includes a C++ class library and tools for cross-platform development and internationalization.

Phonon

Phonon is the multimedia abstraction layer which Amarok uses to play audio. Phonon is available in the kde-support packages, however these should be bundled with KDElibs. For Phonon to function correctly, you will need to install an audio engine. The Amarok team recommends xine:


xine-lib 1.1.2

The xine-engine is also a top choice audio-solution for Amarok. xine is a stable and mature audio-backend that features low CPU usage and support for any audio-format you can name. We recommend using the xine-engine with whatever the latest xine is. Please ensure that you install the mp3 decoders as per your distribution [MP3 instructions]

Database Backend

MySQL embedded

Amarok uses the MySQL embedded package for database support, providing no fuss relational dbms which will scale well and provide excellent performance. Your MySQL installation must be compiled with the embedded server, please see Development/MySQL_Embedded

Optional Packages

These packages, if present, will give Amarok extra functionality.

Please note! If you install one of these packages after installing Amarok, the relevant functionality will not appear in Amarok! You must rebuild from source after installing the optional package.

KDEmultimedia 4.1

KDEmultimedia provides the audiocd:/ protocol that Amarok uses for ripping audio CDs.

libmp4v2

provides MP4/AAC tag reading & writing
mpeg4ip 1.5 is recommended, faad2 is less reliable
please note that that binaries built against libmp4v2 can't be distributed due to licensing issues

Media devices

Amarok supports several kinds of mobile media devices. For some of them special libraries are needed.