On Mon, Mar 19, 2018 at 03:31:38PM +0800, 李澍 wrote:> I'm new in xapian project. I want to build 64bit xapian(1.2.8) from
> source using MSVC 2017.
The 1.2.x release series was retired about 6 months ago, and 1.2.8 is
far from being the latest version even in that retired release series
(it's more than 6 years old).
For a stable release, please use 1.4.x. In particular, there are quite
a lot of recent changes on the RELEASE/1.4 branch (after 1.4.5) which
mean it can now be built with MSVC using the standard build system:
https://lists.xapian.org/pipermail/xapian-discuss/2018-January/009585.html
You can find bootstrapped snapshots from RELEASE/1.4 (equivalent to
release tarballs if we'd made a release at that point) here:
https://oligarchy.co.uk/xapian/RELEASE/1.4/
I didn't attempt 64-bit compilation, but would encourage people to try
to get that working. As that message notes, you'll probably need to
disable (or fix) the remote backend for 64-bit compilation.
> But I cann't find any documents about 64bit compiling steps. I tried
> to replace the WIN32 with the WIN64 in the source files, then compile
> all the source.
That's unlikely to be the right approach, especially as WIN32 is
apparently still defined for 64-bit compilations.
> But the query parser compiling failed.
>
> It seems the lemon.exe get a runtime error.
If you tell us what the error is, we might be able to help. But please
try with a RELEASE/1.4 snapshot rather than 1.2.8.
> Is there a official doc to describe the steps to build the 64bit
> xapian using MSVC2017?
No - currently the mail above is the nearest thing to docs on how to
build with MSVC at all.
Cheers,
Olly