Did you edit the Makefile as stated in the INSTALL file and at the top of the Makefile ?

Right...
That helped a lot, though compiling still fails.
I also tried changing the python.py file in jcc;

#from cpp import Modifier, findClass
from cpp import Modifier
from _jcc import findClass

But neither version fails to build a workable module.

Thanks for your help so far Andi, much appreciated.

Cheers,

-jelle




============ terminal dump build ============

BUILD SUCCESSFUL
Total time: 0 seconds
CFLAGS="" /usr/bin/python -m jcc --jar lucene-java-2.3.2/build/lucene- core-2.3.2.jar --jar lucene-java-2.3.2/build/contrib/snowball/lucene- snowball-2.3.2.jar --jar lucene-java-2.3.2/build/contrib/highlighter/ lucene-highlighter-2.3.2.jar --jar lucene-java-2.3.2/build/contrib/ analyzers/lucene-analyzers-2.3.2.jar --jar lucene-java-2.3.2/build/ contrib/regex/lucene-regex-2.3.2.jar --jar lucene-java-2.3.2/build/ contrib/queries/lucene-queries-2.3.2.jar --jar build/jar/ extensions.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.text.SimpleDateFormat --package java.io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token --exclude org.apache.lucene.queryParser.TokenMgrError --exclude org.apache.lucene.queryParser.QueryParserTokenManager --exclude org.apache.lucene.queryParser.ParseException --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/ lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/ String;)Ljava/lang/String;' --sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.3.2 --files 1 --build
running build_ext
building 'lucene._lucene' extension
creating build/temp.macosx-10.5-i386-2.5
creating build/temp.macosx-10.5-i386-2.5/build
creating build/temp.macosx-10.5-i386-2.5/build/_lucene
gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ __init__.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/ __init__.o -fno-strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ __wrap__.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/ __wrap__.o -fno-strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ functions.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/ functions.o -fno-strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ jcc.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/jcc.o -fno- strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ JCCEnv.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/JCCEnv.o - fno-strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ JObject.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/JObject.o -fno-strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ lucene.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/lucene.o - fno-strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++ gcc -DNDEBUG -g -Os -Wall -Wstrict-prototypes -pipe -DPYTHON=1 -I/ System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers - Ibuild/_lucene -I/Library/Python/2.5/site-packages/JCC-1.9-py2.5- macosx-10.5-i386.egg/jcc/sources -I/System/Library/Frameworks/ Python.framework/Versions/2.5/include/python2.5 -c build/_lucene/ types.cpp -o build/temp.macosx-10.5-i386-2.5/build/_lucene/types.o - fno-strict-aliasing cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
creating build/lib.macosx-10.5-i386-2.5
creating build/lib.macosx-10.5-i386-2.5/lucene
g++ -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/build/_lucene/__init__.o build/ temp.macosx-10.5-i386-2.5/build/_lucene/__wrap__.o build/ temp.macosx-10.5-i386-2.5/build/_lucene/functions.o build/ temp.macosx-10.5-i386-2.5/build/_lucene/jcc.o build/temp.macosx-10.5- i386-2.5/build/_lucene/JCCEnv.o build/temp.macosx-10.5-i386-2.5/build/ _lucene/JObject.o build/temp.macosx-10.5-i386-2.5/build/_lucene/ lucene.o build/temp.macosx-10.5-i386-2.5/build/_lucene/types.o -o build/lib.macosx-10.5-i386-2.5/lucene/_lucene.so -framework JavaVM - Wl,-S ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/ __init__.o, file is not of required architecture ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/ __wrap__.o, file is not of required architecture ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/ functions.o, file is not of required architecture ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/jcc.o, file is not of required architecture ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/JCCEnv.o, file is not of required architecture ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/ JObject.o, file is not of required architecture ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/lucene.o, file is not of required architecture ld: warning in build/temp.macosx-10.5-i386-2.5/build/_lucene/types.o, file is not of required architecture
build of complete
brutus:PyLucene-2.3.2-1 jelleferinga$ make install
CFLAGS="" /usr/bin/python -m jcc --jar lucene-java-2.3.2/build/lucene- core-2.3.2.jar --jar lucene-java-2.3.2/build/contrib/snowball/lucene- snowball-2.3.2.jar --jar lucene-java-2.3.2/build/contrib/highlighter/ lucene-highlighter-2.3.2.jar --jar lucene-java-2.3.2/build/contrib/ analyzers/lucene-analyzers-2.3.2.jar --jar lucene-java-2.3.2/build/ contrib/regex/lucene-regex-2.3.2.jar --jar lucene-java-2.3.2/build/ contrib/queries/lucene-queries-2.3.2.jar --jar build/jar/ extensions.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.text.SimpleDateFormat --package java.io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token --exclude org.apache.lucene.queryParser.TokenMgrError --exclude org.apache.lucene.queryParser.QueryParserTokenManager --exclude org.apache.lucene.queryParser.ParseException --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/ lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/ String;)Ljava/lang/String;' --sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.3.2 --files 1 --install
running build_ext
running install
running bdist_egg
running egg_info
writing lucene.egg-info/PKG-INFO
writing top-level names to lucene.egg-info/top_level.txt
writing dependency_links to lucene.egg-info/dependency_links.txt
warning: manifest_maker: standard file '__init__.py' not found
reading manifest file 'lucene.egg-info/SOURCES.txt'
writing manifest file 'lucene.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.5-i386/egg
running install_lib
running build_py
copying build/lucene/__init__.py -> build/lib.macosx-10.5-i386-2.5/ lucene copying build/lucene/lucene-core-2.3.2.jar -> build/lib.macosx-10.5- i386-2.5/lucene copying build/lucene/lucene-snowball-2.3.2.jar -> build/ lib.macosx-10.5-i386-2.5/lucene copying build/lucene/lucene-highlighter-2.3.2.jar -> build/ lib.macosx-10.5-i386-2.5/lucene copying build/lucene/lucene-analyzers-2.3.2.jar -> build/ lib.macosx-10.5-i386-2.5/lucene copying build/lucene/lucene-regex-2.3.2.jar -> build/lib.macosx-10.5- i386-2.5/lucene copying build/lucene/lucene-queries-2.3.2.jar -> build/lib.macosx-10.5- i386-2.5/lucene copying build/lucene/extensions.jar -> build/lib.macosx-10.5-i386-2.5/ lucene
creating build/bdist.macosx-10.5-i386
creating build/bdist.macosx-10.5-i386/egg
creating build/bdist.macosx-10.5-i386/egg/lucene
copying build/lib.macosx-10.5-i386-2.5/lucene/__init__.py -> build/ bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/_lucene.so -> build/ bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/extensions.jar -> build/ bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/lucene- analyzers-2.3.2.jar -> build/bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/lucene-core-2.3.2.jar -> build/bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/lucene- highlighter-2.3.2.jar -> build/bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/lucene-queries-2.3.2.jar -> build/bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/lucene-regex-2.3.2.jar - > build/bdist.macosx-10.5-i386/egg/lucene copying build/lib.macosx-10.5-i386-2.5/lucene/lucene- snowball-2.3.2.jar -> build/bdist.macosx-10.5-i386/egg/lucene byte-compiling build/bdist.macosx-10.5-i386/egg/lucene/__init__.py to __init__.pyc
creating stub loader for lucene/_lucene.so
byte-compiling build/bdist.macosx-10.5-i386/egg/lucene/_lucene.py to _lucene.pyc
creating build/bdist.macosx-10.5-i386/egg/EGG-INFO
writing lucene.egg-info/native_libs.txt
copying lucene.egg-info/PKG-INFO -> build/bdist.macosx-10.5-i386/egg/ EGG-INFO copying lucene.egg-info/SOURCES.txt -> build/bdist.macosx-10.5-i386/ egg/EGG-INFO copying lucene.egg-info/dependency_links.txt -> build/ bdist.macosx-10.5-i386/egg/EGG-INFO copying lucene.egg-info/not-zip-safe -> build/bdist.macosx-10.5-i386/ egg/EGG-INFO copying lucene.egg-info/top_level.txt -> build/bdist.macosx-10.5-i386/ egg/EGG-INFO creating 'dist/lucene-2.3.2-py2.5-macosx-10.5-i386.egg' and adding 'build/bdist.macosx-10.5-i386/egg' to it
removing 'build/bdist.macosx-10.5-i386/egg' (and everything under it)
Processing lucene-2.3.2-py2.5-macosx-10.5-i386.egg
creating /Library/Python/2.5/site-packages/lucene-2.3.2-py2.5- macosx-10.5-i386.egg Extracting lucene-2.3.2-py2.5-macosx-10.5-i386.egg to /Library/Python/ 2.5/site-packages
Adding lucene 2.3.2 to easy-install.pth file

Installed /Library/Python/2.5/site-packages/lucene-2.3.2-py2.5- macosx-10.5-i386.egg
Processing dependencies for lucene==2.3.2
Finished processing dependencies for lucene==2.3.2
brutus:PyLucene-2.3.2-1 jelleferinga$
brutus:PyLucene-2.3.2-1 jelleferinga$ ipython
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
Type "copyright", "credits" or "license" for more information.

IPython 0.8.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import lucene

In [2]: luc
lucene             lucene-java-2.3.2  lucene.egg-info

In [2]: lucene.initVM()
terminate called after throwing an instance of 'JCCEnv::exception'
Abort trap
brutus:PyLucene-2.3.2-1 jelleferinga$ ipython

_______________________________________________
pylucene-dev mailing list
pylucene-dev@osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to