Jiang Fung Wong <jiangfung.w...@jamiq.com> wrote:

> I tried to compile pylucene on ArchLinux. JCC compilation was fine.
> When I tried to make. I got this error:
> 
> In file included from
> build/_lucene/org/apace/lucene/util/mutable/MutableValueFloat.h:4:0,
> from build/_lucene/__wrap01__.cpp:17795:
> build/_lucene/org/apace/lucene/util/mutable/MutableValue.h:19:27:
> error: expected identifier before []mutable[]
> build/_lucene/org/apace/lucene/util/mutable/MutableValue.h:19:35:
> error: expected unqualified-id before []([] token
> 
> It seems that a reserved keyword 'mutable' has been used in the code.
> 
> Any idea how to solve it?

I wanted to try out some Lucene 4.0 features, so I built the pylucene
trunk yesterday.  I had to comment out EXTENSIONS_JAR and QUERIES_JAR;
they wouldn't compile (in Java).  I had to add the "--reserved mutable"
flag to the GENERATE macro.

After that it built and installed, and seems to work properly.
Hand-coding queries is a bit tedious, but works.

Bill

Reply via email to