I'm a little bit new to compiling with C++, and I'm trying to get SFM
running on Ubuntu 11.04. The bootstrap script worked, and then I did
"sudo ldconfig." Then I did "make check" and it gave me this:
-------------------
thom@thom-desktop:~/opt/superfastmatch$ make check
g++ -Isrc -Itests -I/usr/local/ -Itests/utils/ -c -Wall -Wextra -
funsigned-char -m64 -mtune=native -O3 -g src/worker.cc -o src/worker.o
In file included from /usr/include/c++/4.5/bits/stl_tree.h:62:0,
from /usr/include/c++/4.5/map:60,
from src/worker.h:4,
from src/worker.cc:1:
/usr/include/c++/4.5/bits/stl_algobase.h:60:28: fatal error: bits/c+
+config.h: No such file or directory
compilation terminated.
make: *** [src/worker.o] Error 1
--------------------
Any idea what I'm doing wrong? I get the same thing with these:
make check -I/usr/include/c++/4.5/i486-linux-gnu/
make check -I/usr/include/c++/4.5/i686-linux-gnu/
There's a bits/c++config.h in each of those folders. Spidey senses
tell me I'm missing something basic...
Thanks!
Thom
thanks for trying out Superfastmatch! Looks like you might have
stumbled on this issue with GCC 4.5:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+bug/793411
http://stackoverflow.com/questions/4643197/missing-include-bits-cconfig-h-when-cross-compiling-64-bit-program-on-32-bit
Are you running a 32-bit version of Ubuntu 11.04? SFM is mainly
intended (well at least tested!) for 64-bit OS's due to its memory
requirements.
If you could paste the results of running:
uname -a
That would be really helpful. Also looks like the above bug was fixed,
so maybe give:
sudo apt-get update && sudo apt-get upgrade
a try too and run make check again
Cheers,
Donny.