The onto2vocabulary tool creates files that require -I/sopranoprefix/include/soprano, but soprano.pc only provides -I/sopranoprefix/include. This patch adds the required -I flag to the .pc file.
(First and foremost, I should've mentioned this is on Karmic, hence Soprano 2.3.1. However, no mention in the changelog about any similar bug.)
Dammit! Sourceforge is acting up and not allowing me to upload a sample. I put a schema file up on pastie, it's at http://pastie.org/849486. I generated C++ code from that schema with the command
onto2vocabularyclass --name Example --encoding rdfxml --namespace example schema.rdfs
In the resulting header file you may see the problematic include.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see. This is a default that is there for historical reasons. I suggest using --no-visibility-export or if you want to export the symbols in a lib --export-module.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could you please provide an example. I do not see where onto2vocabularyclass would use any soprano includes.
For me, the generated header file always has the line
include "soprano_export.h"
which is installed in /prefix/include/soprano. I'll try to manufacture a dummy example to recreate the problem.
(First and foremost, I should've mentioned this is on Karmic, hence Soprano 2.3.1. However, no mention in the changelog about any similar bug.)
Dammit! Sourceforge is acting up and not allowing me to upload a sample. I put a schema file up on pastie, it's at http://pastie.org/849486. I generated C++ code from that schema with the command
onto2vocabularyclass --name Example --encoding rdfxml --namespace example schema.rdfs
In the resulting header file you may see the problematic include.
I see. This is a default that is there for historical reasons. I suggest using --no-visibility-export or if you want to export the symbols in a lib --export-module.