[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Build problem: Could not find parser plugin for encoding trig
From:       Andriy Rysin <arysin () gmail ! com>
Date:       2010-08-04 17:47:20
Message-ID: AANLkTinXH=EDRK+QjD3dWkNOVt0tMvDSUSR_LzS04fXe () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2010/5/9 Alexander Neundorf <neundorf@kde.org>

> On Sunday 09 May 2010, Andriy Rysin wrote:
> > 2010/5/8 Andriy Rysin <arysin@gmail.com>
> >
> > > I am trying to rebuild kde today and can't get pass this error.
> > > Could anybody give me a hint on what can be wrong?
> > >
> > > Looks like I was missing lib64raptor-devel package and when compiling
> >
> > kdesupport it did tell me about it:
> >
> >    * Raptor RDF parser (missing libraptor - http://librdf.org)
> >    * Raptor RDF serializer (missing libraptor - http://librdf.org)
> >
> > but it did not tell me that this is a *required* dependency, neither did
> > kdebase when I started compiling it either.
> >
> > So the question now is shall the check for this required package be done
> > upfront and configuration stopped if not found?
> >
> > Thanks,
> > Andriy
>
> I thought that stuff was fixed finally...
> Well, breaking at compile-time is bad.
> If the tool is indeed required, it should stop at configure-time.
>
If nobody objects I'll push the fix attatched to make kdebase compile
without Raptor.

Regards,
Andriy

[Attachment #5 (text/html)]

<div class="gmail_quote">2010/5/9 Alexander Neundorf <span dir="ltr">&lt;<a \
href="mailto:neundorf@kde.org">neundorf@kde.org</a>&gt;</span><br><blockquote \
class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, \
204, 204); padding-left: 1ex;"> <div><div></div><div class="h5">On Sunday 09 May \
2010, Andriy Rysin wrote:<br> &gt; 2010/5/8 Andriy Rysin &lt;<a \
href="mailto:arysin@gmail.com">arysin@gmail.com</a>&gt;<br> &gt;<br>
&gt; &gt; I am trying to rebuild kde today and can&#39;t get pass this error.<br>
&gt; &gt; Could anybody give me a hint on what can be wrong?<br>
&gt; &gt;<br>
&gt; &gt; Looks like I was missing lib64raptor-devel package and when compiling<br>
&gt;<br>
&gt; kdesupport it did tell me about it:<br>
&gt;<br>
&gt;    * Raptor RDF parser (missing libraptor - <a href="http://librdf.org" \
target="_blank">http://librdf.org</a>)<br> &gt;    * Raptor RDF serializer (missing \
libraptor - <a href="http://librdf.org" target="_blank">http://librdf.org</a>)<br> \
&gt;<br> &gt; but it did not tell me that this is a *required* dependency, neither \
did<br> &gt; kdebase when I started compiling it either.<br>
&gt;<br>
&gt; So the question now is shall the check for this required package be done<br>
&gt; upfront and configuration stopped if not found?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Andriy<br>
<br>
</div></div>I thought that stuff was fixed finally...<br>
Well, breaking at compile-time is bad.<br>
If the tool is indeed required, it should stop at \
configure-time.<br></blockquote></div>If nobody objects I&#39;ll push the fix \
attatched to make kdebase compile without \
Raptor.<br><br>Regards,<br>Andriy<br><br><br>

--001636426a2388a818048d0306f2--


["fix_kdebase_compile_without_raptor.diff" (text/x-diff)]

Index: workspace/libs/kworkspace/kactivityinfo.cpp
===================================================================
--- workspace/libs/kworkspace/kactivityinfo.cpp	(revision 1157391)
+++ workspace/libs/kworkspace/kactivityinfo.cpp	(working copy)
@@ -21,9 +21,11 @@
 #include "kactivityinfo.h"
 #include "kactivityinfo_p.h"
 
+#ifdef HAVE_SOPRANO_PLUGIN_RAPTORPARSER
 #include "nfo.h"
 #include "nco.h"
 #include "pimo.h"
+#endif
 
 // Private
 
@@ -60,6 +62,7 @@
 KUrl KActivityInfo::Private::urlForType(KActivityInfo::ResourceType resourceType) const
 {
     switch (resourceType) {
+#ifdef HAVE_SOPRANO_PLUGIN_RAPTORPARSER
         case KActivityInfo::DocumentResource:
             return Ontologies::nfo::Document();
 
@@ -74,7 +77,7 @@
 
         case KActivityInfo::LocationResource:
             return Ontologies::pimo::Location();
-
+#endif
         default:
             return KUrl(QString());
     }
Index: workspace/libs/kworkspace/CMakeLists.txt
===================================================================
--- workspace/libs/kworkspace/CMakeLists.txt	(revision 1157391)
+++ workspace/libs/kworkspace/CMakeLists.txt	(working copy)
@@ -9,6 +9,8 @@
                         kactivityinfo.cpp
    )
 
+if(SOPRANO_PLUGIN_RAPTORPARSER_FOUND)
+
 soprano_add_ontology(
    kworkspace_LIB_SRCS
    "${SHAREDDESKTOPONTOLOGIES_ROOT_DIR}/nie/nfo.trig"
@@ -33,6 +35,12 @@
    "trig"
    )
 
+ADD_DEFINITIONS(-DHAVE_SOPRANO_PLUGIN_RAPTORPARSER=1)
+
+endif(SOPRANO_PLUGIN_RAPTORPARSER_FOUND)
+
+
+
 set(ksmserver_xml  ${KDEBASE_WORKSPACE_SOURCE_DIR}/ksmserver/org.kde.KSMServerInterface.xml)
 qt4_add_dbus_interface( kworkspace_LIB_SRCS ${ksmserver_xml} ksmserver_interface )
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic