Displaying 5 results from an estimated 5 matches for "buildindexdemo".
2014 Feb 12
2
A beginner in "Posting list encoding improvements"
...seem to run into some trouble.
> I succeeded in building the source code of Xapian in ubuntu,
> but when I write a demo c++ application
>
> [snip]
> I can't get it built.
>
>
> hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ -L/usr/local/lib -lxapian-1.3 BuildIndexDemo.cpp
Hmmm, where did you get this invocation from? This should be:
g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cpp
xapian-config knbow how to link xapian applications (and libxapian-1.3 looks strange).
>
> In /usr/local/lib, there are libxapian-1.3.so, libxapian-1.3.a, libxapian...
2014 Feb 12
2
A beginner in "Posting list encoding improvements"
On 12 Feb 2014, at 08:55, Olly Betts <olly at survex.com> wrote:
> For GSoC projects, I'd recommend developing on Linux, or another
> Unix-like platform. I think everyone who has so far expressed an
> interest in mentoring uses Linux or Mac OS X, so we're much better
> placed to help with development on such platforms.
If you're on Windows, the way of doing this
2014 Feb 13
2
A beginner in "Posting list encoding improvements"
...ding improvements"
On Wed, Feb 12, 2014 at 03:07:30PM +0000, James Aylett wrote:
> On 12 Feb 2014, at 14:58, "Hurricane Tong" <zhangshangtong.cpp at qq.com> wrote:
>
> > hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cpp
>
> You want to use xapian-config-1.3 here, not xapian-config (which will be the installed version, not the trunk version you built).
Oh, dear - unless the OP know _exactly_ what he's doing he should remove the distributions devel package to
avoid hard-to-debug problems:
sudo apt-...
2014 Feb 12
2
A beginner in "Posting list encoding improvements"
On 12 Feb 2014, at 14:58, "Hurricane Tong" <zhangshangtong.cpp at qq.com> wrote:
> hurricanetong at hurricanetong-VirtualBox:~/workspace$ g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cpp
You want to use xapian-config-1.3 here, not xapian-config (which will be the installed version, not the trunk version you built).
I've just built trunk (on Mac OS, admittedly), and your code compiled and linked fine, and when run created an empty database as expected.
J
--
James Aylet...
2014 Feb 13
2
回复: A beginner in "Posting list encoding improvements"
...for me on Debian unstable with a locally installed xapian-core
1.2.17, which I built using:
$ tar xf xapian-core-1.2.17.tar.xz
$ cd xapian-core-1.2.17
$ ./configure
[...]
$ make -sj8 # quieter build, 8-way parallel
[...]
$ sudo make install
[...]
And then:
$ g++ `xapian-config --cxxflags --libs` BuildIndexDemo.cpp
$ ./a.out
$ ls -l database
total 16
-rw-r--r-- 1 olly olly 0 Feb 13 15:05 flintlock
-rw-r--r-- 1 olly olly 28 Feb 13 15:05 iamchert
-rw-r--r-- 1 olly olly 13 Feb 13 15:05 postlist.baseA
-rw-r--r-- 1 olly olly 0 Feb 13 15:05 postlist.DB
-rw-r--r-- 1 olly olly 13 Feb 13 15:05 record.baseA
-rw-...