On Mon, 14 Nov 2011, Jiang Fung Wong wrote:
Thanks for the reply.
What version of Lucene are you using ?
I checked out from pylucene svn trunk, it's 4.0
That's a bit bleeding edge due to the rapidly changing nature of Lucene's
trunk 4.0. You should really use PyLucene's 3.x branch or 3.4 release.
There is quite a bit of work involved in getting PyLucene to work with
Lucene 4.0, mostly in porting all the samples and unit tests again since the
API has changed a lot. I'm waiting for things to settle down a bit before
embarking on this.
FYI, a Lucene 3.5 release seems to be planned for the near future.
Other info:
latest ArchLinux 3.1.0-4-ARCH
openjdk6 6.b22_1.10.4-1
gcc: 4.6.2
python: 2.6.7
jcc 2.11
ant 1.8.2-2
NO_SHARED
Shall I use lucene 3.x ?
Yes. That's the so-called stable trunk :-)
Andi..
Yes, add mutable to the reserved word list by adding --reserved mutable to the
jcc command line.
Tried. It didn't help. I think the point is we need to make 'mutable'
*not* a reserved word, so that the compiler does not complain.
On Mon, Nov 14, 2011 at 2:20 AM, Andi Vajda <va...@apache.org> wrote:
On Nov 13, 2011, at 2:10, 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.
What version of Lucene are you using ?
I haven't seen this error yet with 3.x.
Any idea how to solve it?
Yes, add mutable to the reserved word list by adding --reserved mutable to the
jcc command line.
Which distro, ant version, python version, gcc version do you
recommend, for compilation of the latest pyLucene?
distro: nothing in particular
ant: whatever works for Lucene
python: 2.x, x >= 4
gcc: whatever's current on your system
Andi..
Regards,
WJF