-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I encountered "symbol lookup" errors at run time when launching yarprobotinterface:
ex. yarprobotinterface: symbol lookup error: /usr/local/src/robot/robotology-superbuild/build/install/lib/yarp/yarp_rpLidar4.so: undefined symbol: _ZN2sl8internal20RPLidarProtocolCodecC1Ev
and more
I solved this issue by adding the missing components to the CMakeLists.txt of rpLidar4:
set(RPLIDAR_SDK_SRCS
...
${RPLIDAR_21_SDK_ROOT}/src/sl_lidarprotocol_codec.cpp
${RPLIDAR_21_SDK_ROOT}/src/sl_async_transceiver.cpp
...
${RPLIDAR_21_SDK_ROOT}/src/dataunpacker/dataunpacker.cpp
${RPLIDAR_21_SDK_ROOT}/src/dataunpacker/unpacker/handler_capsules.cpp
${RPLIDAR_21_SDK_ROOT}/src/dataunpacker/unpacker/handler_hqnode.cpp
${RPLIDAR_21_SDK_ROOT}/src/dataunpacker/unpacker/handler_normalnode.cpp
)