lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Koch" <k...@orbiteam.de>
Subject AW: Building PyLucene on Windows
Date Mon, 30 Apr 2012 07:52:02 GMT
Jeremy,  (and Chris)
note that there are some pre-built binaries of PyLucene/JCC available for
Windows and other platforms in the pylucene extras project:
http://code.google.com/a/apache-extras.org/p/pylucene-extra/

Anyway, I can shortly describe my setup for the build process :

I am currently using 
- pylucene-3.x with  Python 2.6 and Pyrthon 2.7 on windows (win7-32) with
the following tools:
- Java 1.6 (jdk1.6.0_06)
- Ant 1.8.0
- MS-Visual-Studio9 compiler (Microsoft Visual C++ 2008 Express Edition)
- Cygwin (for make basically)

I also tried a different toolchain with MinGW and GNU Make on windows once,
but had some problems so I'm currently happy with the above setup.

Here are the instructions for the step-by-step build process:

I. download the sources
II. build JCC

0. make sure to set JAVAHOME (or edit jcc/setup.py ...)
e.g. JAVA_HOME=C:\Program Files\Java\jdk1.6.0_06
1. cd jcc
2. python setup.py build
3. python setup.py install
  
III. build PyLucene

0. make sure you have Python, Java and Ant installed (I also use cygwin for
make process)
1. edit the Makefile and adapt to your configuration/environment
 - there are some pre-set sample configs you may choose (i.e. uncomment)
 - you may need to change path details and version numbers ...
e.g. (my env)
# Windows   (Win32, Python 2.7, Java 1.6, ant 1.8.0 - all 32-Bit!)
ANT=/cygdrive/f/devel/apache-ant-1.8.0/bin/ant
JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_06
PREFIX_PYTHON=/cygdrive/c/Python27
PYTHON=$(PREFIX_PYTHON)/python.exe
JCC=$(PYTHON) -m jcc --shared --find-jvm-dll
NUM_FILES=4

2. (in cygwin) run make  i.e.
   
   make
   make install
   make test 


Hope that helps!


kind regards

Thomas 
--
OrbiTeam Software GmbH & Co. KG, Germany
http://www.orbiteam.de

> -----Urspr√ľngliche Nachricht-----
> Von: Jeremy Michels [mailto:jeremy.d.michels@gmail.com]
> Gesendet: Samstag, 28. April 2012 20:14
> An: pylucene-dev@lucene.apache.org
> Betreff: Building PyLucene on Windows
> 
> Would you be willing to share your makefile? I am having quite a bit of
> trouble with this as well.



Mime
View raw message