我安装了他们网站上建议的所有依赖项和预编译的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.