Hi Jeremy,

On Apr 30, 2012, at 9:19, Jeremy Michels <jeremy.d.mich...@gmail.com> wrote:

> 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

I've seen that error and it seems to be a bug in JCC related to using Java 7 
and generics (which is fine).

I fixed that bug a couple of weeks ago. You should get the latest sources from 
the branch_3_x jcc sources or wait for the PyLucene 3.6 release which should 
happen within a week.

Andi..

> 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

Reply via email to