[Xapian-devel] Re: Xapian Binding compile error in Windows XP using CygWin
Olly Betts
olly at survex.com
Thu Dec 22 18:23:21 GMT 2005
OK, there are two problems in the configure script. You should be able to get
it to work if you edit xapian-bindings' configure script as follows...
Search for "libs" (including the quotes), and change this:
case $host_os in
mingw* | pw32*)
PYTHON_LIBS=`$PYTHON -c 'import os,sys;print "-L"+os.path.join(sys.prefix,"libs").replace(os.sep,"/"),"-lpython"+sys.version[:3].replace(".","")'` ;; *)
PYTHON_LIBS=
esac
to this (add "cygwin* |" and change "libs" to "lib"):
case $host_os in
cygwin* | mingw* | pw32*)
PYTHON_LIBS=`$PYTHON -c 'import os,sys;print "-L"+os.path.join(sys.prefix,"lib").replace(os.sep,"/"),"-lpython"+sys.version[:3].replace(".","")'` ;; *)
PYTHON_LIBS=
esac
Then "make distclean", rerun configure and make. Let me know whether that
fixes it or not (if it does, I'll apply the change, if not we'll see if we
can work out what else is going wrong...)
Cheers,
Olly
More information about the Xapian-devel
mailing list