Open BolunDai0216 opened 1 year ago
I had this same problem.
The full error indicates that ld finds libunitree_joint_control_tool.so, but that particular .so is not compatible with the rest of your build:
/usr/bin/ld: skipping incompatible /home/parallels/unitree_ws/src/unitree_ros/unitree_legged_control/lib/libunitree_joint_control_tool.so when searching for -lunitree_joint_control_tool
For me, it was because I am building on an arm64 system. The build seems to be set for amd64 by default.
The appropriate arm64 .so is also provided under unitree_ros/unitree_legged_control/lib/.
You can correct this by changing the last line of unitree_ros/unitree_legged_control/CMakeLists.txt from:
target_link_libraries(unitree_legged_control ${catkin_LIBRARIES} unitree_joint_control_tool)
to:
target_link_libraries(unitree_legged_control ${catkin_LIBRARIES} unitree_joint_control_tool_arm64)
When installing unitree_ros I get the following error
Can someone help me understand what is the issue?
Thanks in advance!