交叉编译场景分析(arm-linux)(三)--编译zlib
来源:互联网 发布:isp图像处理算法 编辑:程序博客网 时间:2024/05/18 04:38
转载时请注明出处:http://blog.csdn.net/absurd
1. 基本信息:
软件名称
zlib
功能简述
zlib 一个压缩解压程序库
下载地址
http://www.zlib.net/
软件版本
zlib-1.2.3.tar.gz
依赖关系
默认
前置条件
源文件位置:$(WORK_DIR)/zlib
2. 过程分析
下载的稳定版本,configure已经存在,直接进行配置:
[root@linux zlib-1.2.3]# ./configure --host=$ARCH-linux --prefix=$ROOTFS_DIR/usr
出现了如下错误:
usage:
configure [--shared] [--prefix=PREFIX] [--exec_prefix=EXPREFIX]
[--libdir=LIBDIR] [--includedir=INCLUDEDIR]
看来此configure非彼configure也,打开一看,果然不是autoconf系列的,又是一个貌合神离的东东。OK,按它的用法说明做吧,但问题是如何指定交叉编译器呢,按照惯例,设置环境变量CC试试看:
[root@linux zlib-1.2.3]# export CC=$ARCH-linux-gcc
[root@linux zlib-1.2.3]# ./configure -shared --prefix=$ROOTFS_DIR/usr
OK,配置成功,编译:
[root@linux zlib-1.2.3]# make && make install
OK,编译成功。
3. 构建处方
l zlib.mk
ZLIB_DIR="zlib-1.2.3"
all: clean config build
config:
@cd $(ZLIB_DIR) && /
export CC=$$ARCH-linux-gcc && /
./configure --prefix=$$ROOTFS_DIR/usr/local --shared && /
echo "config done"
build:
@cd $(ZLIB_DIR) && /
make && make install && /
echo "build done"
clean:
@cd $(ZLIB_DIR) && /
if [ -e Makefile ]; then make distclean; fi && /
echo "clean done"
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- 交叉编译场景分析(arm-linux)--序
- 交叉编译场景分析(arm-linux)--序
- 交叉编译场景分析(arm-linux)--序
- 交叉编译场景分析(arm-linux)--序
- 交叉编译场景分析(Arm-Linux)
- 交叉编译场景分析(arm-linux)
- 交叉编译场景分析(arm-linux)--序
- 交叉编译场景分析(arm-linux)
- 交叉编译场景分析(arm-linux)--序
- 交叉编译场景分析(arm-linux)(二)--编译tslib
- 交叉编译场景分析(arm-linux)(六)--编译TinyX
- 很高兴我今天加入CSDN社群
- 手机中保留的短信
- Cobra —— super dis
- java程序员面试必备
- 下海致富陶朱公
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- “烂笔头儿”的前言
- 如何创建和使用Web服务
- 交叉编译场景分析(arm-linux)(四)--编译readline和ncurses
- 今天差点就被黑中介给骗了!!!!!!后怕中。。。
- 汇总c#.net常用函数和方法集
- jdk5.0新特性
- Hibernate自定义类型
- treeview绑定硬盘数据文件