unitreerobotics / unitree_ros_to_real

107 stars 94 forks source link

Build Error: /usr/bin/ld: cannot find -lunitree_legged_sdk_ #57

Open developermastermind07 opened 1 year ago

developermastermind07 commented 1 year ago

Unitree_legeed_sdk : 3.2.0 Unitree_ros_to_real : 3.2.1

While compiling Unitrees_ros_to_real i am getting following error,

[ 82%] Generating C++ code from unitree_legged_msgs/HighState.msg [ 82%] Built target unitree_legged_msgs_generate_messages_cpp Scanning dependencies of target unitree_legged_msgs_generate_messages [ 82%] Built target unitree_legged_msgs_generate_messages Scanning dependencies of target rosgraph_msgs_generate_messages_py [ 82%] Built target rosgraph_msgs_generate_messages_py Scanning dependencies of target roscpp_generate_messages_cpp [ 82%] Built target roscpp_generate_messages_cpp Scanning dependencies of target roscpp_generate_messages_eus [ 82%] Built target roscpp_generate_messages_eus Scanning dependencies of target rosgraph_msgs_generate_messages_nodejs [ 82%] Built target rosgraph_msgs_generate_messages_nodejs Scanning dependencies of target roscpp_generate_messages_py [ 82%] Built target roscpp_generate_messages_py Scanning dependencies of target roscpp_generate_messages_nodejs [ 82%] Built target roscpp_generate_messages_nodejs Scanning dependencies of target rosgraph_msgs_generate_messages_cpp [ 82%] Built target rosgraph_msgs_generate_messages_cpp Scanning dependencies of target rosgraph_msgs_generate_messages_eus [ 82%] Built target rosgraph_msgs_generate_messages_eus Scanning dependencies of target rosgraph_msgs_generate_messages_lisp [ 82%] Built target rosgraph_msgs_generate_messages_lisp Scanning dependencies of target roscpp_generate_messages_lisp [ 82%] Built target roscpp_generate_messages_lisp Scanning dependencies of target velocity_lcm [ 84%] Building CXX object unitree_ros_to_real/unitree_legged_real/CMakeFiles/velocity_lcm.dir/src/exe/velocity_mode.cpp.o [ 85%] Linking CXX executable /home/mahesh/catkin_ws/devel/lib/unitree_legged_real/velocity_lcm /usr/bin/ld: cannot find -lunitree_leggedsdk collect2: error: ld returned 1 exit status make[2]: [unitree_ros_to_real/unitree_legged_real/CMakeFiles/velocity_lcm.dir/build.make:101: /home/mahesh/catkin_ws/devel/lib/unitree_legged_real/velocity_lcm] Error 1 make[1]: [CMakeFiles/Makefile2:1564: unitree_ros_to_real/unitree_legged_real/CMakeFiles/velocity_lcm.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 Invoking "make -j1" failed

Someone please help

xyq1223 commented 1 year ago

Hello,we recommend that you download the latest version of the SDK, recompile it and try it again. https://github.com/unitreerobotics/unitree_legged_sdk

Boogard2021 commented 6 months ago

Hello, @xyq1223, I have the same errors. I selected this versions (Unitree_legeed_sdk : 3.2.0 Unitree_ros_to_real : 3.2.1) due to use of A1 robot. But for compiling I received the same error. Do you have any idea about it?