ubuntu18.04点云库pcl CMakeLists
时间: 2023-08-24 20:13:38 浏览: 109
根据引用\[1\]和引用\[2\],在Ubuntu 18.04上安装pcl点云库需要执行以下步骤:
1. 执行以下命令安装libvtk7-dev库:
```
sudo apt-get install libvtk7-dev=7.1.1+dfsg1-2
```
2. 在桌面上创建一个名为pcl_test的文件夹,确保文件夹名称与引用\[2\]中的一致。
3. 确保已在Ubuntu上配置了C++环境,即安装了g++和gcc。可以使用以下命令安装:
```
sudo apt install gcc
sudo apt install g++
```
4. 创建一个CMakeLists.txt文件,内容如下:
```
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(pcl_test)
find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(pcl_test pcl_test.cpp)
target_link_libraries(pcl_test ${PCL_LIBRARIES})
```
请注意,以上步骤是基于引用\[1\]和引用\[2\]提供的信息。
#### 引用[.reference_title]
- *1* [ubuntu18.04安装pcl库](https://blog.csdn.net/m0_46371350/article/details/129801273)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [ubuntu18.04安装PCL点云库踩坑指南](https://blog.csdn.net/TLHones/article/details/124788975)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Ubuntu20.04 Ubuntu18.04安装pcl点云库](https://blog.csdn.net/weixin_53660567/article/details/119871890)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文