HI
I'am not very good with "compilation"...
I try to compile the v0.2.6 and i got an error (with V=99 debug
level) "conf.c:35:23: error: libconfig.h: No such file or directory"
I apply this "workaround"
cp ./OpenWrt-SDK-brcm47xx-for-Linux-i686/staging_dir/mipsel/usr/include/libconfig/libconfig.h ./OpenWrt-SDK-brcm47xx-for-Linux-i686/staging_dir/mipsel/usr/include
And the compilation runs.
For more information:
http://code.google.com/p/umurmur/wiki/Building
Yes the location of libconfig.h changed in trunk OpenWRT so I changed it
for 0.2.6. If you get a recent SDK from the snapshots dir it will work
without changes.
Build for SheevaPlug
Make sure you have the build-essential package.
{{{sudo apt-get install build-essential}}}
You can start in whatever fold you like, but I started at home, for
simplicity.
{{{mkdir ~/murmur
cd murmur}}}
Next we get the source for umurmur, and untar it. (make sure to grab the
most recent version. 0.2.6 is the most recent as of writing this.
{{{wget http://umurmur.googlecode.com/files/umurmur-0.2.6.tar.gz && tar xfz
umurmur-0.2.6.tar.gz}}}
Next we need to get the most recent libconfig from hyperrealm.com. I'm not
sure if this is the most efficient way, but it works.
{{{wget http://www.hyperrealm.com/libconfig/libconfig-1.4.6.tar.gz && tar
xfz libconfig-1.4.6.tar.gz}}}
{{{cd libconfig-1.4.6}}}
I had to use sudo because of a permission denied error in /tmp.
{{{sudo ./configure}}}
Then we make it to get our libconfig.h
{{{sudo make}}}
Then we install, so the lconfig library gets where it needs to be. (sorta)
{{{sudo make install}}
Then copy the lib/libconfig.h to the umurmur/src directory.
{{{cp lib/libconfig.h ../umurmur-0.2.6/src/}}}
On my little plug, it decided to put lconfig in /usr/local/lib, so I needed
to move it so the umurmur make could find it.
{{{sudo cp /usr/local/lib/libcon* /usr/lib/}}}
Now, we make sure we are in the umurmur source directory.
{{{cd ~/murmur/umurmur-0.2.6/src}}
then, just make. (or sudo make, if you have any problems.)
{{{make}}}
After it finishes, list your directory, and you should see umurmurd.
*yay!*
Well, that didn't format nearly as nicely as I'd like. Can someone set me
up so I can add to the real wiki? Thanks!
Thanks for the SheevaPlug instruction! I added it to the page as you can
see above.
I created an ebuild for easy installation Gentoo, which I filed at
http://bugs.gentoo.org/show_bug.cgi?id=371773 which includes init.d scripts
and the example config (you'll also need an ebuild for protobuf-c, filed at
http://bugs.gentoo.org/show_bug.cgi?id=371775)
For those who have problem to get protobuf-c compiled, use the
--disable-protoc flag when executing configure:
"configure --disable-protoc".
That way you don't need protobuf library anymore. Thanks Martin for the
advice.