<p dir="ltr"><br>
On 04-Dec-2014 8:43 pm, "Myriam Schweingruber" <<a href="mailto:myriam@kde.org">myriam@kde.org</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> as a Google Code-In Beginner task students are asked to build Amarok from source. Today we ran into a very strange error a student experienced, which I can't reproduce here, despite using the same distribution (Kubuntu 14.10) and Qt version:<br>
><br>
> [ 10%] Built target amarokshared_automoc<br>
> [ 10%] Built target amarokshared<br>
> [ 10%] Built target amaroklib_automoc<br>
> [ 10%] Built target amarokcore_automoc<br>
> Linking CXX shared library ../../lib/libamarokcore.so<br>
> [ 10%] Built target amarokcore<br>
> [ 10%] Built target amarokpud<br>
> [ 10%] Built target amarokocsclient_automoc<br>
> [ 10%] Built target amarokocsclient<br>
> [ 10%] Built target amarok-transcoding_automoc<br>
> Linking CXX shared library ../../lib/libamarok-transcoding.so<br>
> [ 10%] Built target amarok-transcoding<br>
> [ 10%] Building CXX object src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o<br>
> In file included from /home/pcchou/project/gci/amarok/src/amaroklib_automoc.cpp:4:0:<br>
> /home/pcchou/project/gci/amarok/src/moc_PlaylistProviderExporter.cpp: In member function ‘virtual int AmarokScript::PlaylistProviderPrototype::qt_metacall(QMetaObject::Call, int, void**)’:<br>
> /home/pcchou/project/gci/amarok/src/moc_PlaylistProviderExporter.cpp:145:55: error: invalid use of incomplete type ‘class QIcon’<br>
>          case 3: *reinterpret_cast< QIcon*>(_v) = icon(); break;<br>
>                                                        ^<br>
> In file included from /usr/include/qt4/QtCore/QMetaType:1:0,<br>
>                  from /home/pcchou/project/gci/amarok/src/core/playlists/Playlist.h:24,<br>
>                  from /home/pcchou/project/gci/amarok/src/core/playlists/PlaylistProvider.h:21,<br>
>                  from /home/pcchou/project/gci/amarok/src/scripting/scriptengine/exporters/PlaylistProviderExporter.h:21,<br>
>                  from /home/pcchou/project/gci/amarok/src/moc_PlaylistProviderExporter.cpp:9,<br>
>                  from /home/pcchou/project/gci/amarok/src/amaroklib_automoc.cpp:4:<br>
> /usr/include/qt4/QtCore/qmetatype.h:324:7: error: forward declaration of ‘class QIcon’<br>
>  class QIcon;<br>
>        ^<br>
> src/CMakeFiles/amaroklib.dir/build.make:294: recipe for target 'src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o' failed<br>
> make[2]: *** [src/CMakeFiles/amaroklib.dir/amaroklib_automoc.o] Error 1<br>
> CMakeFiles/Makefile2:1256: recipe for target 'src/CMakeFiles/amaroklib.dir/all' failed<br>
> make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2<br>
> Makefile:113: recipe for target 'all' failed<br>
> make: *** [all] Error 2<br>
><br>
> The only differences I can note is that the student uses Kubuntu in a VM, mine is a direct installation, and I use clang. Kevin gave some possible errors on IRC:</p>
<p dir="ltr">Even I got the same error despite of the fact that am using direct installation of Kubuntu 14.10<br>
><br>
> [15:52] <kfunk> could be that sth in the include chain includes QIcon for you and the CI, and thus doesn't fail.<br>
> [15:53] <kfunk> could even be automoc's fault, because of a different order of moc call on the files<br>
> [15:53] <kfunk> => not easy to say what's causing this<br>
><br>
> Would be nice if somebody could check that. Thanks in advance!<br>
><br>
> Regards, Myriam<br>
> -- <br>
> Proud member of the Amarok and KDE Community<br>
> Protect your freedom and join the Fellowship of FSFE:<br>
> <a href="http://www.fsfe.org">http://www.fsfe.org</a><br>
> Please don't send me proprietary file formats,<br>
> use ISO standard ODF instead (ISO/IEC 26300)<br>
><br>
> _______________________________________________<br>
> Amarok-devel mailing list<br>
> <a href="mailto:Amarok-devel@kde.org">Amarok-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/amarok-devel">https://mail.kde.org/mailman/listinfo/amarok-devel</a><br>
><br>
</p>