how to build Xapian project on windows?

Olly Betts olly at survex.com
Fri Sep 1 06:28:14 BST 2017


On Thu, Aug 31, 2017 at 05:38:33PM +0800, 烛秋 wrote:
> hi, anyone know how to build Xapian on windows?

Building with GCC from mingw and the msys tools should work out of the
box, so that's probably the easiest option.

> I had try this(https://github.com/xapian/xapian/tree/v1.2.24/xapian-maintainer-tools/win32msvc) but fail.
> error messages:
> .\remoteconnection.cc(532) : error C2146: syntax error : missing ';' before identifier 'uoff_t'
> How to edit the config.mak file to release a correct config.h file ?

Those nmake files have been without a maintainer since about 2011, so
it's not a big surprise that they don't work without a few tweaks at
this point.

I guess they don't define UNSIGNED_OFF_T (which should be an unsigned
integer type with the same width as off_t).

Nobody seems interested in keeping the nmake files up to date, so it's
probably time we just removed them.  If someone really wants to build
with MSVC, their best option is probably to use the standard build
system and a wrapper around MSVC such as cccl:

https://github.com/swig/cccl

Cheers,
    Olly



More information about the Xapian-discuss mailing list