From Amarok Wiki
English | 简体中文
Installation on Gentoo
(Current Versions: View the Gentoo package versions available in Portage)
On Gentoo it should be as simple as:
# emerge -av amarok
However it may be necessary to keyword Amarok to have the most recent version. But no worries - unlike some other software still in ~arch ,the dependencies of Amarok are themselves marked as stable. So just the following is necessary:
# echo 'media-sound/amarok' >> /etc/portage/package.keywords
Configure xine to play MP3s:
The default engine for Amarok is xine, and as such its supported types are controlled through the useflags for xine-lib.
- For xine-lib-1.1.2, set the "mp3" useflag.
- For xine-lib >= 1.1.3, MP3 support will always be present through FFMPEG, although the previously used MAD decoder can be employed instead by enabling the "mad" useflag.
See the Gentoo instructions on MP3 if Amarok says that the xine backend does not support MP3 playback.
Amarok 2 and Mysql Embedded
If you are running Gentoo, more work may be needed to make sure that Amarok is able to properly load your collection. The typical symptom of this problem is Amarok scanning for a while and then no songs showing up in your collection. There are two solutions to this probem
Mysql Embedded as a shared library
1) Set your LDFLAGS to "-Wl,--as-needed" Install the latest ~arch ebuild of mysql or mysql-community, and recompile amarok (with these ldflags)
Mysql Embedded built with -fPIC
Add these two lines to your /etc/portage/env/dev-db/mysql (or mysql-community, if that is what you have installed)
CFLAGS="${CFLAGS} -DPIC -fPIC"
CXXFLAGS="${CXXFLAGS} -DPIC -fPIC"
And recompile both mysql and Amarok.
Debugging
If you would like to be able to debug Amarok and other packages under Gentoo, please ensure that either "nostrip" or (better) "splitdebug" is in your FEATURES, that "debug" is set for Amarok in package.use and that and Amarok has been rebuilt with these settings in place. For further information, refer to the Gentoo backtrace guide listed below.