[pylucene-dev] help building pylucene on windows/cygwin...

Joh N. joh12005 at yahoo.fr
Wed Jun 29 07:22:36 PDT 2005


Hello,

i am unable to build pylucene on windows/cygwin.

i think i downloaded all the files needed and listed
in INSTALL file :
http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download
http://prdownloads.sf.net/mingw/gcc-core-3.4.2-20040916-1.tar.gz
http://prdownloads.sf.net/mingw/gcc-g++-3.4.2-20040916-1.tar.gz
http://prdownloads.sf.net/mingw/gcc-java-3.4.2-20040916-1.tar.gz
http://prdownloads.sf.net/mingw/libiconv-1.8.0-2003.02.01-1.exe

i had changed Makefile, but it is still not clear for
me : is PREFIX_PYTHON the path to the python installed
upon cygwin ? or may it be the one installed over
windows (with msi file) ? BTW i had tried both and
none worked for me.

# Windows
PREFIX_PYTHON=/cygdrive/d/cygwin/usr/bin/
SWIG=/cygdrive/d/SWIG-1.3.24/swig.exe
GCJ_HOME=/cygdrive/d/mingw-3.1-3.4.2
#DB=/cygdrive/o/db-$(DB_VER)
#PREFIX_DB=$(DB)

i had the error (see the full below) :

org.apache.lucene.analysis.standard.StandardTokenizer
static field has same name as method
make: ***
[release/classes/org/osafoundation/util/PythonException.h]
Error 1

i have checked inside the ML, and it looks like
someone already had this kind of message but it was
related to a patch not applied while here it looks
good :

patch -Nup0 <
/cygdrive/m/___PYTHON/pyLucene/PyLucene-0.9.9/PyLucene-0.9.9/patch
es.lucene; echo ok
ok

please can someone help ?

best regards,

J.



mkdir -p release/classes/jar
patch -Nup0 <
/cygdrive/m/___PYTHON/pyLucene/PyLucene-0.9.9/PyLucene-0.9.9/patch
es.lucene; echo ok
ok
cd release/classes/jar;
/cygdrive/d/mingw-3.1-3.4.2/bin/jar -xf `cygpath -aw
/cy
gdrive/m/___PYTHON/pyLucene/PyLucene-0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1
.4.3.jar
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes/jar -
-classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-0.9.9/PyLucene-0
.9.9/lucene-1.4.3`/lucene-1.4.3.jar `cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/
PyLucene-0.9.9/PyLucene-0.9.9/lucene-1.4.3`/src/java/org/apache/lucene/queryPars
er/QueryParser.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes/jar -
-classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-0.9.9/PyLucene-0
.9.9/lucene-1.4.3`/lucene-1.4.3.jar `cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/
PyLucene-0.9.9/PyLucene-0.9.9/lucene-1.4.3`/src/java/org/apache/lucene/analysis/
standard/StandardTokenizer.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes/jar -
-classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-0.9.9/PyLucene-0
.9.9/lucene-1.4.3`/lucene-1.4.3.jar `cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/
PyLucene-0.9.9/PyLucene-0.9.9/lucene-1.4.3`/src/java/org/apache/lucene/index/Ind
exReader.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes/jar -
-classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-0.9.9/PyLucene-0
.9.9/lucene-1.4.3`/lucene-1.4.3.jar `cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/
PyLucene-0.9.9/PyLucene-0.9.9/lucene-1.4.3`/src/java/org/apache/lucene/search/Se
archer.java
/cygdrive/d/mingw-3.1-3.4.2/bin/jar -cf
release/lucene-1.4.3.jar -C release/clas
ses/jar org
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -c -o release/lucene.o
release/lucene-1.4.3.jar
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -c -o release/snowball.
o --classpath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.jar:release/cl
asses` \
               snowball-1.0.jar
mkdir -p highlight
cd highlight; /cygdrive/d/mingw-3.1-3.4.2/bin/jar -xf
../highlight-20050114-src.
jar
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes --cla
sspath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.jar:release/classes`
\
               highlight/highlight/*.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -c -o release/highlight
.o --classpath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.jar:release/c
lasses` \
               highlight/highlight/*.java
mkdir -p analyzers
cd analyzers; /cygdrive/d/mingw-3.1-3.4.2/bin/jar -xf
../analyzers-20050131-src.
jar
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes --cla
sspath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.jar:release/classes`
\
               analyzers/analysis/*.java \
               analyzers/analysis/br/*.java \
               analyzers/analysis/cjk/*.java \
               analyzers/analysis/cn/*.java \
               analyzers/analysis/cz/*.java \
               analyzers/analysis/fr/*.java \
               analyzers/analysis/nl/*.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -c -o release/analyzers
.o --classpath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.jar:release/c
lasses` \
               analyzers/analysis/*.java \
               analyzers/analysis/br/*.java \
               analyzers/analysis/cjk/*.java \
               analyzers/analysis/cn/*.java \
               analyzers/analysis/cz/*.java \
               analyzers/analysis/fr/*.java \
               analyzers/analysis/nl/*.java
mkdir -p unreleased
cd unreleased; /cygdrive/d/mingw-3.1-3.4.2/bin/jar -xf
../unreleased-20050207-sr
c.jar
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes --cla
sspath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.jar:release/classes`
\
              
unreleased/org/apache/lucene/search/*.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -c -o release/unrelease
d.o --classpath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.jar:release/
classes` \
              
unreleased/org/apache/lucene/search/*.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/util/PythonComparable.java \
           
java/org/osafoundation/util/PythonRunnable.java \
           
java/org/osafoundation/util/PythonException.java \
           
java/org/osafoundation/util/FieldEnumeration.java \
           
java/org/osafoundation/util/StringEnumeration.java \
           
java/org/osafoundation/util/HitsEnumeration.java \
           
java/org/osafoundation/util/IndexReaderEnumeration.java
\
           
java/org/osafoundation/util/TokenEnumeration.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -c -o release/util.java
.o \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/util/PythonComparable.java \
           
java/org/osafoundation/util/PythonRunnable.java \
           
java/org/osafoundation/util/PythonException.java \
           
java/org/osafoundation/util/FieldEnumeration.java \
           
java/org/osafoundation/util/StringEnumeration.java \
           
java/org/osafoundation/util/HitsEnumeration.java \
           
java/org/osafoundation/util/IndexReaderEnumeration.java
\
           
java/org/osafoundation/util/TokenEnumeration.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes \
           
java/org/osafoundation/io/PythonReader.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -I/cygdrive/d/mingw-3.1
-3.4.2/include -c -o release/io.java.o \
           
java/org/osafoundation/io/PythonReader.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/store/PythonDirectory.java \
           
java/org/osafoundation/store/PythonInputStream.java \
           
java/org/osafoundation/store/PythonOutputStream.java \
           
java/org/osafoundation/store/PythonLock.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -I/cygdrive/d/mingw-3.1
-3.4.2/include -c -o release/store.java.o \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/store/PythonDirectory.java \
           
java/org/osafoundation/store/PythonInputStream.java \
           
java/org/osafoundation/store/PythonOutputStream.java \
           
java/org/osafoundation/store/PythonLock.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/search/PythonSortComparatorSource.java
\
           
java/org/osafoundation/search/PythonSortComparator.java
\
           
java/org/osafoundation/search/PythonScoreDocComparator.java
\
           
java/org/osafoundation/search/PythonFilter.java \
           
java/org/osafoundation/search/PythonHitCollector.java
\
           
java/org/osafoundation/search/PythonSimilarity.java \
           
java/org/osafoundation/search/PythonFilteredTermEnum.java
\
           
java/org/osafoundation/search/PythonSearchable.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -I/cygdrive/d/mingw-3.1
-3.4.2/include -c -o release/search.java.o \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/search/PythonSortComparatorSource.java
\
           
java/org/osafoundation/search/PythonSortComparator.java
\
           
java/org/osafoundation/search/PythonScoreDocComparator.java
\
           
java/org/osafoundation/search/PythonFilter.java \
           
java/org/osafoundation/search/PythonHitCollector.java
\
           
java/org/osafoundation/search/PythonSimilarity.java \
           
java/org/osafoundation/search/PythonFilteredTermEnum.java
\
           
java/org/osafoundation/search/PythonSearchable.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/queryParser/PythonQueryParser.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -I/cygdrive/d/mingw-3.1
-3.4.2/include -c -o release/queryParser.java.o \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/queryParser/PythonQueryParser.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/analysis/PythonAnalyzer.java \
           
java/org/osafoundation/analysis/PythonTokenStream.java
\
           
java/org/osafoundation/analysis/PythonTokenFilter.java
\
           
java/org/osafoundation/analysis/PythonCharTokenizer.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -I/cygdrive/d/mingw-3.1
-3.4.2/include -c -o release/analysis.java.o \
               --classpath=`cygpath -aw
/cygdrive/m/___PYTHON/pyLucene/PyLucene-
0.9.9/PyLucene-0.9.9/lucene-1.4.3`/lucene-1.4.3.jar \
           
java/org/osafoundation/analysis/PythonAnalyzer.java \
           
java/org/osafoundation/analysis/PythonTokenStream.java
\
           
java/org/osafoundation/analysis/PythonTokenFilter.java
\
           
java/org/osafoundation/analysis/PythonCharTokenizer.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-C -d release/classes \
               --classpath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.j
ar:release/classes` \
           
java/org/osafoundation/search/highlight/PythonFormatter.java
/cygdrive/d/mingw-3.1-3.4.2/bin/gcj --encoding=UTF-8
-O2 -I/cygdrive/d/mingw-3.1
-3.4.2/include -c -o release/highlight.java.o \
               --classpath=`cygpath -awp
release/lucene-1.4.3.jar:snowball-1.0.j
ar:release/classes` \
           
java/org/osafoundation/search/highlight/PythonFormatter.java
mkdir -p release/classes/org/apache/lucene/analysis/de
mkdir -p release/classes/org/apache/lucene/analysis/ru
mkdir -p release/classes/org/apache/lucene/analysis/fr
mkdir -p
release/classes/org/apache/lucene/analysis/standard
mkdir -p
release/classes/org/apache/lucene/analysis/snowball
mkdir -p release/classes/org/apache/lucene/document
mkdir -p release/classes/org/apache/lucene/index
mkdir -p release/classes/org/apache/lucene/query
mkdir -p release/classes/org/apache/lucene/queryParser
mkdir -p release/classes/org/apache/lucene/search
mkdir -p
release/classes/org/apache/lucene/search/spans
mkdir -p
release/classes/org/apache/lucene/search/highlight
mkdir -p release/classes/org/apache/lucene/store
mkdir -p release/classes/org/apache/lucene/queryParser
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.store.InputStream
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.store.OutputStream
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.store.RAMOutputStream
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.store.Lock
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.store.Directory
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.store.FSDirectory
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.store.RAMDirectory
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.Token
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.TokenStream
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.CharTokenizer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.LetterTokenizer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.LowerCaseTokenizer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.TokenFilter
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.Tokenizer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.LowerCaseFilter
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.PorterStemFilter
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.StopFilter
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.Analyzer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.SimpleAnalyzer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.StopAnalyzer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar org.apache.lucene.analysis.WhitespaceAnalyzer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar
org.apache.lucene.analysis.PerFieldAnalyzerWrapper
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar
org.apache.lucene.analysis.standard.StandardAnalyzer
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar
org.apache.lucene.analysis.standard.StandardFilter
/cygdrive/d/mingw-3.1-3.4.2/bin/gcjh -d
release/classes --classpath=release/clas
ses/jar
org.apache.lucene.analysis.standard.StandardTokenizer
static field has same name as method
make: ***
[release/classes/org/osafoundation/util/PythonException.h]
Error 1


	
	
		
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com


More information about the pylucene-dev mailing list