[pylucene-dev] Fwd: some issues building the latest PyLucene
aurora
aurora00 at gmail.com
Sat Jan 8 09:11:33 PST 2005
My email doesn't seem to gone out. Try to resend. Anyway the new
threading approach seems to work for me on Windows. Going to try in
Linux.
---------- Forwarded message ----------
From: aurora <aurora00 at gmail.com>
Date: Thu, 6 Jan 2005 20:08:10 -0800
Subject: some issues building the latest PyLucene
To: pylucene-dev at osafoundation.org
I'm trying to build the latest PyLucene on Windows. Hit a few issues.
Some of it resolved. Some I'm still working on.
a. I ran into an error: `swig_globalvar' undeclared
I was using the latest SWIG-1.3.24. It seems SWIG-1.3.21 was around
much a longer so I take a shot and the problem magically went away.
/cygdrive/d/Progra~1/SWIG-1.3.24/swig.exe -modern -DSWIG_COBJECT_TYPES
-DPYLUCENE_VER="'0.9.3'" -DLUCENE_VER="'1.4.3'" -Irele
ase/classes -c++ -python PyLucene.i
/cygdrive/d/MinGW/bin/g++ -c -O2 -D_NO_OLDNAMES -D_off_t=off_t
-DSWIG_COBJECT_TYPES -DPYLUCENE_VER="'0.9.3'" -DLUCENE_VER="'
1.4.3'" -Irelease/classes -I`cygpath -aw
/cygdrive/d/Progra~1/Python24/PC` -I`cygpath -aw
/cygdrive/d/Progra~1/Python24/Incl
ude` -o release/PyLucene_wrap.o PyLucene_wrap.cxx
PyLucene_wrap.cxx: In function `void initializeStaticMembers()':
PyLucene_wrap.cxx:2046: error: `swig_globalvar' undeclared (first use
this function)
PyLucene_wrap.cxx:2046: error: (Each undeclared identifier is reported
only once for each function it appears in.)
PyLucene_wrap.cxx:2046: error: `var' undeclared (first use this function)
PyLucene_wrap.cxx:2046: error: `swig_varlinkobject' undeclared (first
use this function)
PyLucene_wrap.cxx:2046: error: expected primary-expression before ')' token
PyLucene_wrap.cxx:2046: error: expected `)' before "cvar"
PyLucene_wrap.cxx:2051: error: `cls' undeclared (first use this function)
PyLucene_wrap.cxx: At global scope:
PyLucene_wrap.cxx:38341: error: `struct swig_globalvar' used prior to
declaration
PyLucene_wrap.cxx:38346: error: `typedef struct swig_globalvar
swig_globalvar' used prior to declaration
PyLucene_wrap.cxx:38348: error: `struct swig_varlinkobject' used prior
to declaration
PyLucene_wrap.cxx:38351: error: `typedef struct swig_varlinkobject
swig_varlinkobject' used prior to declaration
make: *** [release/_PyLucene.pyd] Error 1
b. It complaints about: d:\Progra~1\Python24\python24.dll: No such
file or directory
There isn't a python24.dll in Python24 (I installed 2.4 from the .msi)
However there is one in the c:\winnt\system32 directory. Copy it to
Python24 resolved the problem.
/cygdrive/d/MinGW/bin/g++ -shared -o release/_PyLucene.pyd
release/lucene.o release/snowball.o release/highlight.o release/u
til.java.o release/util.cpp.o release/io.java.o release/io.cpp.o
release/search.java.o release/search.cpp.o release/analysis.
java.o release/analysis.cpp.o release/highlight.java.o
release/highlight.cpp.o `cygpath -aw /cygdrive/d/Progra~1/Python24/pyt
hon24.dll` release/PyLucene_wrap.o -lgcj -liconv -lwin32k -lws2_32
g++.exe: d:\Progra~1\Python24\python24.dll: No such file or directory
make: *** [release/_PyLucene.pyd] Error 1
c. This give me a _PyLucene.pyd of size 5896k, quite a bit smaller
that the 6516k from the 0.9.3 distribution
d. When _PyLucene is imported, it complaints about libiconv-2.dll not
in the path. Grapping it from mingw resolved the problem.
Now I'm about to give it more testing.
More information about the pylucene-dev
mailing list