我正在安装gtsam-3.2.1,输入后收到错误消息
$ mkdir build
$ cd build
$ cmake ..
$ make check
$ make install
并收到错误消息为
Scanning dependencies of target wrap
[ 11%] Building CXX object wrap/CMakeFiles/wrap.dir/wrap.cpp.o
[ 11%] Linking CXX executable wrap
[ 11%] Built target wrap
[ 11%] Building CXX object gtsam/CMakeFiles/gtsam.dir/inference/Ordering.cpp.o
In file included from /usr/include/boost/serialization/set.hpp:26:0,
from /home/jisang/gtsam-3.2.1/gtsam/base/FastSet.h:30,
from /home/jisang/gtsam-3.2.1/gtsam/inference/Ordering.h:24,
from /home/jisang/gtsam-3.2.1/gtsam/inference/Ordering.cpp:23:
/usr/include/boost/serialization/detail/stack_constructor.hpp: In constructor ‘boost::serialization::detail::stack_construct<Archive, T>::stack_construct(Archive&, unsigned int)’:
/usr/include/boost/serialization/detail/stack_constructor.hpp:54:9: error: ‘load_construct_data_adl’ is not a member of ‘boost::serialization’
boost::serialization::load_construct_data_adl(
^
gtsam/CMakeFiles/gtsam.dir/build.make:998: recipe for target 'gtsam/CMakeFiles/gtsam.dir/inference/Ordering.cpp.o' failed
make[2]: *** [gtsam/CMakeFiles/gtsam.dir/inference/Ordering.cpp.o] Error 1
CMakeFiles/Makefile2:719: recipe for target 'gtsam/CMakeFiles/gtsam.dir/all' failed
make[1]: *** [gtsam/CMakeFiles/gtsam.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
我该如何解决呢?