红联Linux门户
Linux帮助

Ubuntu配置swftools(Ubuntu14.04)

发布时间:2016-07-05 15:57:47来源:linux网站作者:jyLi
1.下载文件
wget http://swftools.org/swftools-0.9.0.tar.gz
tar -zvxf swftools-0.9.0.tar.gz
wget http://www.ijg.org/files/jpegsrc.v7.tar.gz
tar -zvxf jpegsrc.v7.tar.gz
wget http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz
tar -zvxf freetype-2.3.12.tar.gz
 
2.先安装jpegsrc
cd jpegsrc.v7
sudo ./configure
sudo make
sudo make install
(文件目录名字可能不同进入相应目录即可)
 
3.安装freetype
cd freetype-2.3.12
rm -f config.cache
sudo ranlib /usr/local/lib/libjpeg.a
sudo ldconfig /usr/local/lib
sudo LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
sudo make
sudo make install
 
4.如果要pdf2swf需要安装xpdf-reader
sudo apt-get install xpdf
 
5.最后安装swftools
cd swftools-0.9.0
sudo LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure
sudo make
sudo make install
 
注:
报错:g++未找到命令:
sudo apt-get install g++
报错:You need zlib to compile swftools
解决办法:
sudo apt-get install zlib1g-dev
另外多次make记得:
make clean
 
本文永久更新地址:http://www.linuxdiyf.com/linux/22097.html