[mitchell at kde.org: Re: amarok compile error]
Marcos Dione
mdione at grulic.org.ar
Mon Apr 6 23:51:19 UTC 2009
On Mon, Apr 06, 2009 at 07:26:02PM -0400, Ian Monroe wrote:
> On Mon, Apr 6, 2009 at 7:06 PM, Marcos Dione <mdione at grulic.org.ar> wrote:
> > On Tue, Mar 31, 2009 at 09:31:39PM -0300, Marcos Dione wrote:
> >> On Thu, Mar 19, 2009 at 08:37:24AM -0500, Ian Monroe wrote:
> >> > On Wed, Mar 18, 2009 at 3:24 PM, Marcos Dione <mdione at grulic.org.ar> wrote:
> >> > Use
> >> > http://code.google.com/p/qtscriptgenerator/downloads/list
> >> > to build and then install them into your KDEDIR/lib/kde4/plugins/script
> >>
> >> I compiled it as per its README file and installed it copying the
> >> plugins dir to $KDEDIR/lib/kde4. I also erased the build dir and now it
> >> doesn't even detect QtScript:
> >>
> >> -----------------------------------------------------------------------------
> >> -- The following REQUIRED packages could NOT be located on your system.
> >> -- Consider installing them to enable more features from this software.
> >> -----------------------------------------------------------------------------
> >> * qtscript-qt <http://code.google.com/p/qtscriptgenerator/>
> >> QtScript Qt Bindings
> >>
> >> did I miss anything?
> >
> > not exactly. I found the cmake error log and I found this: the
> > testing code tests for several 'bindings':
> >
> > QStringList allowedBindings;
> > allowedBindings << "qt.core" << "qt.gui" << "qt.sql" << "qt.xml" << "qt.uitools" << "qt.network";
> > QScriptEngine engine;
> > foreach( QString binding, allowedBindings )
> > {
> > if( !engine.importExtension( binding ).isUndefined() )
> > { // undefined indiciates success
> > qDebug( binding.toLatin1() + " not found" );
> > return FAIL;
> > }
> > }
> > return 0;
> >
> > but I don't have qt.xml or qt.uitools:
> >
> > $ ls -l $KDEDIR/plugins/script/*.so.1.0.0
> > -rwxr-xr-x 1 mdione mdione 13775892 2009-04-06 07:30 /home/mdione/local/soft/kde4/plugins/script/libqtscript_gui.so.1.0.0
> > -rwxr-xr-x 1 mdione mdione 1217981 2009-04-06 07:30 /home/mdione/local/soft/kde4/plugins/script/libqtscript_network.so.1.0.0
> > -rwxr-xr-x 1 mdione mdione 247450 2009-04-06 07:30 /home/mdione/local/soft/kde4/plugins/script/libqtscript_opengl.so.1.0.0
> > -rwxr-xr-x 1 mdione mdione 592964 2009-04-06 07:30 /home/mdione/local/soft/kde4/plugins/script/libqtscript_sql.so.1.0.0
> >
> > so qt script generator is not generating them. why wouldn't it pick
> > them?
>
> I'm guessing you had that compile problem so it stopped building. And
> then you copied only what was created.
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?
--
(Not so) Random fortune:
Our founding fathers undesrtood that the guys with the guns make the rules.
-- Wayne LePierre, EVP and CEO of the National Rifle Association
More information about the Amarok
mailing list