[Xapian-discuss] Building on Windows

Craig Lee Craig.Lee at noetix.com
Wed Jun 8 19:14:48 BST 2005


Hi,

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.

Here is what I have done so far:
a. I unpacked the core and put in at c:\xapian-core-0.9.0
b. I then opened a cmd window, typed 'sh' to open up the cygwin shell
and then typed in the './configure' command
c. This ran and seemed to be fine until towards the end I got some FIND:
Parameter format not correct errors

...
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
FIND: Parameter format not correct
FIND: Parameter format not correct
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating include/Makefile
config.status: creating common/Makefile
...

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.
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.

...
Making all in .
make[2]: Entering directory `/cygdrive/c/xapian-core-0.9.0'
/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
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
Creating library file: .libs/libxapian.dll.a
backends/.libs/libbackend.a(database.o): In function
`_ZNK13EmptyPostList15get_descriptionEv':/cygdrive/c/xapian-core-0.9.0/b
ackends/../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)'
backends/.libs/libbackend.a(database.o): In function
`_ZN6Xapian6Quartz4openERKSsii':/cygdrive/c/xapian-core-0.9.0/backends/d
atabase.cc:67: undefined reference to
`QuartzWritableDatabase::QuartzWritableDatabase[in-charge](std::basic_st
ring<char, std::char_traits<char>, std::allocator<char> > const&, int,
int)'
backends/.libs/libbackend.a(database.o): In function
`_ZN6Xapian8InMemory4openEv':/cygdrive/c/xapian-core-0.9.0/backends/data
base.cc:78: undefined reference to
`InMemoryDatabase::InMemoryDatabase[in-charge]()'
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>)'
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>)'
backends/.libs/libbackend.a(database.o): In function
`_ZN6Xapian8Internal13open_databaseEPNS_8DatabaseERKSs':/cygdrive/c/xapi
an-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)'
backends/.libs/libbackend.a(database.o): In function
`_ZN6Xapian8Internal22open_writable_databaseEPNS_8DatabaseERKSsi':/cygdr
ive/c/xapian-core-0.9.0/backends/../include/xapian/base.h:91: undefined
reference to
`QuartzWritableDatabase::QuartzWritableDatabase[in-charge](std::basic_st
ring<char, std::char_traits<char>, std::allocator<char> > const&, int,
int)'
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&)'
api/.libs/libapi.a(omdatabase.o): In function
`_ZNK6Xapian8Database14termlist_beginEj':/cygdrive/c/xapian-core-0.9.0/a
pi/../include/xapian/base.h:515: undefined reference to
`MultiTermList::MultiTermList[in-charge](LeafTermList*,
Xapian::Internal::RefCntPtr<Xapian::Database::Internal const> const&,
Xapian::Database const&)'
api/.libs/libapi.a(omdatabase.o): In function
`_ZNK6Xapian8Database14allterms_beginEv':/cygdrive/c/xapian-core-0.9.0/a
pi/omdatabase.cc:170: undefined reference to
`MultiAllTermsList::MultiAllTermsList[in-charge](std::vector<Xapian::Ter
mIterator::Internal*, std::allocator<Xapian::TermIterator::Internal*> >
const&)'
api/.libs/libapi.a(omdocument.o): In function
`_ZN6Xapian8DocumentC2Ev':/cygdrive/c/xapian-core-0.9.0/api/omdocument.c
c:45: undefined reference to
`InMemoryPositionList::InMemoryPositionList[in-charge](std::vector<unsig
ned, std::allocator<unsigned> > const&)'
collect2: ld returned 1 exit status
make[2]: *** [libxapian.la] Error 1
make[2]: Leaving directory `/cygdrive/c/xapian-core-0.9.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/xapian-core-0.9.0'
make: *** [all] Error 2

Would anyone be able to help with these errors or point me in the right
direction?

Thanks,

cl.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tartarus.org/pipermail/xapian-discuss/attachments/20050608/19230926/attachment.htm


More information about the Xapian-discuss mailing list