1.  cannot open shared object file报错

OS: Kali linux 
Compile toolchian: arm-none-linux-gnueabi

# arm-none-linux-gnueabi-gcc hook.c 
arm-linux-gcc 交叉编译报错:
error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

这个问题就是你64位的操作系统没有32位的类库,而android的SDK是要32位支持的,如果没装就只能是报上面的错!

解决:
# sudo apt-get update
# sudo apt-get install lib32z1

这时候编译:arm-none-linux-gnueabi-gcc hook.c 通过

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐