From 6708cdf702b64d95748882a02ab8b315c3513e9a Mon Sep 17 00:00:00 2001 From: duongtd Date: Tue, 25 Aug 2026 12:38:58 +0700 Subject: [PATCH] =?UTF-8?q?build:=20thu=20h=E1=BA=B9p=20PCL=20c=C3=B2n=20c?= =?UTF-8?q?omponent=20common?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pcl_convert.h chỉ chạm tới PCLPointCloud2, PCLImage và conversions.h — tất cả đều nằm trong pcl_common. find_package(PCL REQUIRED) không kèm components lấy cả bộ, gồm io và visualization. Trên robot aarch64 có VTK 9.1 build kèm MPI, component io kéo VTK và làm CMake gãy ở generate step: root project khai LANGUAGES CXX nên find_package(MPI COMPONENTS C) không bao giờ thành công, target MPI::MPI_C không được tạo còn VTK::mpi lại trỏ vào nó. Giữ PCL chứ không bỏ hẳn như các gói khác vì pcl_convert.h có consumer thật: amr_control/src/sensor_converter.cpp và depth_local_costmap_noetic_test. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ff202d..19a006b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,11 @@ else() # ======================================================== # Catkin specific configuration # ======================================================== - find_package(PCL REQUIRED) + # pcl_common is enough: pcl_convert.h only touches PCLPointCloud2, PCLImage + # and conversions.h. Asking for all of PCL drags in io -> VTK -> Qt, and on a + # VTK build that carries MPI that fails outright unless C is an enabled + # language, which this project does not enable. + find_package(PCL REQUIRED COMPONENTS common) find_package(catkin REQUIRED COMPONENTS robot_geometry_msgs robot_sensor_msgs