#!/bin/sh # 说明:本脚本是动态编译openssl # 参考:http://blog.csdn.net/caoyhok/article/details/7382862 DESTDIR=/work/rootfs/rootfs_qtopia_qt4 # 1.下载源码 wget http://www.openssl.org/source/openssl-1.0.0g.tar.gz && # 2.解压并打开 tar xvzf openssl-1.0.0g.tar.gz && cd openssl-1.0.0g && # 3.配置 ./config no-asm shared --prefix=/ && # 4.修改交叉工具链 # 62行CC= gcc 修改为CC= arm-linux-gcc sed -i '62s/CC= gcc/CC= arm-linux-gcc/' ./Makefile && # 63行CFLAG中删除-march=pentium sed -i '63s/-march=pentium//' ./Makefile && # 69行AR= ar修改为AR= arm-linux-ar sed -i '69s/AR= ar/AR= arm-linux-ar/' ./Makefile && # 70行RANLIB= /usr/bin/ranlib修改为RANLIB= arm-linux-ranlib sed -i '70s/RANLIB= \/usr\/bin\/ranlib/RANLIB= arm-linux-ranlib/' ./Makefile && # 5.编译并安装 (Openssl does not support DESTDIR) # 一般只需要库文件,可以采用拷贝的方法make install会安装一些无用的东西 make && make install INSTALL_PREFIX=$DESTDIR
wget http://lion-winebuilder.googlecode.com/files/tiff-3.9.5.tar.gz tar xvzf tiff-3.9.5.tar.gz cd tiff-3.9.5 sh autogen.sh ./configure CC=arm-linux-gnu-gcc CXX=arm-linux-gnu-g++ --prefix=$PWD/_install --host=arm-linux make && make install
#!/bin/sh # 1.下载源码 项目地址:http://web.mit.edu/~kerberos/dist/historic.html wget http://web.mit.edu/~kerberos/dist/krb5/1.9/krb5-1.9-signed.tar && # 2.解压 tar xvf krb5-1.9-signed.tar && tar xvzf krb5-1.9.tar.gz && # 3.进入源码目录 cd krb5-1.9/src && # 4.配置 ./configure CC=arm-linux-gcc --host=arm-linux || echo krb5_cv_attr_constructor_destructor=yes>linux-cache && ./configure CC=arm-linux-gcc --host=arm-linux || echo krb5_cv_attr_constructor_destructor=yes>linux-cache && ./configure CC=arm-linux-gcc --host=arm-linux --cache-file=linux-cache || echo ac_cv_func_regcomp=yes>>linux-cache && ./configure CC=arm-linux-gcc --host=arm-linux --cache-file=linux-cache || echo ac_cv_printf_positional=yes>>linux-cache && ./configure CC=arm-linux-gcc --host=arm-linux --cache-file=linux-cache && # 3.注释一行代码 Fix:Don't know how to do unload-time finalization for this configuration. sed -i '397s/^/\/\//g' ./include/k5-platform.h && # 7.编译并安装 make && make install DSTROOT=/work/rootfs/rootfs_qtopia_qt4 && echo "krb5 build install ok!"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
#foo2zijs build shell
#time : 2014-02-27
#author : kangear
# 1.下载源码
wget -O foo2zjs.
tar
.gz http:
//foo2zjs
.rkkda.com
/foo2zjs
.
tar
.gz &&
# 2.解决源码
tar
xvzf foo2zjs.
tar
.gz &&
# 3.进入目录
cd
foo2zjs &&
# 4.静态 CFLAG+=-static
sed
-i
'294s/-O2 -Wall/-O2 -static -Wall/'
.
/Makefile
&&
# 5.编译PC版本(可选)
# make &&
# 6.编译
make
CC=arm-linux-gcc
|
# 1.jpeg源码包通过下面这个网址下载 wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz && # 2.解压源码包 tar xvf jpegsrc.v8b.tar.gz && cd jpeg-8b && # 3.配置源码 ./configure --host=arm-linux --enable-static && # 4.编译 make# && # 5.安装 # make install
#!/bin/sh # 说明:本脚本下载并打包GS所需字库 # 版本:2013-01-17 # 将打包好的字库放到 # Android: /system/usr/share/ghostscript/8.15/Resource/ 中解压 # Linux : /usr/local/share/ghostscript/8.15/Resource/ 中解压 # * 解决了常用中英文打印所需的字库 DESTDIR=${PWD}/system # 1.下载gs-fonts源码 项目地址:http://sourceforge.net/projects/gs-fonts/ wget http://superb-dca2.dl.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz && # 2.解压gs-fonts源码 tar xvzf ghostscript-fonts-std-8.11.tar.gz && # 3.下载gs-9.04,获取其中的字库 项目地址:http://sourceforge.net/projects/ghostscript/files/GPL%20Ghostscript/9.04/ wget http://softlayer-ams.dl.sourceforge.net/project/ghostscript/GPL%20Ghostscript/9.04/ghostscript-9.04.tar.bz2 && # 4.解压gs-9.04源码 tar xvjf ghostscript-9.04.tar.bz2 && # 5.建立字库目录 Font test -d ./Font && rm -rf ./Font ; mkdir ./Font && # 6.拷贝字库到Font目录中 # 拷贝gs-fonts cp -rf fonts/* ./Font && # 拷贝gs-9.04的字库 cp -rf ghostscript-9.04/Resource/Font/* ./Font && # 7.打包字库 tar cvzf Font.tar.gz Font && echo "Fonts ok!"
#!/bin/sh #foo2zijs build shell #time : 2014-02-27 #author : kangear # 1.下载源码(网址有时会被墙) #wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz && # 2.解决源码 tar xvzf foo2zjs.tar.gz && # 3.进入目录 cd foo2zjs && # 4.静态 CFLAG+=-static sed -i '294s/-O2 -Wall/-O2 -static -Wall/' ./Makefile && # 5.编译PC版本(可选) # make && # 6.编译 make CC=arm-linux-gcc
#!/bin/sh # 1.下载地址:http://sourceforge.net/projects/gimp-print/files/gutenprint-5.2/5.2.9/ #wget http://softlayer-ams.dl.sourceforge.net/project/gimp-print/gutenprint-5.2/5.2.9/gutenprint-5.2.9.tar.bz2 && # 2.解压 tar xvjf gutenprint-5.2.9.tar.bz2 && # 3.分别拷贝为PC版本和ARM版本 cp -r gutenprint-5.2.9 gutenprint-5.2.9-arm && mv gutenprint-5.2.9 gutenprint-5.2.9-pc && # 4.编译PC版本 cd gutenprint-5.2.9-pc && ./configure && make && cd ../ && # 5.配置arm版本 cd gutenprint-5.2.9-arm && ./configure --host=arm-linux --target=arm-linux --build=i686-linux CC=arm-linux-gcc CXX=arm-linux-g++ LD=arm-linux-ld RANLIB=arm-linux-ranlib AR=arm-linux-ar --with-gimp2=no --without-gimp2 --enable-cups-ppds --enable-cups-level3-ppds --without-foomatic --disable-libgutenprintui2 --prefix=/system/usr/ && # 以下注释不做: #--with-ghostscript IJS_CFLAGS="-static" IJS_LIBS="-static -lijs" && #--enable-static[=PKGS] #IJS_LIBS #IJS_CFLAGS #手动修改./src/ghost/Makefile去掉IJS_LIBS中的-L/usr/lib。 # 到这里。 # 6.拷贝PC版本工具 make || cp ../gutenprint-5.2.9-pc/src/xml/.libs/extract-strings ./src/xml/.libs/ && make || cp ../gutenprint-5.2.9-pc/src/cups/cups-genppd.5.2 ./src/cups/ && # 7.静态编译ijsgutenprint make || cd src/ghost/ && arm-linux-gcc -Disfinite=finite -O6 -static -o ijsgutenprint.5.2 ijsgutenprint.o ../../src/main/.libs/libgutenprint.a -lijs /opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/lib/libgcc.a /opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root/lib/libm.a && cd - && # 8.安装 make install DESTDIR=${PWD}/_install && # 9.打包 tar cvzf system-ijsgutenprint.tar.gz system/usr/share/gutenprint/5.2/xml/ && echo "gutenprint build install ok!"
#!/bin/sh # 说明:本脚本是交叉(ARM)编译hpijs-2.1.4 DESTDIR=${PWD}/_install # 1.下载源码 项目地址:http://sourceforge.net/projects/hpinkjet/files/ wget http://superb-dca2.dl.sourceforge.net/project/hpinkjet/hpijs/2.1.4/hpijs-2.1.4.tar.gz && # 2.解压源码 tar xvzf hpijs-2.1.4.tar.gz && cd hpijs-2.1.4 && # 3.配置 说明:CXXFLAGS默认是"-g -O2",这里添加-static以静态编译hpijs ./configure --host=arm-linux --target=arm-linux --build=i686-linux CC=arm-linux-gcc CXX=arm-linux-g++ LD=arm-linux-ld RANLIB=arm-linux-ranlib AR=arm-linux-ar CXXFLAGS="-static -g -O2" --prefix=/ LDFLAGS=-L../jpeg-8b/.libs && # 4.修正语法错误 dj3320.cpp第403行和registry.cpp第249行 开头的char改为const char sed -i '249s/\tchar\t/\tconst char\t/' registry.cpp && sed -i '403s/ char/ const char/' dj3320.cpp && # 5.编译并安装 make && make install DESTDIR=$DESTDIR # 6.hpijs支持的打印机型号:hpijs-2.1.4/ppd查看. # MDL MFG名字都在ppd文件中.
关于打印进度(O) GPL Ghostscript 9.04 (2011-08-05) Copyright (C) 2011 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 4. Page 1 Page 2 Page 3 Page 4 Ghostscript输出的并不实时,可以使用每次读一页的方法,同样图片也可以每次读几分之一。