1. install gccc + + yum-yinstallmakegccgcc-c ++ kernel-develm4ncurses-developenssl-devel2. install freetype $ wgethttp: // nchc.dl.sourceforge.net/project/freetype/freetype
1. install gcc c ++ yum-y install make gcc-c ++ kernel-devel m4 ncurses-devel openssl-devel2. install freetype $ wget http://nchc.dl.sourceforge.net/project/freetype/freetype2/2.4.8/freetype-2.4.8.tar.bz2 $ tar x vf freetype-2.4.8.tar.bz2 $ cd freetype-2.4.8 $. /configure $ make & sudo make install
3. install stronglib
$ Wget http://www.ijg.org/files/jpegsrc.v8d.tar.gz $ tar xvf restart src.v8d.tar.gz $ cd restart SRC. v8d $. /configure $ sudo make & sudo make install4. install zlib $ wget http://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.6/zlib-1.2.6.tar.gz $ tar xvf zlib-1.2.6.tar.gz $ cd zlib-1.2.6 $. /configure $ make & sudo make install5. download the swftools-0.9.2.tar.gz and unzip the installation $ wget http://www.swftools.org/swftools-0.9.2.tar.gz?tar vxzf swftools-0.9.2.tar.gz $ cd swftools-0.9.2 $. /configure -- prefix =/usr/swftools $ make install
Possible problems modules /.. /. /types. h: 39: 2: error: # error "no way to define 64 bit integer" modules /.. /. /types. h: 42: 2: error: # error "don't know how to define 32 bit integer" modules /.. /. /types. h: 45: 2: error: # error "don't know how to define 16 bit integer" modules /.. /. /types. h: 48: 2: error: # error "don't know how to define 8 bit integer" solution: [root ~] # Ldconfig/usr/local/lib and then run [root ~] # Ldconfig/usr/local/lib [root ~] #. /Configure may also encounter problems make [1]: *** [install] Error 1 make [1]: Leaving directory '/root/swftools-0.9.2/swfs 'make: * ** [install] error 2 solution: set Makefile and Makefile under the swfs directory. -o-L in the two files in "in" is removed to make install.
6. set the environment variable vim/etc/profileexport PATH = $ PATH:/usr/swftools/bin/7.install the xpdflanguage package, download the xpdf-chinese-simplified.tar.gz file, and decompress it to/usr/share/xpdf, edit the add-to-xpdfrc file, as shown below: tar zxvf xpdf-chinese-simplified.tar.gz unzip font.zip // The mv Gbsn00lp needs to be downloaded in advance. ttf gkai00mp. ttf xpdf-chinese-simplified/CMap/cd/usr/share/xpdf-chinese-simplified vi add-to-xpdfrc content is as follows: cidToUnicode Adobe-GB1/usr/share/xpdf-chinese-simplified/Adobe-GB1.cidToUnicode unicodeMap ISO-2022-CN/usr/share/xpdf-chinese-simplified/ISO-2022-CN.unicodeMap unicodeMap EUC-CN/usr/share/xpdf /xpdf-chinese-simplified/EUC-CN.unicodeMap unicodeMap GBK/usr/share/xpdf-chinese-simplified/GBK. unicodeMap cMapDir Adobe-GB1/usr/share/xpdf-chinese-simplified/CMap toUnicodeDir/usr/share/xpdf-chinese-simplified/CMap displayCIDFontTT Adobe-GB1/usr/share/xpdf /xpdf-chinese-simplified/CMap/gkai00mp. save and exit ttf
8. test export 2swf-s export agedir =/usr/share/xpdf-chinese-simplified-T 9-s poly2bitmap-s zoom = 150-s flashversion = 9 "/opt/123.pdf "- o "/opt/test/mongo.swf"