加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

swftools,在ubuntu linux下的安装

发布时间:2020-12-15 18:23:51 所属栏目:百科 来源:网络整理
导读:原文章地址: http://designbye.wordpress.com/2010/02/23/installing-swftools-and-pdf2swf-on-ubuntu-linux/ ? Hello, I’ve been using swftools,mainly pdf2swf functionality,for a while now and installation always sucked. Google usually provides

原文章地址:

http://designbye.wordpress.com/2010/02/23/installing-swftools-and-pdf2swf-on-ubuntu-linux/

?

Hello,

I’ve been using swftools,mainly pdf2swf functionality,for a while now and installation always sucked. Google usually provides good results for common problems,but lack of a step-by-step installation guide is lacking.

Main site,http://swftools.org,has pretty good?wiki?for documentation and a tidy installation walkthrough. Unfortunately for me I had a ton of problems getting pdf2swf to work properly on Amazon’s AWS Ubuntu server (ami-5059be39 – ubuntu-intrepid),but fortunately for you I finally got it working and also put together this guide,which will hopefully save you some time.

Note: swftools version that comes default with aptitude would not work for me hence the need to compile from source.
Note2: this guide assumes the distro is up to date and all system libraries have been installed fromInstalling RoR on Ubuntu?post

Get necessary libraries and extract

?

[php] view plain copy print ?
  1. wget?http://swftools.org/swftools-0.9.0.tar.gz ??
  2. tar?-zvxf?swftools-0.9.0.tar.gz??
  3. wget?http://www.ijg.org/files/jpegsrc.v7.tar.gz ??
  4. tar?-zvxf?jpegsrc.v7.tar.gz??
  5. wget?http://download.savannah.gnu.org/releases-noredirect/freetype/freetype-2.3.12.tar.gz ??
  6. tar?-zvxf?freetype-2.3.12.tar.gz??
?

?

?

Note: v8 produced errors in swftools install so I grabbed v7,which worked wonderfully.

Now order of install. First we install jpeg:

[c-sharp] view plain copy print ?
  1. cd?jpegsrc.v7??
  2. sudo?./configure??
  3. sudo?make??
  4. sudo?make?install??
?

?

Freetype is a little trickier. For install you have to reset cache,set flags,run ranlib (not sure why but it wouldn’t work without for me,if you know I’d love an explanation)

[c-sharp] view plain copy print ?
  1. cd?freetype-2.3.12??
  2. rm?-f?config.cache??
  3. sudo?ranlib?/usr/local/lib/libjpeg.a??
  4. sudo?ldconfig?/usr/local/lib??
  5. sudo?LDFLAGS="-L/usr/local/lib"?CPPFLAGS="-I/usr/local/include"?./configure??
  6. sudo?make??
  7. sudo?make?install??
?

?

If you want to be able to convert pdf files into text you have to install?xpdf. Fortunately aptitude does provide us with the right libraries this time.

sudo apt-get install xpdf-reader

And now for the final step:

[c-sharp] view plain copy print ?
  1. cd?swftools-0.9.0??
  2. sudo?LDFLAGS="-L/usr/local/lib"?CPPFLAGS="-I/usr/local/include"?./configure??
  3. sudo?make??
  4. sudo?make?install??
?

Big thanks to swftools for making this possible.

Best,Mikhail

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读