unitreerobotics / unitree_legged_sdk

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

arm64 build error with rasppberry Pi 4 #9

Closed Shinwon-Kang closed 2 years ago

Shinwon-Kang commented 2 years ago

Scanning dependencies of target lcm_server [ 6%] Building CXX object CMakeFiles/lcm_server.dir/examples/lcm_server.cpp.o [ 12%] Linking CXX executable lcm_server /home/pi/unitree_legged_sdk2/lib/libunitree_legged_sdk_arm64.so: file not recognized: file format not recognized collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/lcm_server.dir/build.make:84: lcm_server] Error 1 make[1]: [CMakeFiles/Makefile2:90: CMakeFiles/lcm_server.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

I think the raspberry version and the sdk-Lib version are different. The raspberry pi4 version of my A1 is arm7l(arm32). But sdk3.3 lib have only arm64 version.

How can I solve this problem?

Nebula-Yong commented 2 years ago

I meet the some question,but if you want to run the example, you can run it in the folder /build,such as example_walk. If you want to run the code write by youself, you should compile you code in upper bord. the upper board is on the back of you dog. 翻译如下:我遇到了和你一样问题,如果你你只是想运行例子,你可以去/build文件夹,直接运行example_walk文件。如果你是想编译运行自己的代码,你应该在upper-board上进行编译,upper-board在你狗的后面。

TrivasZhang commented 2 years ago

Sorry, I miss to add arm32. Fix at: #https://github.com/unitreerobotics/unitree_legged_sdk/releases/tag/v3.3.1