、说明
因为Android没有glib库,而gcc默认为动态编译,为了使程序能在开发板上运行,我们自己的C程序需要采用静态编译。
ghostscript的下载地址为http://downloads.ghostscript.com/public/。我用的是ghostscript-9.04。
二、网上常见的方法
1.获取源代码
解压ghostscript-9.04.tar.gz ,并将解压后的ghostscript-9.04目录拷贝成ghostscript-9.04-pc和ghostscript-9.04-arm两分,分别用于编译PC主机上的gs和arm-linux上的gs。
命令:
1 |
$ tar zxvf tar .gz |
2 |
$ cp ghostscript-9.04 |
3 |
$ mv ghostscript-9.04 |
2.编译PC主机上的gs
命令:
1 |
$ cd ghostscript-9.04-pc/ |
2 |
$./configure |
|