aindj / k-SLAM

k-SLAM ultra fast alignment and taxonomic classification of metagenomic datasets
GNU General Public License v3.0
23 stars 5 forks source link

compiling with local boost libs #16

Open g1o opened 6 years ago

g1o commented 6 years ago

Hi, i had a problem while compiling the code with just make and it turns out that the system boost was an old version and I am using a local boost (I have no sudo powers) However the makefile does not seems to include common environmental variables for this cases and I had to edit the src/subdir.mk to add a " -I ${BOOST_ROOT} " to the g++ options to use my local boost . Maybe other users will have the same issue, so I am asking to add some lines to check a few environmental variables related to a local boost or other dependences.

g1o commented 6 years ago

I forgot to test "SLAM" , well now I had: build/SLAM: error while loading shared libraries: libboost_program_options.so.1.65.1: cannot open shared object file: No such file or directory i feel like I missed something edit: what was missing was just to export the boost libs like this: export LD_LIBRARY_PATH=${BOOST_ROOT}/stage/lib/:$LD_LIBRARY_PATH

now it works