安装 libpng
tar -jxfv libpng-1.2.10.tar.gz2
cd libpng-1.2.10
cp scripts/makefile.linux makefile
make
make install
注意:这里的makefile不是用./configure 生成的,而是直接从script/目录里拷一个
这一步结束时,libpng被安装在/usr/local/lib下
============================
安装 freetype
tar -zxvf freetype-2.2.1.tar.gz
cd freetype-2.2.1
./configure -prefix=/usr/local/freetype make make install
这一步结束时,freetype被安装在/usr/local/lib下
============================
安装 jpeg6
建立目录
mkdir /usr/local/jpeg6
mkdir /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/include
mkdir /usr/local/jpeg6/man
mkdir /usr/local/jpeg6/man/man1
tar -zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure -prefix=/usr/local/jpeg6/ -enable-shared -enable-static
make
make install
注意:这里./configure一定要带-enable-shared参数,不然,不会生成共享库
============================