[pylucene-dev] pylucene trunk and gcc-4.2 : java configuration ?
Andi Vajda
vajda at osafoundation.org
Fri Mar 30 08:12:14 PST 2007
On Fri, 30 Mar 2007, xav4django wrote:
> 1) pylucene version src : lastest source release.
> http://downloads.osafoundation.org/PyLucene/src/PyLucene-src-2.1.0-2.tar.gz
> my methode is here :
> http://www.1et0.org/admin/db/pylucene/src-gcc42
For a reason I don't know, the source tarballs I release are not compatible
with gcj 4.x. To compile PyLucene with gcj 4.2, you must start from the svn
sources and use a sane (Sun, Apple, Blackdown) JDK 1.4 or 1.5 with ant. You
cannot use gcj to compile the .java sources, there are too many bugs with
that.
For an example (on Ubuntu 64), see:
http://lists.osafoundation.org/pipermail/pylucene-dev/2006-November/001404.html
Once you get that working, you're still not done if you want to experiment
with adding threads after the fact. You then need to create a wrapper for
JvAttachCurrentThread() and call it from your python code.
For an example on how to wrap a simple C/C++ function, see _PyLucene.cpp's
dumpRefs() function.
Andi..
More information about the pylucene-dev
mailing list