[Xapian-devel] Re: Xapian Binding compile error in Windows XP using CygWin

Koum koumakis at gmail.com
Fri Dec 23 14:31:44 GMT 2005


Olly Betts <olly <at> survex.com> writes:

> 
> On Fri, Dec 23, 2005 at 12:57:34PM +0000, Koum wrote:
> > $ python -c 'import sys;print sys.prefix'
> > /usr
> > 
> > And James is right the path for /usr is C:\cygwin\usr
> 
> I don't understand why our technique for finding the python dll works
> for mingw but not for cygwin, but you can probably just override this
> with:
> 
> make install PYTHON_LIBS='-L"C:/Program Files/Python24/libs" -lpython24'
> 
> That's assuming that libtool copes with the space, as it doesn't always
> cope with pathnames with spaces.  If that causes a problem, I guess you
> can symlink it from a safer path and use that in the -L.
> 
> Cheers,
>     Olly
> 

I changed the path of Python to c:/Python24 ans set  the right path at the 
cygwin path. Reinstalled the xapian-core (you never know) and then xapian-
binding. My new errors are :
make  all-recursive
make[1]: Entering directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bi
ndings-0.9.2'
Making all in python
make[2]: Entering directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bi
ndings-0.9.2/python'
make  all-recursive
make[3]: Entering directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bi
ndings-0.9.2/python'
Making all in docs
make[4]: Entering directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bi
ndings-0.9.2/python/docs'
Making all in examples
make[5]: Entering directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bi
ndings-0.9.2/python/docs/examples'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin
dings-0.9.2/python/docs/examples'
make[5]: Entering directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bi
ndings-0.9.2/python/docs'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin
dings-0.9.2/python/docs'
make[4]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin
dings-0.9.2/python/docs'
make[4]: Entering directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bi
ndings-0.9.2/python'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
 -Ic:/Python24/include  -Wall -Wno-unused -Wno-uninitialized -g -O2 -I/usr/local
/include -MT xapian_wrap.lo -MD -MP -MF ".deps/xapian_wrap.Tpo" -c -o xapian_wra
p.lo `test -f 'modern/xapian_wrap.cc' || echo './'`modern/xapian_wrap.cc; \
then mv -f ".deps/xapian_wrap.Tpo" ".deps/xapian_wrap.Plo"; else rm -f ".deps/xa
pian_wrap.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -Ic:/Python24/include -Wall -Wno-unused -Wno-u
ninitialized -g -O2 -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF .deps/xa
pian_wrap.Tpo -c modern/xapian_wrap.cc  -DPIC -o .libs/xapian_wrap.o
In file included from c:/Python24/include/Python.h:82,
                 from modern/xapian_wrap.cc:40:
c:/Python24/include/intobject.h:41: error: `__int64' does not name a type
In file included from c:/Python24/include/Python.h:84,
                 from modern/xapian_wrap.cc:40:
c:/Python24/include/longobject.h:37: error: `__int64' was not declared in this s
cope
c:/Python24/include/longobject.h:39: error: `__int64' does not name a type
c:/Python24/include/longobject.h:40: error: `__int64' does not name a type
c:/Python24/include/longobject.h:41: error: `__int64' does not name a type
make[4]: *** [xapian_wrap.lo] Error 1
make[4]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin
dings-0.9.2/python'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin
dings-0.9.2/python'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin
dings-0.9.2/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/AutomaticTextAnalysis-1.3-rc1/xapian-bin
dings-0.9.2'
make: *** [all] Error 2

Lefteris.





More information about the Xapian-devel mailing list