按照这个文章来做就行了

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错误

更多相关文章

  1. Android ListView下滑会报空指针异常
  2. 子线程新建Handler为什么会报错?——浅谈Handler、Looper、Messag
  3. JavaScript中当前脚本的URL
  4. 线程往数据库里插数据时偶尔会报错
  5. Android中有时候运行程序的时候会报错:An internal error occurre

随机推荐

  1. Android6.0系统增加那些新特性
  2. Android中阻止AlertDialog关闭实例代码
  3. Android(安卓)Studio的插件开发
  4. android开发框架集合简介
  5. android-自定义Seekbar
  6. Android(安卓)读取元素的数据
  7. Android(安卓)debug时一直处于waiting fo
  8. 传说是藏地密码中的海蓝兽
  9. Android(安卓)Paint类方法说明
  10. 【Android】第5章(4) 单选和复选