在Mac OS X上使用PCL(Point Cloud Library)生成项目

 小月骄阳 发布于 2022-12-18 16:20

我安装了他们网站上建议的所有依赖项和预编译的PCL库.

安装完所有内容后,我想按照本教程生成一个项目.

执行'make'命令后,我收到几个警告和以下两个错误:

37 warnings generated.
Linking CXX executable pcd_write_test
Undefined symbols for architecture x86_64:
  "pcl::PCDWriter::writeASCII(std::__1::basic_string, std::__1::allocator > const&, sensor_msgs::PointCloud2 const&, Eigen::Matrix const&, Eigen::Quaternion const&, int)", referenced from:
      pcl::PCDWriter::write(std::__1::basic_string, std::__1::allocator > const&, sensor_msgs::PointCloud2 const&, Eigen::Matrix const&, Eigen::Quaternion const&, bool) in pcd_write.cpp.o
  "pcl::PCDWriter::writeBinary(std::__1::basic_string, std::__1::allocator > const&, sensor_msgs::PointCloud2 const&, Eigen::Matrix const&, Eigen::Quaternion const&)", referenced from:
      pcl::PCDWriter::write(std::__1::basic_string, std::__1::allocator > const&, sensor_msgs::PointCloud2 const&, Eigen::Matrix const&, Eigen::Quaternion const&, bool) in pcd_write.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [pcd_write_test] Error 1
make[1]: *** [CMakeFiles/pcd_write_test.dir/all] Error 2
make: *** [all] Error 2

有人有任何建议如何解决这个问题?

我使用的是Mac OS X 10.9.4.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有