From 27129b4636ce6481659970bb5d1bb35bd6d79ae0 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 29 Aug 2022 15:30:59 +1200 Subject: [PATCH] INSTALL: Restructure MSVC section for clarity (cherry picked from commit 732af04f72d6841344cb15597af97230621c3ca6) --- xapian-core/INSTALL | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/xapian-core/INSTALL b/xapian-core/INSTALL index 62675a753..81a724a7c 100644 --- a/xapian-core/INSTALL +++ b/xapian-core/INSTALL @@ -57,6 +57,9 @@ MSVC If you're using MS Visual C++, you'll need at least MSVS 2015 for C++11 support. +We support 64-bit compilation with MSVS 2017, 2019 and 2022. With MSVS 2015 a +64-bit build fails to work - we haven't investigated why. + As of Xapian 1.4.6 building using MSVC is supported by the autotools build system. You need to install a set of Unix-like tools first - we recommended MSYS2: https://www.msys2.org/ @@ -79,16 +82,17 @@ And for MSVC 2015 32-bit use:: MSVC 2015 64-bit isn't currently supported, but would use the above command but with ``x64`` instead of ``x86``. -Then from a bash shell run configure like so:: +You'll need to have the zlib library available. You can add +``CPPFLAGS=-I/path/to/zlib LDFLAGS=-L/path/to/zlib`` to the configure command +line to tell MSVC where to find the zlib headers and library. + +To build, first run configure from a bash shell like so:: ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS=-EHsc AR=lib -You'll need to have the zlib library available. You can also specify -``CPPFLAGS=-I/path/to/zlib LDFLAGS=-L/path/to/zlib`` to tell MSVC where to -find the zlib headers and library. +Then build using GNU make:: -We support 64-bit compilation with MSVS 2017, 2019 and 2022. With MSVS 2015 a -64-bit build fails to work - we haven't investigated why. + make HP's aCC -------- -- 2.11.4.GIT