libjpeg 库的安装

1、环境 ubuntu12,以root

首先下载所需的库压缩包:jpegsr9.zip

http://libjpeg.sourceforge.net/

根据说明手册上的说明

Try doing
./configure
make
make test
If that doesn't complain, do
make install

2、但是发现不行,说是缺少libtool.h文件,这时要安装函数库libtool

wget http://ftp.gnu.org/gnu/libtool/libtool-2.2.6a.tar.gz

下载好后就要进行安装

#./configure
#make
#make instal

这时又出现一个问题  /bin/sh^M:bad interpreter: No such file or directory

解决方法见http://blog.csdn.net/u014644714/article/details/53436560

解决后库函数安装完成。

另外可能会出现size_t未定义的问题,这时你在该文件加上头文件stddef.h就可以了

然后进入jpeg-6b的源码目录,然后执行以下步骤,切记!COPY到当前目录注意后面的点(.)

#cd jpeg
#cp /usr/share/libtool/config.sub .
#cp /usr/share/libtool/config.guess .

也就是把 libtool里面的两个配置文件拿来覆盖掉jpeg-6b目录下的对应文件
make clean 再重新configure

这时所有的就已经安装完成






你可能感兴趣的:(Linux)