ERROR :A-LOAM/src/kittiHelper.cpp:93:64: error: ‘IMREAD_GRAYSCALE’ was not declared in this scope

最近想学习一下激光SLAM, 计划是先跑代码再看论文,于是从github上找到代码进行编译。https://github.com/HKUST-Aerial-Robotics/A-LOAM ,编译过程中遇到问题如下图所示。
ERROR :A-LOAM/src/kittiHelper.cpp:93:64: error: ‘IMREAD_GRAYSCALE’ was not declared in this scope_第1张图片
原因在于找不到定义,在代码中加入如下代码,

using namespace cv;

重新编译:编译通过~

ERROR :A-LOAM/src/kittiHelper.cpp:93:64: error: ‘IMREAD_GRAYSCALE’ was not declared in this scope_第2张图片

你可能感兴趣的:(ROS,无人驾驶)