lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <jans...@parc.com>
Subject Re: using org.apache.jcc.PythonVM
Date Fri, 04 Mar 2011 12:12:13 GMT
Andi Vajda <vajda@apache.org> wrote:

> On Mar 4, 2011, at 10:56, Bill Janssen <janssen@parc.com> wrote:
> 
> > Andi Vajda <vajda@apache.org> wrote:
> > 
> >> There are two shared libraries for jcc: _jcc.so, the python extension,
> >> and libjcc.so, the shared mode runtime shared library. That's the one
> >> that gets loaded by PythonVM.java. Its directory must be on java's
> >> java.library.path.
> > 
> > No such beast gets built or installed:
> 
> If you didn't patch setuptools on linux as prompted by the jcc build
> then you don't have shared mode enabled and no libjcc.so. Shared mode
> is required for embedding.

I did patch setuptools, and as you can see below, the config.py says
"Shared=True", so I believe I have shared mode enabled.  I'm certainly
using jcc with the "--shared" switch with no complaints.

Bill

> > Here's what's in config.py:
> > 
> > INCLUDES=['/usr/lib/jvm/java-6-openjdk/include', '/usr/lib/jvm/java-6-openjdk/include/linux']
> > CFLAGS=['-fno-strict-aliasing', '-Wno-write-strings']
> > DEBUG_CFLAGS=['-O0', '-g', '-DDEBUG']
> > LFLAGS=['-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64', '-ljava', '-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server',
'-ljvm', '-Wl,-rpath=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server']
> > IMPLIB_LFLAGS=[]
> > SHARED=True
> > VERSION="2.7"
> > 
> > There *is* a libjcc.a.

Mime
View raw message