Daniel Ménard
2007-Jun-13 14:22 UTC
[Xapian-devel] Compiling 1.0.1 on windows : version.h
I tried to compile xapian 1.0.1 under windows but the new /msvc/version.h file has #undef XAPIAN_HAS_REMOTE_BACKEND which prevents /backends/dbfactory_remote.cc to be built. The old (hand-written) version.h.win32 had it defined to 1. Everything build fine if I replace #undef with #define in version.h. Cheers, -- Daniel M?nard
Daniel M?nard wrote:> I tried to compile xapian 1.0.1 under windows but the new > /msvc/version.h file has #undef XAPIAN_HAS_REMOTE_BACKEND which prevents > /backends/dbfactory_remote.cc to be built. > > The old (hand-written) version.h.win32 had it defined to 1. > Everything build fine if I replace #undef with #define in version.h. > > Cheers,A related issue; the current SVN-HEAD build files don't copy in version.h correctly (there's no configure on Windows remember). Anyway, the following patch to \win32msvc\Makefile fixes it. Cheers Charlie Index: Makefile ==================================================================--- Makefile (revision 8907) +++ Makefile (working copy) @@ -92,7 +92,7 @@ # Copy mak files to the right folders COPYMAKFILES: copy config.h.win32 ..\config.h - copy ..\msvc\version.h ..\include\xapian\version.h + copy ..\msvc\version.h.in ..\include\xapian\version.h copy win32_api.mak ..\api\Makefile copy win32_backends.mak ..\backends\Makefile copy win32_backends_flint.mak ..\backends\flint\Makefile
On Wed, Jun 13, 2007 at 04:22:21PM +0200, Daniel M?nard wrote:> I tried to compile xapian 1.0.1 under windows but the new > /msvc/version.h file has #undef XAPIAN_HAS_REMOTE_BACKEND which prevents > /backends/dbfactory_remote.cc to be built.Fixed in SVN (that #undef is a remnant from before Mark Hammond got the remote backend to work on Windows). Cheers, Olly