build: bỏ dependency PCL không dùng
Gói không include một header pcl/ nào. Khối find_package ở đây copy từ recovery_core, mượn PCL_INCLUDE_DIRS phòng khi header robot_costmap_2d lộ dependency PCL — nhưng robot_costmap_2d cũng không include PCL ở đâu cả. Trên robot aarch64 có VTK 9.1 build kèm MPI, chuỗi PCL -> VTK -> VTK::mpi -> MPI::MPI_C 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 và target MPI::MPI_C không được tạo. Máy dev không dính vì không cài VTK cmake package, find_VTK() tìm không thấy rồi bỏ qua trong im lặng. Bỏ find_package, PCL_INCLUDE_DIRS và nhánh if(PCL_FOUND).
This commit is contained in:
@@ -80,11 +80,8 @@ if(NOT BUILDING_WITH_CATKIN)
|
|||||||
"'${PNKX_NAV_CORE_SRC_DIR}'. Set -DPNKX_NAV_CORE_SRC_DIR=<pnkx_nav_core>/src.")
|
"'${PNKX_NAV_CORE_SRC_DIR}'. Set -DPNKX_NAV_CORE_SRC_DIR=<pnkx_nav_core>/src.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(PCL QUIET COMPONENTS common io)
|
|
||||||
|
|
||||||
set(STANDALONE_INCLUDE_DIRS
|
set(STANDALONE_INCLUDE_DIRS
|
||||||
${STANDALONE_PACKAGE_INCLUDE_DIRS}
|
${STANDALONE_PACKAGE_INCLUDE_DIRS}
|
||||||
${PCL_INCLUDE_DIRS}
|
|
||||||
|
|
||||||
# These runtime packages are siblings while they still live below Test/.
|
# These runtime packages are siblings while they still live below Test/.
|
||||||
# The explicit paths keep `cmake ..` in move_base2 working before the
|
# The explicit paths keep `cmake ..` in move_base2 working before the
|
||||||
@@ -97,10 +94,6 @@ if(NOT BUILDING_WITH_CATKIN)
|
|||||||
/usr/local/include
|
/usr/local/include
|
||||||
)
|
)
|
||||||
|
|
||||||
if(PCL_FOUND)
|
|
||||||
add_definitions(${PCL_DEFINITIONS})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(PACKAGES_DIR
|
set(PACKAGES_DIR
|
||||||
robot_costmap_2d
|
robot_costmap_2d
|
||||||
robot_nav_2d_utils
|
robot_nav_2d_utils
|
||||||
|
|||||||
Reference in New Issue
Block a user