trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2012

Re: [trinity-devel] cmake help building amarok (Serghei?)

From: Serghei Amelian <serghei@...>
Date: Sat, 20 Oct 2012 02:04:04 +0300
On Saturday 20 October 2012 01:08:58 Darrell Anderson wrote:
> > Everything seems fine. Maybe you have somewhere another
> > scriptmanager.h which is included accidentally?
>
> Ah, um, well...
>
> You might be on to something.
>
> There is another scriptmanager.h on the system, installed by the tdelibs
> package. :)
>
> /opt/trinity/include/scriptmanager.h
>
> GIT sources: tdelibs/interfaces/kscript/scriptmanager.h
>
> So how do I edit CMakeLists.txt, or amarokdcophandler.cpp or
> amarokdcophandler.h to use the local scriptmanager.h and not the one
> installed in /opt/trinity/include?
>
> Darrell

Well, this a side effect of altering CXX flags, the order of searching is 
broken.

As a workaround, change

#include "scriptmanager.h"

to

#include "../scriptmanager.h"


-- 
Serghei