[mitchell at kde.org: Re: amarok compile error]

Marcos Dione mdione at grulic.org.ar
Tue Apr 7 00:34:21 UTC 2009


On Mon, Apr 06, 2009 at 08:51:19PM -0300, Marcos Dione wrote:
>     hmm, yes, I had a compile error that I didn't see. here it is:
> 
> g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/home/mdione/local/soft/kde4/mkspecs/default -I. -I/home/mdione/local/soft/kde4/include/QtCore -I/home/mdione/local/soft/kde4/include/QtGui -I/home/mdione/local/soft/kde4/include/QtScript -I/home/mdione/local/soft/kde4/include -I. -Irelease -I. -o release/qtscript_QtConcurrent.o ../../generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.cpp
> In file included from ../../generated_cpp/com_trolltech_qt_core/qtscript_QtConcurrent.cpp:10:
> /home/mdione/local/soft/kde4/include/QtCore/qtconcurrentreducekernel.h: In member function ‘bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldThrottle()’:
> /home/mdione/local/soft/kde4/include/QtCore/qtconcurrentreducekernel.h:214: error: ‘QThreadPool’ has not been declared
> /home/mdione/local/soft/kde4/include/QtCore/qtconcurrentreducekernel.h: In member function ‘bool QtConcurrent::ReduceKernel<ReduceFunctor, ReduceResultType, T>::shouldStartThread()’:
> /home/mdione/local/soft/kde4/include/QtCore/qtconcurrentreducekernel.h:220: error: ‘QThreadPool’ has not been declared
> 
>     so either the generator forgot an #include or qt-copy is bad?

    I applied this patch and recompiled:

Index: qt-copy/src/corelib/concurrent/qtconcurrentreducekernel.h
===================================================================
--- qt-copy/src/corelib/concurrent/qtconcurrentreducekernel.h   (revision 949932)
+++ qt-copy/src/corelib/concurrent/qtconcurrentreducekernel.h   (working copy)
@@ -52,6 +52,7 @@
 #include <QtCore/qmutex.h>
 #include <QtCore/qthread.h>
 #include <QtCore/qvector.h>
+#include <QtCore/qthreadpool.h>

 QT_BEGIN_HEADER
 QT_BEGIN_NAMESPACE

    it compiled enough for the test to pass, but I still get an(other)
error:

make[2]: Entering directory `/home/mdione/src/system/kde4/support/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_phonon'
make[2]: *** No rule to make target `../../generated_cpp/com_trolltech_qt_phonon/main.cpp', needed by `release/main.o'.  Stop.

    this is getting out of the scope of amarok. I'm reporting this to
qtscriptgenerator... heeh, don't need, issue #3:

http://code.google.com/p/qtscriptgenerator/issues/detail?id=3

    I'll pursue the cause tomorrow.

-- 
(Pseudo) Random fortune:
mdione at tempest:~$ cat /dev/random | uuencode random | head -n 3
begin 644 random
M=?:,8:@5MVVIM6>NAYQ6O at I&H86>.3(L"F7S>U'.9`2;%LEAR/E8M[*F=(MP
M5C>B3Y2F(X,`SW1UPAL*+OIV'EM/Z$_-15':B#<6I99_P,H%=$S6$H<&W-!;



More information about the Amarok mailing list