报错信息:error: ‘CV_LOAD_IMAGE_UNCHANGED’ was not declared in this scope
原因:新版本的OpenCV修改了接口名,将CV_LOAD_IMAGE_UNCHANGED 换为了 IMREAD_UNCHANGED
解决方法:打开出错的.cc文件,添加头文件
#include <opencv2/opencv.hpp>
然后找到所有的
CV_LOAD_IMAGE_UNCHANGED
替换为
cv::IMREAD_UNCHANGED
ERROR2: 运行
./Examples/RGB-D/rgbd_tum Vocabulary/ORBvoc.txt Examples/RGB-D/TUM1.yaml data/rgbd_dataset_freiburg2_large_with_loop/ Examples/RGB-D/associations_loop.txt
报错:double
free
or corruption