基本参考自 http://blog.csdn.net/q1302182594/article/details/42048031,只是根据目标平台做了微调。
编写一个shell脚本如下:
- #!/bin/bash
- PREFIX=~/workspace/libgd
- HOST=arm-linux-androideabi
- ./configure --prefix=$PREFIX --host=$HOST
将上述脚本内容保存为configure.sh,并使用以下命令使其具有可执行权限:
- ubuntu $ chmod +x configure.sh
执行configure.sh脚本进行配置:
- ubuntu $ ./configure.sh
结果如下:
扫描二维码关注公众号,回复:
326087 查看本文章
![](/qrcode.jpg)
- ** Configuration summary for libgd 2.1.0:
- Support for Zlib: no
- Support for PNG library: yes
- Support for JPEG library: no
- Support for VPX library: yes
- Support for TIFF library: yes
- Support for Freetype 2.x library: yes
- Support for Fontconfig library: yes
- Support for Xpm library: yes
- Support for pthreads: no
4、头文件路径
使用make命令,就可以进行编译:
- ubuntu $ make