pamela-project / slambench

SLAM performance evaluation framework
https://apt.cs.manchester.ac.uk/projects/PAMELA/
Other
311 stars 84 forks source link

makefile error:undefined reference to 'boost_regex' #48

Open PrototypeNx opened 2 years ago

PrototypeNx commented 2 years ago

I tried to build slambench via Makefile, there's nothing wrong with 'make deps' , but I got a problem when I use 'make slambench' like this:

[ 71%] Linking CXX executable ../../../bin/pointcloud_aligner ../../../lib/libslambench-io.a(PointCloud.cpp.o):In function‘char const boost::re_detail_106501::re_is_set_member<char const, char, boost::regex_traits<char, boost::cpp_regex_traits >, unsigned int>(char const, char const, boost::re_detail_106501::re_set_long const, boost::re_detail_106501::regex_data<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, bool)’中: /usr/include/boost/regex/v4/cpp_regex_traits.hpp:966:undefined reference to‘boost::re_detail_106501::cpp_regex_traits_implementation::transform_primary(char const, char const) const’ /usr/include/boost/regex/v4/cpp_regex_traits.hpp:962:undefined reference to‘boost::re_detail_106501::cpp_regex_traits_implementation::transform(char const, char const*) const collect2: error: ld returned 1 exit status framework/tools/accuracy-tools/CMakeFiles/pointcloud_aligner.dir/build.make:426: recipe for target 'bin/pointcloud_aligner' failed make[3]: *** [bin/pointcloud_aligner] Error 1

I've already installed boost, and I guess the solution is adding boost_regex to the compiling environment, but I just don't know how to update the Makefile code. Thank you!