lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Michels <jeremy.d.mich...@gmail.com>
Subject Re: AW: Building PyLucene on Windows
Date Mon, 30 Apr 2012 16:19:36 GMT
Tom -

Thank you for sharing your expertise on this matter. I was unable to
use the pre-built binaries as I am using a 64-bit system (attempting
to do so would results in the error: ImportError: DLL load failed: %1
is not a valid Win32 application).

This is my setup:
Windows 7 (64-bit)
Python 2.7.2 (64 bit)
Java 1.7 (jdk1.7.0)
Ant 1.8.3
Windows SDK C/C++ compiler (v7.0)
Cygwin

I was able to build JCC without any apparent problems. Below are my
Makefile settings:

ANT=/cygdrive/c/Program\ Files/Ant/apache-ant-1.8.3/bin/ant
JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0
PREFIX_PYTHON=/cygdrive/c/Program\ Files/Python
PYTHON=$(PREFIX_PYTHON)/python.exe
JCC=$(PYTHON) -m jcc --shared
NUM_FILES=4

Previously I had the "--find-jvm-dll" option included on the "JCC"
line, but this gave me the error "ValueError: jvm.dll could not be
found," so I removed the option and added the location of the jvm.dll
file to my path and I no longer received this error.

However, running "make" with the specifications given above results in
the error:

c:\users\jeremy\downloads\pylucene-3.5.0-3\build\_lucene\[F.h(1) : fatal error C
1016: #if[n]def expected an identifier
error: command 'cl.exe' failed with exit status 2
Makefile:312: recipe for target `compile' failed
make: *** [compile] Error 1

To be honest, I don't really know what this means and am feeling a bit
out of my league at this point. However, any further guidance you
might have would be appreciated.

Best Regards,

Jeremy

Mime
View raw message