编译 ijg JPEG V8 库 GIF 库

libjpeg-turbo-1.2.1太老了,不支持,从内存解压,这里编译支持 jpeg_mem_src 的 JPEG V9

wget http://www.ijg.org/files/jpegsrc.v9b.tar.gz
tar zxvf jpegsrc.v9b.tar.gz
cd jpeg-9b
./configure --prefix=$PWD/tmp/ --host=arm-linux
cp tmp/include/* /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include/ -rf
cp tmp/lib/* /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/ -rfd
cp tmp/lib/*so* /home/nfsroot/2440/lib -rdf

 

GIFlib 编译
wget http://downloads.sourceforge.net/giflib/giflib-5.1.4.tar.bz2
tar xvf giflib-5.1.4.tar.bz2
cd giflib-5.1.4

./configure --prefix=$PWD/tmp --host=arm-linux
cp tmp/include/* /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include/ -rf
cp tmp/lib/* /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/ -rfd
cp tmp/lib/*so* /home/nfsroot/2440/lib -rdf

gif 使用文档 http://giflib.sourceforge.net/gif_lib.html

posted @ 2017-06-07 16:34  宁次  阅读(673)  评论(0编辑  收藏  举报