Solve CMake Error in CMakeLists.txt (FIND_PAKAGE):

CMake Error at src/CMakeLists.txt:5 (FIND_PACKAGE):
By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "PCL", but
CMake did not find one. Could not find a package configuration file provided by "PCL" with any of
the following names: PCLConfig.cmake
pcl-config.cmake Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR"
to a directory containing one of the above files. If "PCL" provides a
separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred!
  • To help cmake find PCLConfig.cmake adding this line if you have installed ROS Kinetic:

set(PCL_DIR "/usr/lib/x86_64-linux-gnu/cmake/pcl/PCLConfig.cmake")

before find_package(PCL 1.3 REQUIRED COMPONENTS common io)

Or run loacate PCLConfig.cmake.


Solve Complile Erorr

.../rgbd-slam-tutorial-gx-master/part IV/src/slamBase.cpp: In function ‘void computeKeyPointsAndDesp(FRAME&, std::__cxx11::string, std::__cxx11::string)’:
.../rgbd-slam-tutorial-gx-master/part IV/src/slamBase.cpp:63:17: error: ‘create’ is not a member of ‘cv::FeatureDetector {aka cv::Feature2D}’
_detector = cv::FeatureDetector::create( detector.c_str() );
^
.../rgbd-slam-tutorial-gx-master/part IV/src/slamBase.cpp:64:19: error: ‘create’ is not a member of ‘cv::DescriptorExtractor {aka cv::Feature2D}’
_descriptor = cv::DescriptorExtractor::create( descriptor.c_str() );

Bug fixed: When adding another visualization of pcl::visualization::CloudViewer.

[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
visualOdometry: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted (core dumped)

We can see Note in The CloudViewer of pcl documents

The CloudViewer class is NOT meant to be used in multi-threaded applications! Please check the documentation on :pcl:PCLVisualizer<pcl::visualization::PCLVisualizer> or read the PCLVisualizer tutorial for thread safe visualization.

The Viewer window does not be shutdown in visualOdometry.cpp.

To fix this bug: Add two line between } and pcl::io::savePCDFile(...).


References:

PCL Documents: Using PCL in your own project

最新文章

  1. Vue.js组件学习
  2. 使用HTML5的History API
  3. python的历史
  4. C语言程序设计第九次作业
  5. PHP图片裁剪_图片缩放_PHP生成缩略图
  6. 【python练习】截取网页里最新的新闻
  7. iOS初学者的AppStore上架应用&quot;菜谱大师&quot;开源了!
  8. python中的reduce(转)
  9. XCode中调整字体大小
  10. swfupload详细参数
  11. DLL入门浅析(4)——从DLL中导出类
  12. Linux怎样修改系统时间
  13. 14.4.3.3 Making the Buffer Pool Scan Resistant
  14. 定位页面元素之xpath详解以及定位不到测试元素的常见问题
  15. 学习笔记︱深度学习以及R中并行算法的应用(GPU)
  16. iOS中滤镜种类及相关介绍
  17. 树莓派3B+上运行.Net Core项目
  18. Java新知识系列 七
  19. Java ConcurrentHashMap存入引用对象时也是线程安全的
  20. PAT A1107 Social Clusters (30 分)——并查集

热门文章

  1. setcookie函数的注意事项
  2. My97DatePicker 和转换 数据库中日期(/Date(1351699200000)/) 的格式
  3. 框架Mockito
  4. spring学习十三
  5. 自定义数据校验(4)---demo3---bai
  6. 2007.1.1 string.Format
  7. 万恶的mysql deadlocks
  8. 6-EasyNetQ之订阅
  9. 记录一次从txt文件导入数据的python下的MySQL实现
  10. TCP/IP 笔记 1.2 链 路 层