CMake Generate step failed. Build files cannot be regenerated correctly.
I am trying to install the ros-perception/pointcloud_to_laserscan package but I am getting the following error during compilation:
--- stderr: pointcloud_to_laserscan
CMake Error at CMakeLists.txt:15 (add_library):
Target "laserscan_to_pointcloud" links to target
"rclcpp_components::component" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
CMake Error at CMakeLists.txt:15 (add_library):
Target "laserscan_to_pointcloud" links to target
"tf2_sensor_msgs::tf2_sensor_msgs" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
CMake Error at CMakeLists.txt:36 (add_library):
Target "pointcloud_to_laserscan" links to target
"rclcpp_components::component" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
CMake Error at CMakeLists.txt:36 (add_library):
Target "pointcloud_to_laserscan" links to target
"tf2_sensor_msgs::tf2_sensor_msgs" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
CMake Generate step failed. Build files cannot be regenerated correctly.
make: *** [Makefile:442: cmake_check_build_system] Error 1
---
Failed <<< pointcloud_to_laserscan [1.25s, exited with code 2]
Summary: 4 packages finished [1.46s]
1 package failed: pointcloud_to_laserscan
1 package had stderr output: pointcloud_to_laserscan