Closed patrickpoirier51 closed 1 day ago
I find the the same error 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? but the another package didnot induce libary error
@patrickpoirier51 Hello! I am encountering the same errors on the same packages. Did you find a solution?
did you tried the package ros-galactic-depthimage-to-laserscan
I am also facing the same issue any ideas on how to fix it or has anyone found any work arounds?
@NemB0t Did you checkout the correct branch after cloning? That did the job for me.
Please try this: git clone [url] --branch=[branch name]
I stopped getting the CMake error once I cloned the correct branch (foxy in my case)
It worked after @Merlinecodes suggestions. Thanks!
Hello I get this error when building package
colcon build --packages-select pointcloud_to_laserscan
Starting >>> pointcloud_to_laserscan --- 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 [0.96s, exited with code 2]
I am running with: DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
cmake version 3.16.3 g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0