You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Christian Heimes <li...@cheimes.de> on 2009/02/18 00:37:58 UTC

Windows binaries of JCC and PyLucene

Hello!

I'm looking for Windows binaries of JCC 2.1 and PyLucene 2.4. I tried to
build the Windows binaries myself using Sun JDK 1.6.0u12 and MinGW32 but
I had no luck.

After some modifications to setup.py I got so far:

building 'jcc._jcc' extension
creating build\temp.win32-2.5\Release\_jcc
creating build\temp.win32-2.5\Release\_jcc\java
creating build\temp.win32-2.5\Release\_jcc\java\lang
creating build\temp.win32-2.5\Release\_jcc\java\lang\reflect
creating build\temp.win32-2.5\Release\_jcc\java\util
C:\Programme\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
-IC:\Programme\Java\jdk1.6.0_12\include -IC:\Programme\Java
\jdk1.6.0_12\include\win32 -I_jcc -Ijcc/sources
-IC:\Programme\Python25\include -IC:\Programme\Python25\PC -c jcc/sou
rces/JObject.cpp -o build\temp.win32-2.5\Release\jcc\sources\jobject.o
-DPYTHON
C:\Programme\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall
-IC:\Programme\Java\jdk1.6.0_12\include -IC:\Programme\Java
\jdk1.6.0_12\include\win32 -I_jcc -Ijcc/sources
-IC:\Programme\Python25\include -IC:\Programme\Python25\PC -c jcc/sou
rces/JArray.cpp -o build\temp.win32-2.5\Release\jcc\sources\jarray.o
-DPYTHON
jcc/sources/JArray.cpp: In instantiation of `_t_jarray<_jobject*>':
jcc/sources/JArray.cpp:612:   instantiated from `_t_jobjectarray<_jobject*>'
jcc/sources/JArray.cpp:619:   instantiated from here
jcc/sources/JArray.cpp:30: error: base `t_jarray<_jobject*>' with only
non-default constructor in class without a constructor
...

Christian

Re: Windows binaries of JCC and PyLucene

Posted by Andi Vajda <va...@apache.org>.
On Wed, 18 Feb 2009, Christian Heimes wrote:

> Christian Heimes wrote:
>> I'm looking for Windows binaries of JCC 2.1 and PyLucene 2.4. I tried to
>> build the Windows binaries myself using Sun JDK 1.6.0u12 and MinGW32 but
>> I had no luck.
>
> Good news everybody! Apparently the JCC sources are not compatible with
> GCC 3.4. I had more luck with GCC 4.1.2 from
> http://www.develer.com/oss/GccWinBinaries. I've appended a working patch
> against the latest trunk.

Thanks for the patch !
While it is a good example, it would break people using Visual Studio, in 
particular with the link line, -ljvm. On the other hand, the JDK variable 
idea I should try to incorporate, on all platforms.

> The PyLucene Makefile is really a pain in the ... I had to pull off
> several ugly hacks in order to compile PyLucene. Any other system than a
> Makefile would greatly improve the situation on Windows. For example
> http://www.blueskyonmars.com/projects/paver/ is really nice and easy to use.

Like I said yesterday, a complete setuptools-based solution for PyLucene 
would be more than welcome and work better on Windows. Until someone writes 
it, we're all stuck with the Makefile. Any other solution that only 
helps/works on Windows or makes Python users cringe (ant), and thus 
duplicates maintenance efforts is not so useful :)

Andi..

Re: Windows binaries of JCC and PyLucene

Posted by Christian Heimes <ch...@cheimes.de>.
Christian Heimes wrote:
> I'm looking for Windows binaries of JCC 2.1 and PyLucene 2.4. I tried to
> build the Windows binaries myself using Sun JDK 1.6.0u12 and MinGW32 but
> I had no luck.

Good news everybody! Apparently the JCC sources are not compatible with
GCC 3.4. I had more luck with GCC 4.1.2 from
http://www.develer.com/oss/GccWinBinaries. I've appended a working patch
against the latest trunk.

The PyLucene Makefile is really a pain in the ... I had to pull off
several ugly hacks in order to compile PyLucene. Any other system than a
Makefile would greatly improve the situation on Windows. For example
http://www.blueskyonmars.com/projects/paver/ is really nice and easy to use.

Christian