I am running Ubuntu 22.04 on WSL and installed the dependencies using "sudo apt-get install libboost-all-dev cmake g++".
Boost version 1.74.0.3ubuntu7
cmake version 3.2.2.1
g++ version 11.4.0
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
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!