码迷,mamicode.com
首页 > 其他好文 > 详细

编译问题

时间:2019-01-19 00:49:17      阅读:278      评论:0      收藏:0      [点我收藏+]

标签:tin   ror   for   file   oca   com   int   ora   cat   

版本boost1.64,出现了

In file included from /usr/local/include/boost/numeric/ublas/vector.hpp:21:0,
                 from /home/gary/catkin_ws/src/VINS-Mono/camera_model/include/camodocal/chessboard/Spline.h:20,
                 from /home/gary/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:7:
/usr/local/include/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::unbounded_array<T, ALLOC>::serialize(Archive&, unsigned int)’:
/usr/local/include/boost/numeric/ublas/storage.hpp:299:18: error: ‘make_array’ is not a member of ‘boost::serialization’
             ar & serialization::make_array(data_, s);
                  ^
/usr/local/include/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::bounded_array<T, N, ALLOC>::serialize(Archive&, unsigned int)’:
/usr/local/include/boost/numeric/ublas/storage.hpp:494:18: error: ‘make_array’ is not a member of ‘boost::serialization’
             ar & serialization::make_array(data_, s);
                  ^
In file included from /usr/local/include/boost/numeric/ublas/vector.hpp:21:0,
                 from /home/gary/catkin_ws/src/VINS-Mono/camera_model/include/camodocal/chessboard/Spline.h:20,
                 from /home/gary/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:7:
/usr/local/include/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::unbounded_array<T, ALLOC>::serialize(Archive&, unsigned int)’:
/usr/local/include/boost/numeric/ublas/storage.hpp:299:18: error: ‘make_array’ is not a member of ‘boost::serialization’
             ar & serialization::make_array(data_, s);
                  ^
/usr/local/include/boost/numeric/ublas/storage.hpp: In member function ‘void boost::numeric::ublas::bounded_array<T, N, ALLOC>::serialize(Archive&, unsigned int)’:
/usr/local/include/boost/numeric/ublas/storage.hpp:494:18: error: ‘make_array’ is not a member of ‘boost::serialization’
             ar & serialization::make_array(data_, s);
                  ^
In file included from /home/gary/catkin_ws/src/VINS-Mono/camera_model/include/camodocal/chessboard/Spline.h:22:0,
                 from /home/gary/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:7:
/usr/local/include/boost/numeric/ublas/matrix.hpp: In member function ‘void boost::numeric::ublas::c_matrix<T, M, N>::serialize(Archive&, unsigned int)’:
/usr/local/include/boost/numeric/ublas/matrix.hpp:5977:18: error: ‘make_array’ is not a member of ‘boost::serialization’
             ar & serialization::make_array(data_, N);
                  ^
In file included from /home/gary/catkin_ws/src/VINS-Mono/camera_model/include/camodocal/chessboard/Spline.h:22:0,
                 from /home/gary/catkin_ws/src/VINS-Mono/camera_model/src/chessboard/Chessboard.cc:7:
/usr/local/include/boost/numeric/ublas/matrix.hpp: In member function ‘void boost::numeric::ublas::c_matrix<T, M, N>::serialize(Archive&, unsigned int)’:
/usr/local/include/boost/numeric/ublas/matrix.hpp:5977:18: error: ‘make_array’ is not a member of ‘boost::serialization’
             ar & serialization::make_array(data_, N);
                  ^
VINS-Mono/camera_model/CMakeFiles/Calibration.dir/build.make:86: recipe for target ‘VINS-Mono/camera_model/CMakeFiles/Calibration.dir/src/chessboard/Chessboard.cc.o‘ failed
make[2]: *** [VINS-Mono/camera_model/CMakeFiles/Calibration.dir/src/chessboard/Chessboard.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....

 

在出问题的文件Chessboard.hpp里面加上如下头文件#include <boost/serialization/array_wrapper.hpp>即可解决问题。

编译问题

标签:tin   ror   for   file   oca   com   int   ora   cat   

原文地址:https://www.cnblogs.com/gary-guo/p/10290182.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!