boteye-master编译错误
铁果1 发布于2018-02-05 浏览:2027 回复:2
0
收藏
运行make,xp_sensor_logger.cpp编译出现如下错误:
[ 91%] Built target cam_calibration
/home/fang/XP_release/boteye-master/apps/xp_sensor_logger/xp_sensor_logger.cpp:55:12: error: expected constructor, destructor, or type conversion before ‘(’ token
 DEFINE_bool(auto_gain, false, "turn on auto gain");
            ^
...一系列DEFINE_*()函数错误
            ^
/home/fang/XP_release/boteye-master/apps/xp_sensor_logger/xp_sensor_logger.cpp: In function ‘void verify_calibration(const std::vector >&, const std::vector >&, const XP::DuoCalibParam&, const cv::Mat&, const cv::Mat&, cv::Mat*, cv::Mat*)’:
/home/fang/XP_release/boteye-master/apps/xp_sensor_logger/xp_sensor_logger.cpp:154:7: error: ‘FLAGS_calib_verify’ was not declared in this scope
   if (FLAGS_calib_verify) {
       ^
...一系列FLAGS_*_*未定义错误

make[2]: *** [xp_sensor_logger/CMakeFiles/xp_sensor_logger.dir/xp_sensor_logger.cpp.o] 错误 1
make[1]: *** [xp_sensor_logger/CMakeFiles/xp_sensor_logger.dir/all] 错误 2
make: *** [all] 错误 2
请问,有人知道怎么解决这个问题吗?
收藏
点赞
0
个赞
共2条回复 最后由铁果1回复于2018-02-05
#2铁果1回复于2018-02-05

造成的原因:源程序.../app/xp_sensor_logger/xp_sensor_logger.cpp,没有包含#include 。

0
快速回复
TOP
切换版块