Re: anyone succeed in building JCC with gcc on Cygwin windows for Pylucene

2009-06-03 Thread Andi Vajda


On Wed, 3 Jun 2009, edwin.mad...@verizonwireless.com wrote:


For PyLucene, has anyone succeeded in building JCC with gcc version 3.4.4 on 
Cygwin windows?

python setup.py build is throwing errors while compiling JArray.cpp that 
comes with PyLucene-2.4.0-2
..
jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjshort':
jcc/sources/JArray.cpp:1017:   instantiated from here
jcc/sources/JArray.cpp:30: error: base `t_jarrayjshort' with only non-default 
constructor in class without a constructor
.
//getting a total of 11 such errors, one for each of the jdata types

any work around?


You might have better luck with a more recent gcc compiler.
There's got be a gcc 4.x version available for cygwin (or mingw) somewhere.

Andi..



thanks in advance
Edwin


The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.




Re: anyone succeed in building JCC with gcc on Cygwin windows for Pylucene

2009-06-03 Thread Christian Heimes
edwin.mad...@verizonwireless.com schrieb:
 For PyLucene, has anyone succeeded in building JCC with gcc version 3.4.4 on 
 Cygwin windows? 
 
 python setup.py build is throwing errors while compiling JArray.cpp that 
 comes with PyLucene-2.4.0-2
 ..
 jcc/sources/JArray.cpp: In instantiation of `_t_jarrayjshort':
 jcc/sources/JArray.cpp:1017:   instantiated from here
 jcc/sources/JArray.cpp:30: error: base `t_jarrayjshort' with only 
 non-default constructor in class without a constructor
 . 
 //getting a total of 11 such errors, one for each of the jdata types
 
 any work around?

Yeah, you have to install GCC 4.x in order to compile the C++ code. GCC
3.x doesn't support some syntax. The official cygwin installer doesn't
list GCC 4.x but you can google for an unofficial add-on.

You also have to modify several flags in setup.py like the library
search and include flags. It's feasible but quite some work. I went
there and came back for MSVC 7.1.

Christian