Package Details: amarok-git 2.9.0.r481.g252b9ffcfe-1

Git Clone URL: (read-only, click to copy)
Package Base: amarok-git
Description: The powerful music player for KDE - GIT version
Upstream URL:
Licenses: GPL2, FDL, LGPL2.1
Conflicts: amarok
Provides: amarok
Submitter: Piezo
Maintainer: sjakub (evorster, z3ntu)
Last Packager: z3ntu
Votes: 12
Popularity: 0.23
First Submitted: 2015-08-12 23:52 (UTC)
Last Updated: 2020-10-03 09:57 (UTC)

Latest Comments

MdN commented on 2022-03-09 12:45 (UTC)

There's a merge request upstream that makes the build work again:

weltio commented on 2022-02-21 20:45 (UTC)

    In file included from /usr/include/libavcodec/avcodec.h:45,
                    from /build/amarok-git/src/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:27:
    /usr/include/libavcodec/packet.h:506:6: note: declared here
    506 | void av_init_packet(AVPacket *pkt);
        |      ^~~~~~~~~~~~~~
    /build/amarok-git/src/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:257:30: error: ‘avcodec_decode_audio4’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
    257 |                 decoderRet = avcodec_decode_audio4( pCodecCtx, decodedFrame, &gotFrame, &avpkt );
        |                              ^~~~~~~~~~~~~~~~~~~~~
        |                              avcodec_decode_subtitle2
    /build/amarok-git/src/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:280:9: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
    280 |         av_free_packet( &packet );
        |         ^~~~~~~~~~~~~~
        |         av_new_packet
    /build/amarok-git/src/amarok/src/musicbrainz/MusicDNSAudioDecoder.cpp:286:5: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
    286 |     av_free_packet( &avpkt );
        |     ^~~~~~~~~~~~~~
        |     av_new_packet
    make[2]: *** [src/CMakeFiles/amaroklib.dir/build.make:6678: src/CMakeFiles/amaroklib.dir/musicbrainz/MusicDNSAudioDecoder.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:7306: src/CMakeFiles/amaroklib.dir/all] Error 2
    make: *** [Makefile:146: all] Error 2

Bink commented on 2021-04-26 02:18 (UTC)

Has installed, but fails to start. May be an issue opening the MariaDB.

QtWebEngine::initialize() called with QCoreApplication object already created and should be call before. This is depreciated and may fail in the future.
Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
** amarok --debug                                                                           **
Got ERROR: "Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist" errno: 2000
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = amarok path = /usr/bin pid = 389508
KCrash: Arguments: /usr/bin/amarok 
KCrash: Attempting to start /usr/lib/drkonqi
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
pa_write() failed while trying to wake up the mainloop: Bad file descriptor
Invalid write to eventfd: Bad file descriptor
Code should not be reached at ../pulseaudio/src/pulsecore/fdsem.c:199, function pa_fdsem_post(). Aborting.
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
Aborted (core dumped)

malcolm commented on 2020-08-25 18:01 (UTC)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
    linked by target "amarok_collection-mysqlcollection" in directory /home/linux/.cache/yay/amarok-git/src/amarok/src/core-impl/collections/db/sql/mysqlcollection
    linked by target "amarok_storage-mysqlestorage" in directory /home/linux/.cache/yay/amarok-git/src/amarok/src/core-impl/storage/sql/mysqlestorage

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

avemilia commented on 2020-08-06 04:15 (UTC)

The build fails:

CMake Error at /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find KF5 (missing: NotifyConfig) (found suitable version
  "5.72.0", minimum required is "5.41.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindKF5.cmake:94 (find_package_handle_standard_args)
  CMakeLists.txt:39 (find_package)

evorster commented on 2020-07-14 08:29 (UTC)

The PKGBUILD has been dusted off and updated as per the comments. Also some un-needed dependencies have been removed as per namcap.

Rhinoceros commented on 2020-07-13 07:56 (UTC)

I'm getting the error

fatal: remote error: Please use the https: protocol to connect to anongit

You need to fix the source to


Benson commented on 2018-05-28 12:38 (UTC)

It's not building since liblastfm-qt5 is not found. Can you provide a pkgbuild?

Fulgen commented on 2018-05-20 12:30 (UTC)

git is missing in the makedepends-array, causing the package not to build successfully in a clean chroot.

z3ntu commented on 2018-05-11 11:22 (UTC) (edited on 2018-05-11 11:22 (UTC) by z3ntu)

@maintainers: a bit cleanup in the pkgbuild

diff --git a/PKGBUILD b/PKGBUILD
index fa618f7..b36356c 100644
@@ -3,7 +3,7 @@
 # Maintainer: Evert Vorster <evorster-at-gmail-dot-com>

 pkgdesc="The powerful music player for KDE - GIT version"
 arch=("i686" "x86_64")
@@ -12,7 +12,7 @@ license=('GPL2' 'LGPL2.1' 'FDL')
 depends=('kdelibs4support' 'threadweaver' 'plasma-framework'
          'kcmutils' 'knewstuff' 'ktexteditor' 'knotifyconfig' 'kdnssd'
          'libmariadbclient' 'taglib-extras' 'gst-plugins-bad'
-         'qca-qt5' 'liblastfm' 'qjson' 'qt5-webkit' 'ffmpeg' 'gmock')
+         'qca-qt5' 'liblastfm-qt5' 'qt5-webkit' 'ffmpeg')
 makedepends=('pkgconfig' 'extra-cmake-modules' 'kdoctools')
 optdepends=("libgpod: support for Apple iPod audio devices"
            "libmtp: support for portable media devices"
@@ -29,7 +29,7 @@ sha1sums=('SKIP')

 pkgver() {
     cd amarok
-    git describe --always | sed 's|-|.|g'
+    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'

@@ -42,13 +42,10 @@ build() {
     rm -rf build
     mkdir -p build
     cd build
-    cmake "../amarok" -Wno-dev \
+    cmake ../amarok \
         -DCMAKE_INSTALL_PREFIX=/usr \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DWITH_NepomukCore=OFF \
-        -DWITH_Soprano=OFF
+        -DCMAKE_BUILD_TYPE=Release


twa022 commented on 2018-03-17 18:42 (UTC)

Please remove qjson from dependencies - no longer required and change liblastfm (which is built against qt4) dep to liblastfm-qt5


pavbaranov commented on 2018-03-10 07:28 (UTC)

@evorster - Are you really shure, that dependencies in you PKgBUILD are corresponding with amarok's CMakeLists.txt? See:

evorster commented on 2018-03-10 07:05 (UTC)

Hi there. I have merged my amarok-kf5-git package into this one, as that is what happened in the source. It should compile now.

ekce commented on 2017-12-30 10:48 (UTC) (edited on 2017-12-30 10:55 (UTC) by ekce)

edit: Seems this aur package relies on kde4 libs and won't compile as is. I'm gonna flag it as out of date.

I can't get this to build. I get an error about a missing file. Tried installing kdewebkit but it made no difference.

[ 72%] Building CXX object src/context/applets/info/CMakeFiles/amarok_context_applet_info.dir/InfoApplet.cpp.o
In file included from /tmp/trizen-ekce/amarok-git/src/amarok/src/context/applets/info/InfoApplet.cpp:29:0:
/usr/include/KDE/KGraphicsWebView:1:10: fatal error: ../kgraphicswebview.h: No such file or directory
 #include "../kgraphicswebview.h"
compilation terminated.
make[2]: *** [src/context/applets/info/CMakeFiles/amarok_context_applet_info.dir/build.make:87: src/context/applets/info/CMakeFiles/amarok_context_applet_info.dir/InfoApplet.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2869: src/context/applets/info/CMakeFiles/amarok_context_applet_info.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 72%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/SqlRegistry_p.cpp.o
[ 72%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/SqlMeta.cpp.o
[ 72%] Building CXX object src/core-impl/collections/upnpcollection/CMakeFiles/amarok_collection-upnpcollection.dir/UpnpQueryMaker.cpp.o
[ 72%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/SqlWriteLabelCapability.cpp.o
[ 72%] Building CXX object src/core-impl/collections/upnpcollection/CMakeFiles/amarok_collection-upnpcollection.dir/UpnpQueryMakerInternal.cpp.o
[ 72%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/SqlScanResultProcessor.cpp.o
[ 72%] Building CXX object src/core-impl/collections/upnpcollection/CMakeFiles/amarok_collection-upnpcollection.dir/UpnpMeta.cpp.o
[ 73%] Building CXX object src/core-impl/collections/upnpcollection/CMakeFiles/amarok_collection-upnpcollection.dir/UpnpCache.cpp.o
[ 73%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/device/massstorage/MassStorageDeviceHandler.cpp.o
[ 73%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/device/nfs/NfsDeviceHandler.cpp.o
[ 73%] Building CXX object src/core-impl/collections/upnpcollection/CMakeFiles/amarok_collection-upnpcollection.dir/UpnpQuery.cpp.o
[ 74%] Building CXX object src/core-impl/collections/db/sql/CMakeFiles/amarok-sqlcollection.dir/device/smb/SmbDeviceHandler.cpp.o
[ 74%] Linking CXX shared module ../../../../lib/
[ 74%] Linking CXX shared library ../../../../../lib/
[ 74%] Built target amarok_collection-upnpcollection
[ 74%] Built target amarok-sqlcollection
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
:: Unable to build amarok-git - makepkg exited with code: 2

evorster commented on 2016-05-13 11:17 (UTC)

Hi there. This package does not build against the standard ffmpeg included in Arch. It seems that fairly recently ffmpeg decided to move some of their headers around. I reported this bug to the Amarok people, but the git repository does not seem to be too active, so I won't be holding my breath for a fix. In the meantime, we can compile amarok against ffmpeg2.8. We just need to make ffmpeg2.8 a dependency, and then add the following line in the build script before the cmake section: export PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig" I stole this fix from ffmpegthumbs which seemed to suffer from the same problem for a while.