Catkin_make Error in ros-drivers / velodyne
- OS and Version: Ubuntu 18.04
- ROS Version: melodic
Hello guys,
I tried to install velodyne package following these steps
http://wiki.ros.org/velodyne/Tutorial...
but I have the following error
$rosdep install --from-paths src --ignore-src --rosdistro melodic -y
error the following packages/stacks could not have their rosdep keys resolved to system dependencies:
lio_sam: Cannot locate rosdep definition for [GTSAM]
rslidar_driver:Cannot locate rosdep definition for [rslidar_input]
Can anyone help me to solve this ?
Thanks in advance!
EDIT
If i catkin_make without velodyne's repo catkin_make works perfectly
Im trying to understand if the error above is the reason that i have the error in the catkin_make or not.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:11 (add_library):
add_library cannot create target "driver_nodelet" because another target
with the same name already exists. The existing target is a shared library
created in source directory
"/home/geo/catkin_ws/src/ros_rslidar/rslidar_driver/src". See
documentation for policy CMP0002 for more details.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "velodyne_input" to target "driver_nodelet"
which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/opt/ros/melodic/lib/libdiagnostic_updater.so"
to target "driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library
"/opt/ros/melodic/lib/libdynamic_reconfigure_config_init_mutex.so" to
target "driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/opt/ros/melodic/lib/libnodeletlib.so" to
target "driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/opt/ros/melodic/lib/libbondcpp.so" to target
"driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/usr/lib/x86_64-linux-gnu/libuuid.so" to
target "driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/opt/ros/melodic/lib/libclass_loader.so" to
target "driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/usr/lib/libPocoFoundation.so" to target
"driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/usr/lib/x86_64-linux-gnu/libdl.so" to target
"driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/opt/ros/melodic/lib/libroslib.so" to target
"driver_nodelet" which is not built in this directory.
CMake Error at velodyne/velodyne_driver/src/driver/CMakeLists.txt:13 (target_link_libraries):
Attempt to add link library "/opt/ros/melodic/lib/librospack.so" to target
"driver_nodelet" which is ...
While I haven't pulled down the repo to get a better look, are you building anything extra inside of the catkin_ws that isn't from the velodyne repository? Those don't look like velodyne packages that are causing issues
I second @404RobotNotFound this seems unrelated to velodyne, as the error message is from other packages (
lio_sam
andrslidar_driver
to be specific). They are depending on other packages where there is no registered rosdep key, so you'd need those as source pacakges in your workspace.Hello @404RobotNotFound,
yeah, of course I have more packages inside, because I work in more than one projects and with more than one lidars. It's first time though that I have that error when i catkin_make the workspace. Probably they have something common or something else, because until i git velodyne's repo catkin_make works perfectly.
@mgruhler hello my friend, is there any way this error be the reason for the catkin_make fail ?