ubantu CMake Error at CMakeLists.txt:43 (find_package): By not providing “FindPangolin.cmake” in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by “Pangolin”, but CMake did not find one. Could not find a package configuration file provided by “Pangolin” with any of the following names: PangolinConfig.cmake pangolin-config.cmake Add the installation prefix of “Pangolin” to CMAKE_PREFIX_PATH or set “Pangolin_DIR” to a directory containing one of the above files. If “Pangolin” provides a separate development package or SDK, be sure it has been installed
在当前工程文件下打开CMakeLists.txt
在find_package(Pangolin REQUIRED)前边添加
set(Pangolin_DIR /xxx/xxx/Pangolin/build/src)
其中xxx/xxx为缺少文件的路径。
之后编译就完美解决了。