Livox-SDK / livox_ros_driver2

Livox device driver under Ros(Compatible with ros and ros2), support Lidar HAP and Mid-360.
Other
201 stars 161 forks source link

CMakeLists.txt may be changed to find the package "livox_ros_driver2" #42

Open dasol-aero opened 1 year ago

dasol-aero commented 1 year ago

when I find the package livox_ros_driver2 in CMake, I got errors (see below).

Package 'livox_ros_driver2' exports the typesupport library 'livox_interfaces2__rosidl_typesupport_fastrtps_c' which couldn't be found

it says livox_interfaces2.

https://github.com/Livox-SDK/livox_ros_driver2/blob/4f40ab789d7305207a3b371f635b114068b68601/CMakeLists.txt#L245

therefore, the above line can be edited as LIBRARY_NAME ${LIVOX_INTERFACES} to remove this error.

after that, I can find livox_ros_driver2 without any errors.

Ecstasy-EC commented 1 year ago

I got the same problem. Your solution works! Thanks a lot.

@Livox-Infra @Livox-SDK Could you please fix this problem as soon as possible?