jpeg-6b下载地址:(google) 版本号2.12
编译流程:
jpeg-6b的编译需要libtool脚本
export PATH=<交叉编译器路径>:$PATH (将需要用的编译器加到系统的path中)
./ltconfig ltmain.sh (生成libtool工具)
./configure --enable-shared --enable-static --prefix=$PWD/output/ CC=arm-linux-gcc (--enable-shared和--enable-static选项是用来编译动态库和静库。 --prefix指定安装路径, CC就不说了)
make
make install
(在configure 的时候会出现
checking host system type... ./dummy: 1: Syntax error: word unexpected (expecting ")")
./dummy: 1: Syntax error: word unexpected (expecting ")")
ltconfig: cannot guess host type; you must specify one
Try `ltconfig --help' for more information.
的错误,但是不影响编译,等有时间在仔细看看)