Error:
CMake Warning at CMakeLists.txt:189 (FIND_PACKAGE):
By not providing "FindRapidJSON.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"RapidJSON", but CMake did not find one.
Could not find a package configuration file provided by "RapidJSON" with
any of the following names:
RapidJSONConfig.cmake
rapidjson-config.cmake
Add the installation prefix of "RapidJSON" to CMAKE_PREFIX_PATH or set
"RapidJSON_DIR" to a directory containing one of the above files. If
"RapidJSON" provides a separate development package or SDK, be sure it has
been installed.
Ref 安装RapidJSON,单独安装Line3Dpp
/home/k402/EAO-SLAM/Thirdparty/Line3Dpp/line3D.cc: In static member function ‘static void L3DPP::Line3D::undistortImage(const cv::Mat&, cv::Mat&, const Vector3d&, const Vector2d&, const Matrix3d&)’:
/home/k402/EAO-SLAM/Thirdparty/Line3Dpp/line3D.cc:106:9: error: ‘initUndistortRectifyMap’ is not a member of ‘cv’
cv::initUndistortRectifyMap(cvK,cvDistCoeffs,I,cvK,cv::Size(inImg.cols,
^
/home/k402/EAO-SLAM/Thirdparty/Line3Dpp/line3D.cc: In member function ‘L3DPP::DataArray<float4>* L3DPP::Line3D::detectLineSegments(unsigned int, const cv::Mat&)’:
/home/k402/EAO-SLAM/Thirdparty/Line3Dpp/line3D.cc:256:40: error: ‘CV_RGB2GRAY’ was not declared in this scope
cv::cvtColor(image,imgGray,CV_RGB2GRAY);
^
CMakeFiles/line3Dpp.dir/build.make:62: recipe for target 'CMakeFiles/line3Dpp.dir/line3D.cc.o' failed
当opencv多版本共存,指定路径,在CmakeList.txt中加入:
find_package(OpenCV 3.4.1 REQUIRED HINTS /usr/local/opencv3)
Error:段错误,跑不完整
ref:github
你可以试试将所有 CMakeLists.txt (包括第三方库)中的 -march=native 删掉,重新编译试试。
|