unitreerobotics / unitree_legged_sdk

SDK tools for control robots.
BSD 3-Clause "New" or "Revised" License
270 stars 156 forks source link

Error compiling SDK #138

Closed colemaring closed 2 months ago

colemaring commented 2 months ago

I am running Ubuntu 22.04 on WSL and installed the dependencies using "sudo apt-get install libboost-all-dev cmake g++".

after running "make", I am getting the following error:

[ 10%] Linking CXX executable example_position /usr/bin/ld: /home/cole/unitree_legged_sdk/lib/cpp/amd64/libunitree_legged_sdk.a(loop.cpp.o): relocation R_X86_64_PC32 against undefined hidden symbol `_ZTCN5boost10wrapexceptINS_17bad_function_callEEE0_NS_16exception_detail10clone_implINS3_19error_info_injectorIS1_EEEE' can not be used when making a PIE object /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/example_position.dir/build.make:97: example_position] Error 1 make[1]: [CMakeFiles/Makefile2:91: CMakeFiles/example_position.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

Any help is appreciated!

colemaring commented 2 months ago

solved by downgrading boost to 1.54.0