-
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 通過