[Xapian-discuss] Building 0.9.10 with MSVC++ 2005 Express Edition
Michael Sanders
m.r.sanders at gmail.com
Thu Mar 8 16:28:08 GMT 2007
Charlie Hull wrote:
> Sorry, all these should be fixed if you re-download the build files.
> I've also fixed up some paths in config.mak and win32.mak to cope better
> with a standard 0.9.10 path structure.
Thanks Charlie.
Both the Python bindings and Omega now compile. \o/
Unfortunately I have now run in to a couple of more issues...
Python 2.5
----------
When used with Python 2.4, the Python bindings appear to work fine
(smoketest.py gives no errors). When I try it with Python 2.5, it fails
to import the Xapian module:
Traceback (most recent call last):
File
"C:\downloads\xapian\xapian-core-0.9.10\win32\Release\Python\smoketest.py",
line 22, in <module>
import xapian
File
"C:\downloads\xapian\xapian-core-0.9.10\win32\Release\Python\xapian.py",
line 6, in <module>
import _xapian
ImportError: No module named _xapian
This was after re-compiling, having first edited the 'config.mak' file
to set PYTHON_DIR and PYTHON_LIB to point at Python 2.5. I also tried
recompiling the SWIG bindings, but this made no difference. Have you had
it working with Python 2.5?
Omega
-----
Regarding omega.exe, when I run this from the command line, a window
pops up with the message:
"omega.exe has encountered a problem and needs to close. We are sorry
for the inconvenience."
When I run it after having compiled in debug mode (by running the
platform SDK setenv.cmd with /XP32 and /DEBUG flags and editing the
'config.mak' file), I get the following error in a pop-up:
----------------------------------
Microsoft Visual C++ Debug Library
Debug Assertion Failed!
Program: C:\Downloads\xapian\xapian-core-0.9.10\win32\Debug\omega.exe
File:mbstowcs.c
Line:69
Expression: s != NULL
----------------------------------
The 'mbstowcs.c' file is part of the Platform SDK and is used to convert
multibyte char strings to wide char strings.
Does omega.exe run OK for you?
omindex.exe was a bit more promising in that it starts navigating the
directory hierarchy and then hangs when it attempts to index a file,
e.g. it hangs having printed the following line:
Indexing "/diveintopython-5.4/html/appendix/about.html" as text/html ...
Many thanks for your help.
Michael
More information about the Xapian-discuss
mailing list