安装完成交叉编译链后进行编译,出现错误“make: arm-linux-androideabi-gcc: Command not found”。。
原因为找不到编译工具,需要在系统环境变量中进行配置。
在/home/usrname/.bashrc文件中最后一行加上
export PATH=$PATH:/home/android_ndk/android_standalone_toolchain/bin
然后使用source命令,使之生效source /home/usrname/.bashrc