GTSAM安装失败

时间:2019-03-16 03:39:55

标签: cmake installation install make-install

我曾经尝试过并在Google上进行搜索,但是对此没有解决方案。 有人可以告诉我如何解决这个问题。 机器:ubuntu 16.04

ipin@LT-061-2017-OCT:~/gtsam/gtsam-3.2.1/build$ make install
    [  2%] Built target CppUnitLite
    [  9%] Built target wrap_lib
    [ 11%] Built target wrap
    [ 14%] 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/ipin/gtsam/gtsam-3.2.1/gtsam/base/FastSet.h:30,
                     from /home/ipin/gtsam/gtsam-3.2.1/gtsam/inference/Ordering.h:24,


        from /home/ipin/gtsam/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(Archiv
    e&, 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:974: 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

1 个答案:

答案 0 :(得分:0)

该错误是由于缺少

#include <boost/serialization/serialization.hpp>

pull-request已将其固定在gstam中。