[Xapian-devel] Compiling 1.0.1 on windows : version.h
Charlie Hull
charlie at juggler.net
Wed Jun 13 16:18:44 BST 2007
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
More information about the Xapian-devel
mailing list