linux环境下配置PCL

配置PCL

1、新建文件pcl_dependences.sh
文件内容为:

sudo apt-get update  
sudo apt-get install git build-essential linux-libc-dev
sudo apt-get install cmake cmake-gui
sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev
sudo apt-get install mpi-default-dev openmpi-bin openmpi-common 
sudo apt-get 
  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在VSCode中配置PCL环境,可以按照以下步骤进行操作。 首先,在工程路径下的`.vscode`文件夹中找到`c_cpp_properties.json`文件,并打开它。如果该文件夹在VSCode中是隐藏的,可以通过按下`Ctrl + H`来显示隐藏文件夹。 接下来,将以下配置添加到`c_cpp_properties.json`文件中的`configurations`部分: ```json { "name": "Linux", "includePath": [ "${workspaceFolder}/**", "/usr/include/pcl-1.8" // pcl路径,根据实际情况替换版本号 ], "defines": [], "compilerPath": "/usr/bin/clang", "cStandard": "c11", "cppStandard": "c11", // 版本 >= c11 "intelliSenseMode": "linux-clang-x64" } ``` 确保将PCL的路径添加到`includePath`中。如果您是通过ROS安装的PCL,通常会在`/usr/include/`目录下找到PCL。如果不是,请根据您的安装路径进行相应修改。 保存并关闭`c_cpp_properties.json`文件后,VSCode将会识别PCL库。 如果在添加了PCL路径后仍然无法导入`io`库,可能是由于Eigen3的依赖未导入。此时,您可以继续修改`c_cpp_properties.json`文件,将Eigen3的路径添加到`includePath`中,如下所示: ```json { "name": "Linux", "includePath": [ "${workspaceFolder}/**", "/usr/include/eigen3", // eigen3路径 "/usr/include/pcl-1.8" // pcl路径,根据实际情况替换版本号 ], "defines": [], "compilerPath": "/usr/bin/clang", "cStandard": "c11", "cppStandard": "c11", // 版本 >= c11 "intelliSenseMode": "linux-clang-x64" } ``` 保存并关闭`c_cpp_properties.json`文件后,重新加载VSCode,并重新编译您的项目。 这样,您就成功配置了VSCode的PCL环境。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span>

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值