This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Amarok 2.0.2 fails to build with qt 4.5

Tags: None
(comma "," separated)
maler
Registered Member
Posts
6
Karma
0
Hello,

just updated to kde 4.2.1 and qt 4.5 on my slackware 12.2 laptop. The build fails with this error message:

Code: Select all
> make
[...]
[ 27%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.o                                                                             
In file included from /usr/local/src/kde-4.2.1/amarok-2.0.2/build/src/scriptengine/generator/generator/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.cpp:10:                                                             
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h: In member function 'bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldThrottle()':                                                                   
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h:214: error: 'QThreadPool' has not been declared             
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h: In member function 'bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldStartThread()':                                                                
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h:220: error: 'QThreadPool' has not been declared             
make[2]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.o] Error 1                                                                                 
make[1]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/all] Error 2                      
make[1]: *** Waiting for unfinished jobs.... 
[...]
Linking CXX shared module ../../../../lib/libqtscript_gui.so
[ 61%] Built target qtscript_gui
make: *** [all] Error 2


I found this thread in the forum, but the patches for v2.0.1.1 and qt 4.5RC1 seem not to work for the new versions.

http://amarok.kde.org/forum/index.php/t ... 615.0.html

thx
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
There was a bug report about this issue quite some time ago:

https://bugs.kde.org/show_bug.cgi?id=177863

You need to apply the patch at the bottom of the thread:

https://bugs.kde.org/attachment.cgi?id=31715

If you need more help, please visit the #amarok IRC channel on Freenode.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS
I've done alot of testing on this. This is what I get

Using 4.5.0 from KDE Repos aka Qt-Copy
-----------------------------------------------
+Don't need the patch from the bugs.kde.org
- Introduces a new bug the QThreadPool

Using 4.5.0 from QtSoftware (official 4.5.0)
-----------------------------------------------
+ Doesn't introduce the QThreadPool bug
-You do need the patch

Amarok from svn
----------------------------------------------
If you are using the qt-copy it fails
If you are using the official 4.5.0 it will compile with the patch

Amarok 2.0.2
----------------------------------------------
If you are using the qt-copy (haven't tested)
If you are using the official 4.5.0 it won't compile do to patch failing to patch (atleast for me in Gentoo)


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/
maler
Registered Member
Posts
6
Karma
0
I am using qt-copy 4.5.0, patching the 2.0.2 release fails and the patched svn version fails to build with this error message:

Code: Select all
tech_qt_gui/qtscript_QDragMoveEvent.o                                                                             
[ 20%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_gui.dir/generated_cpp/com_trolltech_qt_gui/qtscript_QDragResponseEvent.o                                                                         
[ 20%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.o                                                                             
In file included from /usr/local/src/kde-4.2.1/amarok/build/src/scriptengine/generator/generator/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.cpp:10:                                                                   
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h: In member function 'bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldThrottle()':                                                                   
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h:214: error: 'QThreadPool' has not been declared             
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h: In member function 'bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldStartThread()':                                                                
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h:220: error: 'QThreadPool' has not been declared             
make[2]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.o] Error 1                                                                                 
make[1]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/all] Error 2                      
make[1]: *** Waiting for unfinished jobs....                                                                      
[ 20%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_gui.dir/generated_cpp/com_trolltech_qt_gui/qtscript_QDropEvent.o                                                                                 
[ 20%] Building CXX object src/scripteng


That the patch works with the official qt release could be a good explanation for this, any ideas how to get it working on qt-copy?
User avatar
ComaWhite
KDE Developer
Posts
100
Karma
0
OS
maler wrote:I am using qt-copy 4.5.0, patching the 2.0.2 release fails and the patched svn version fails to build with this error message:

Code: Select all
tech_qt_gui/qtscript_QDragMoveEvent.o                                                                             
[ 20%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_gui.dir/generated_cpp/com_trolltech_qt_gui/qtscript_QDragResponseEvent.o                                                                         
[ 20%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.o                                                                             
In file included from /usr/local/src/kde-4.2.1/amarok/build/src/scriptengine/generator/generator/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.cpp:10:                                                                   
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h: In member function 'bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldThrottle()':                                                                   
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h:214: error: 'QThreadPool' has not been declared             
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h: In member function 'bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldStartThread()':                                                                
/opt/qt-4.5/include/QtCore/qtconcurrentreducekernel.h:220: error: 'QThreadPool' has not been declared             
make[2]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.o] Error 1                                                                                 
make[1]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_core.dir/all] Error 2                      
make[1]: *** Waiting for unfinished jobs....                                                                      
[ 20%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_gui.dir/generated_cpp/com_trolltech_qt_gui/qtscript_QDropEvent.o                                                                                 
[ 20%] Building CXX object src/scripteng


That the patch works with the official qt release could be a good explanation for this, any ideas how to get it working on qt-copy?


It has something to do with one of kde's patches I presume. Just use the regular qt-4.5.0 there is nothing really different between qt-copy and the offical qt. just a few patches for KDE thats it


Image
KDE Version: 4.6 (Beta 2) | Qt Version: 4.7.1
Aki IRC Developer http://www.akiirc.org/


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]