Hi all. I tried to build xapian-core on UBUNTU by following instructions from site. If to be more exact, I made actions: 1) cloning project 2) installing zlib 2) cd to <xapian-name>/xapian-core 3) execute command autoconf (executed successfully) 4) execute command ./configure (shows big log, but I didn't find any errors from it) 5) execute command make During executing make I am getting following error: depbase=`echo api/compactor.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\> > /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. >> -I./common -I./include -Wall -W -Wredundant-decls -Wpointer-arith >> -Wcast-qual -Wcast-align -Wformat-security -fno-gnu-keywords -Wundef >> -Woverloaded-virtual -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 >> -Wlogical-op -Wmissing-declarations -Wdouble-promotion -Winit-self >> -fvisibility=hidden -g -O2 -std=gnu++11 -MT api/compactor.lo -MD -MP -MF >> $depbase.Tpo -c -o api/compactor.lo api/compactor.cc &&\ > > mv -f $depbase.Tpo $depbase.Plo > > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./common -I./include -Wall -W >> -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align >> -Wformat-security -fno-gnu-keywords -Wundef -Woverloaded-virtual >> -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Wlogical-op >> -Wmissing-declarations -Wdouble-promotion -Winit-self -fvisibility=hidden >> -g -O2 -std=gnu++11 -MT api/compactor.lo -MD -MP -MF >> api/.deps/compactor.Tpo -c api/compactor.cc -fPIC -DPIC -o >> api/.libs/compactor.o > > In file included from api/postlist.h:32:0, > > from api/leafpostlist.h:25, > > from api/compactor.cc:44: > > ./weight/weightinternal.h:28:26: fatal error: xapian/error.h: No such file >> or directory > > compilation terminated. > > Makefile:2621: recipe for target 'api/compactor.lo' failed > > make[2]: *** [api/compactor.lo] Error 1 > > >I am really did not find any error.h file on system. It seems like build system is failed? Am I right? or may be I did wrong instruction? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20171106/faf08858/attachment.html>
On Mon, Nov 06, 2017 at 12:19:00PM +0300, Александр wrote:> Hi all. I tried to build xapian-core on UBUNTU by following instructions > from site. If to be more exact, I made actions: > > 1) cloning project > 2) installing zlib > 2) cd to <xapian-name>/xapian-core > 3) execute command autoconf (executed successfully) > 4) execute command ./configure (shows big log, but I didn't find any errors > from it) > 5) execute command makeThat's not how you build from git - follow the instructions at https://xapian.org/bleeding : 1. git clone https://git.xapian.org/xapian 2. Read the "Building from git" section in xapian-core/HACKING - in particular make sure you have the required tools installed. 3. In the newly created xapian directory, run the command ./bootstrap - this will run various developer tools to produce a source tree like you'd get from unpacking release source tarballs. 4. bootstrap will create a top level configure script, which you can use to configure the whole source tree together. 5. If you're looking to do development work on Xapian, then the rest of xapian-core/HACKING is recommended reading. Step 3 is important. Which "instructions from site" did you follow? If there's conflicting information on xapian.org we should fix it. If these are instructions on a different site, there might not be much we can do (see also https://xkcd.com/386/). Cheers, Olly