Re: How to build xapian 1.4.10 with MSVC2017
"cswuyg" <[email protected]>
| Newsgroups | gmane.comp.search.xapian.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your reply. I had run vcvars64.bat,but still cann't find 'cl'. Finally I fix it, change msys2_shell.cmd: "if it is present: replace rem set MSYS2_PATH_TYPE=inherit with set MSYS2_PATH_TYPE=inherit". And other errors : # ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS="-EHsc AR=lib -IC:\zlib-1.2.3-lib\include LDFLAGS=-LC:\zlib-1.2.3-lib\lib" --prefix="C:\xapian-install" configure: loading site script /etc/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... no checking whether make supports nested variables... no checking whether UID '1492654' is supported by ustar format... yes checking whether GID '1049089' is supported by ustar format... yes checking how to create a ustar tar archive... pax checking for style of include used by make... none checking for gcc... cl -nologo checking whether the C compiler works... yes checking for C compiler default output file name... conftest.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... obj checking whether we are using the GNU C compiler... no checking whether cl -nologo accepts -g... no checking for cl -nologo option to accept ISO C89... none needed checking whether cl -nologo understands -c and -o together... no checking dependency style of /d/xapian_proj/xapian-core-1.4.10/compile cl -nologo... none checking for ar... no checking for lib... lib checking the archiver (lib) interface... lib checking build system type... x86_64-pc-msys checking host system type... x86_64-pc-msys checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for non-GNU ld... no configure: error: no acceptable ld found in $PATH ---- Maybe some step error? ------------------ Original ------------------ From: "Olly Betts";<[email protected]>; Send time: Wednesday, Feb 20, 2019 10:33 AM To: "cswuyg"<[email protected]>; Cc: "xapian-discuss"<[email protected]>; Subject: Re: How to build xapian 1.4.10 with MSVC2017 On Wed, Feb 20, 2019 at 09:53:56AM +0800, 烛秋 wrote: > hi, I have read the install document,https://github.com/xapian/xapian/blob/v1.4.10/xapian-core/INSTALL,but don't how to build xapian project by MSVC. > I execute command in mingw64.exe: ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS=-EHsc AR=lib > has some errors: > # ./configure CC="cl -nologo" CXX="$PWD/compile cl -nologo" CXXFLAGS=-EHsc AR=lib > configure: loading site script /mingw64/etc/config.site > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /usr/bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... no > checking whether make supports nested variables... no > checking whether UID '1492654' is supported by ustar format... yes > checking whether GID '1049089' is supported by ustar format... yes > checking how to create a ustar tar archive... pax > checking for style of include used by make... none > checking for gcc... cl -nologo > checking whether the C compiler works... no > configure: error: in `/d/xapian_proj/xapian-core-1.4.10': > configure: error: C compiler cannot create executables Is "cl" found on your PATH? To check you can try just running cl /? which should give the command line help. If it says it can't find the command, make sure you've run the "vcvars" batch file (also described in INSTALL). > See `config.log' for more details If "cl /?" does work, look in config.log to see why configure decided the compiler doesn't work. Cheers, Olly