<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Building on Windows</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am brand new to Xapian and am trying to get it to build on my Windows XP SP2 computer. I have downloaded cygwin and did a full install. I have downloaded the most recent xapian-core code.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Here is what I have done so far:</FONT>
<BR><FONT SIZE=2 FACE="Arial">a. I unpacked the core and put in at c:\xapian-core-0.9.0</FONT>
<BR><FONT SIZE=2 FACE="Arial">b. I then opened a cmd window, typed 'sh' to open up the cygwin shell and then typed in the './configure' command</FONT>
<BR><FONT SIZE=2 FACE="Arial">c. This ran and seemed to be fine until towards the end I got some FIND: Parameter format not correct errors</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">...</FONT>
<BR><FONT SIZE=2 FACE="Arial">checking for special C compiler options needed for large files... no</FONT>
<BR><FONT SIZE=2 FACE="Arial">checking for _FILE_OFFSET_BITS value needed for large files... no</FONT>
<BR><FONT SIZE=2 FACE="Arial">checking for _LARGE_FILES value needed for large files... no</FONT>
<BR><FONT SIZE=2 FACE="Arial">FIND: Parameter format not correct</FONT>
<BR><FONT SIZE=2 FACE="Arial">FIND: Parameter format not correct</FONT>
<BR><FONT SIZE=2 FACE="Arial">configure: creating ./config.status</FONT>
<BR><FONT SIZE=2 FACE="Arial">config.status: creating Makefile</FONT>
<BR><FONT SIZE=2 FACE="Arial">config.status: creating testsuite/Makefile</FONT>
<BR><FONT SIZE=2 FACE="Arial">config.status: creating include/Makefile</FONT>
<BR><FONT SIZE=2 FACE="Arial">config.status: creating common/Makefile</FONT>
<BR><FONT SIZE=2 FACE="Arial">...</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">d. I then realized that my $HOME path had a space in it, so I re-ran configure with --prefix=/home/calee (after creating that directory under cygwin/home). I get the same FIND errors.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">e. I then proceeded to try the 'make' command. This does place some include files in my home path correctly, but no binaries get built. I see the following errors. It looks like the directories below '.' got built correctly.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">...</FONT>
<BR><FONT SIZE=2 FACE="Arial">Making all in .</FONT>
<BR><FONT SIZE=2 FACE="Arial">make[2]: Entering directory `/cygdrive/c/xapian-core-0.9.0'</FONT>
<BR><FONT SIZE=2 FACE="Arial">/bin/bash ./libtool --mode=link g++ -Wall -W -Wno-long-long -fno-gnu-keywords -g -O2 -o libxapian.la -rpath /usr/local/lib -no-undefined -version-info 6:0:0 dummy.lo common/libcommon.la backends/libbackend.la matcher/libmatcher.la languages/liblanguages.la api/libapi.la net/libnet.la queryparser/libqueryparser.larm -fr .libs/libxapian.dll.a</FONT></P>
<P><FONT SIZE=2 FACE="Arial">g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtbegin.o .libs/dummy.o -Wl,--whole-archive common/.libs/libcommon.a backends/.libs/libbackend.a matcher/.libs/libmatcher.a languages/.libs/liblanguages.a api/.libs/libapi.a net/.libs/libnet.a queryparser/.libs/libqueryparser.a -Wl,--no-whole-archive -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3 -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../.. -lstdc++ -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtend.o -o .libs/cygxapian-6.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libxapian.dll.a</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Creating library file: .libs/libxapian.dll.a</FONT>
<BR><FONT SIZE=2 FACE="Arial">backends/.libs/libbackend.a(database.o): In function `_ZNK13EmptyPostList15get_descriptionEv':/cygdrive/c/xapian-core-0.9.0/backends/../common/emptypostlist.h:(.text+0x6d): undefined reference to `QuartzDatabase::QuartzDatabase[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, unsigned)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">backends/.libs/libbackend.a(database.o): In function `_ZN6Xapian6Quartz4openERKSsii':/cygdrive/c/xapian-core-0.9.0/backends/database.cc:67: undefined reference to `QuartzWritableDatabase::QuartzWritableDatabase[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">backends/.libs/libbackend.a(database.o): In function `_ZN6Xapian8InMemory4openEv':/cygdrive/c/xapian-core-0.9.0/backends/database.cc:78: undefined reference to `InMemoryDatabase::InMemoryDatabase[in-charge]()'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">backends/.libs/libbackend.a(database.o): In function `_ZN6Xapian6Remote4openERKSsS2_j':/cygdrive/c/xapian-core-0.9.0/backends/../include/xapian/base.h:104: undefined reference to `NetworkDatabase::NetworkDatabase[in-charge](Xapian::Internal::RefCntPtr<NetClient>)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">backends/.libs/libbackend.a(database.o): In function `_ZN6Xapian6Remote4openERKSsjjj':/cygdrive/c/xapian-core-0.9.0/backends/../include/xapian/base.h:104: undefined reference to `NetworkDatabase::NetworkDatabase[in-charge](Xapian::Internal::RefCntPtr<NetClient>)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">backends/.libs/libbackend.a(database.o): In function `_ZN6Xapian8Internal13open_databaseEPNS_8DatabaseERKSs':/cygdrive/c/xapian-core-0.9.0/backends/../include/xapian/base.h:91: undefined reference to `QuartzDatabase::QuartzDatabase[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, unsigned)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">backends/.libs/libbackend.a(database.o): In function `_ZN6Xapian8Internal22open_writable_databaseEPNS_8DatabaseERKSsi':/cygdrive/c/xapian-core-0.9.0/backends/../include/xapian/base.h:91: undefined reference to `QuartzWritableDatabase::QuartzWritableDatabase[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">api/.libs/libapi.a(omdatabase.o): In function `_ZNK6Xapian8Database14postlist_beginERKSs':/cygdrive/c/xapian-core-0.9.0/api/omdatabase.cc:135: undefined reference to `MultiPostList::MultiPostList[in-charge](std::vector<LeafPostList*, std::allocator<LeafPostList*> >&, Xapian::Database const&)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">api/.libs/libapi.a(omdatabase.o): In function `_ZNK6Xapian8Database14termlist_beginEj':/cygdrive/c/xapian-core-0.9.0/api/../include/xapian/base.h:515: undefined reference to `MultiTermList::MultiTermList[in-charge](LeafTermList*, Xapian::Internal::RefCntPtr<Xapian::Database::Internal const> const&, Xapian::Database const&)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">api/.libs/libapi.a(omdatabase.o): In function `_ZNK6Xapian8Database14allterms_beginEv':/cygdrive/c/xapian-core-0.9.0/api/omdatabase.cc:170: undefined reference to `MultiAllTermsList::MultiAllTermsList[in-charge](std::vector<Xapian::TermIterator::Internal*, std::allocator<Xapian::TermIterator::Internal*> > const&)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">api/.libs/libapi.a(omdocument.o): In function `_ZN6Xapian8DocumentC2Ev':/cygdrive/c/xapian-core-0.9.0/api/omdocument.cc:45: undefined reference to `InMemoryPositionList::InMemoryPositionList[in-charge](std::vector<unsigned, std::allocator<unsigned> > const&)'</FONT></P>
<P><FONT SIZE=2 FACE="Arial">collect2: ld returned 1 exit status</FONT>
<BR><FONT SIZE=2 FACE="Arial">make[2]: *** [libxapian.la] Error 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">make[2]: Leaving directory `/cygdrive/c/xapian-core-0.9.0'</FONT>
<BR><FONT SIZE=2 FACE="Arial">make[1]: *** [all-recursive] Error 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">make[1]: Leaving directory `/cygdrive/c/xapian-core-0.9.0'</FONT>
<BR><FONT SIZE=2 FACE="Arial">make: *** [all] Error 2</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Would anyone be able to help with these errors or point me in the right direction?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">cl.</FONT>
</P>
</BODY>
</HTML>