Android NDK Cross-Compile Setup
16lz
2021-01-23
按照这个文章来做就行了
http://mortoray.com/2012/08/21/android-ndk-cross-compile-setup-libpng-and-freetype/
分享一个脚本
#!/bin/shset -ePLATFORM_PREFIX=/home/hoping/Downloads/geos-3.4.2/androidPATH=$PLATFORM_PREFIX/bin:$PATHNDK_PLATFORM=android-9if [ ! -e $PLATFORM_PREFIX ]; thenmkdir $PLATFORM_PREFIXfi$NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=$NDK_PLATFORM --install-dir=$PLATFORM_PREFIX --system=linux-x86_64cp /usr/share/misc/config.* ../configure --host=arm-linux-androideabi --prefix=$PLATFORM_PREFIXmakemake install
注意其中,cp config.*这一句,这是为了更新当前脚本所使用的config.xxx文件,否则可能会报host not found错误
更多相关文章
- Android ListView下滑会报空指针异常
- 子线程新建Handler为什么会报错?——浅谈Handler、Looper、Messag
- JavaScript中当前脚本的URL
- 线程往数据库里插数据时偶尔会报错
- Android中有时候运行程序的时候会报错:An internal error occurre