Registered Member
|
Just upgraded to Ubuntu 17.10 and while I could build amarok on 17.04 I now get the following error
------------------- [ 92%] Built target kcm_amarok_service_magnatunestore_automoc [ 92%] Built target kcm_amarok_service_magnatunestore [ 92%] Built target amarok_service_jamendo_automoc [ 93%] Built target amarok_service_jamendo Generating moc_Mp3tunesHarmonyDaemon.cpp /usr/include/glib-2.0/glib/gversionmacros.h:52: Parse error at "defined" automoc4: process for /home/llist/gitrepos/amarokdev/build/src/services/mp3tunes/moc_Mp3tunesHarmonyDaemon.cpp failed: Unknown error pid to wait for: 0 Generating moc_Mp3tunesHarmonyClient.cpp /usr/include/glib-2.0/glib/gversionmacros.h:52: Parse error at "defined" automoc4: process for /home/llist/gitrepos/amarokdev/build/src/services/mp3tunes/moc_Mp3tunesHarmonyClient.cpp failed: Unknown error pid to wait for: 0 returning failed.. src/services/mp3tunes/CMakeFiles/amarokmp3tunesharmonydaemon_automoc.dir/build.make:57: recipe for target 'src/services/mp3tunes/CMakeFiles/amarokmp3tunesharmonydaemon_automoc' failed make[2]: *** [src/services/mp3tunes/CMakeFiles/amarokmp3tunesharmonydaemon_automoc] Error 1 CMakeFiles/Makefile2:11668: recipe for target 'src/services/mp3tunes/CMakeFiles/amarokmp3tunesharmonydaemon_automoc.dir/all' failed make[1]: *** [src/services/mp3tunes/CMakeFiles/amarokmp3tunesharmonydaemon_automoc.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 -------------------- The only reference to this I found was https://bugzilla.redhat.com/show_bug.cgi?id=1396755 but that doesn't help. |
Registered Member
|
As a workaround I ran cmake with
and now have a working version (again) |
KDE Developer
|
This is most likely caused by Qt4's moc beging stupid and failing to understand macros in combination with glibc >= 2.25.
You can patch your qt (or make your distro aware off ) with something like that: https://git.exherbo.org/kde.git/tree/pa ... 2829.patch (The "pp.macros["_SYS_SYSMACROS_H_OUTER"];" line is the important one in this case). https://bugzilla.redhat.com/show_bug.cgi?id=1396755 has more information. |
Registered Member
|
@heirecka how can you patch your qt4 ?
When I run "qmake --version" I get: -------- QMake version 2.01a Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu -------- However, I can't find the file "src/tools/moc/main.cpp" specified in your link https://git.exherbo.org/kde.git/tree/pa%20...%202829.patch in order to make the modifications. Do I need to re-install qt4 from source to be able to modify that cpp file? |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]