On Fri, 9 Mar 2007, John Kleven wrote:

Ok thanks for the compile tips.  I'm hoping to be able
to test the delegation stuff soon, but still stuck on
compilation on 6.06 Ubuntu w/ gcc-4.2.0.

I've gotten the latest PyLucene source from svn and
i'm getting it compiled (make test fails tho), but i'm
pretty sure that when it does the Lucene java compile,
it is either using my 1.5.0 JDK (which is bad
apparently) or it is using GCJ (which is even worse
apparently).

Yes, you must use a sane JDK as well and that can be tricky but Ubuntu has some nice utilities that make this a breeze. Perhaps this message [1] can help, it looks very relevant. You should be able to use Sun's JDK 1.5...

Once i get 1.4.2 sun java installed, how do i tell Ant
or the pylucene makefile (or shell variable?) to use
the java bin dir that is from 1.4.2 when compiling
Lucene?

If you follow the instructions in [1] and use 'update-java-alternatives' as described, ant should 'do the right thing (tm)'.

Also, of note, I received a ton of warnings from the
g++ as it hit some of the .cpp files .... i'm assuming
that is normal?

Yes, when using gcj 4.2.x, you need to use -Wno-write-strings. See the Linux 64 section in the PyLucene Makefile for an example. As a matter of fact, other than changing LIBDIR_NAME, you should be able to use that section as is, making sure the paths match your system, of course.

Andi..

[1] 
http://lists.osafoundation.org/pipermail/pylucene-dev/2006-November/001404.html
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to