PCL报错
error: #error PCL requires C++14 or above
解决办法:在CMakeLists.txt中添加如下代码
ADD_COMPILE_OPTIONS(-std=c++11 )
ADD_COMPILE_OPTIONS(-std=c++14 )
set( CMAKE_CXX_FLAGS "-std=c++14 -O3" )
opencv报错
opencv/cv.hpp: 没有那个文件或目录 #include <opencv/cv.hpp>
解决办法:
将#include <opencv/cv.hpp>替换为
#include <opencv2/opencv.hpp>