zip/unzip源码交叉编译

一、

http://sourceforge.net/projects/infozip/files/

交叉编译:
修改zip30/unix/Makefile
CROSS=/opt/buildroot_350/build_arm/staging_dir/usr/bin/arm-linux-
CC = ${CROSS}gcc
BIND = $(CC)
AS = $(CC) -c
#CPP = /lib/cpp
CPP = ${CC} -E
E =
编译:
[guowenxue@localhost zip30]$ make -f unix/Makefile generic


修改unzip60/unix/Makefile
CROSS=/opt/buildroot_350/build_arm/staging_dir/usr/bin/arm-linux-
CC =  ${CROSS}gcc #  try using "gcc" target rather than changing this (CC and LD
LD = $(CC)# must match, else "unresolved symbol:  ___main" is possible)
AS =  ${CROSS}as
....
STRIP =  ${CROSS}strip


编译:
[guowenxue@localhost unzip60]$ make generic -f unix/Makefile 

二、
zlib官方网站:
http://www.zlib.net
上下载源码来安装zlib软件包。

目前最新版本zlib是zlib1.2.3,安装开始;
$wget http://www.zlib.net/zlib-1.2.3.tar.gz
$tar -xvzf zlib-1.2.3.tar.gz
$cd zlib-1.2.3.tar.gz
$./configure
$make
$sudo make install

交叉编译时将,MakeFile中的CC换成交叉编译环境的编译器即可。
CC=arm-linux-gcc或者CC=arm-linux-g++

linux下arm-none-linux-gnueabi交叉编译环境的建立--->http://blog.hehehehehe.cn/a/17516.htm


相关文章
  • 在ubuntu 14.04 编译 linux kernel首先下载想要的linux kernel
    https://www.kernel.org/pub/linux/kernel/v3.x/
    然后解压缩

    安裝必要的package:
    sudo apt-get install fakeroot build-essential kernel-package libncurses5 libnc
  • 用make-kpkg简化Ubuntu系统的内核编译过程通常,如果我们需要编译Linux内核,大概要经历以下几个步骤: 1、配置内核 最常用的配置内核的方法是“make menuconfig”。“make config”太简陋,“make xconfig”虽然更加直观,但需要庞大的qt类库支持,menuconfig应该是最佳的折中。 2、编译内核和模块 依次执行&ldquo
  • ubuntu编译kernel,并加载到系统的方法The purpose of this tutorial is to show you how to set up a kernel that is highly tuned for your CPU, in this case a Pentium 4 with hyperthreading for a workstation. Caution: If you do something
  • 在Ubuntu下编译内核在ubuntu下编译与安装内核,其实不只一种方法。我介绍的这个方法,编译完成后会打包成.deb包,好处是安装或者移除时,可以当作一般安装包一样去操作,减少手动操作引起的问题。

    首先是安装必要的工具
    sudoapt-get install fakeroot build-essential kernel-package libncurses5libncurs
  • linux系统替换新内核内核下载官网:https://www.kernel.org/
    解压内核:#tar xvf linux-3.12.5.tar.xz /opt

    进入内核源码目录:#cd /opt/linux-3.12.5

    这里解压到任何目录都行,本人解压到了/opt目录下。在网上看到很多朋友解压到/usr/src目录下,其实这都无所谓,因为本文



linux下arm-none-linux-gnueabi交叉编译环境的建立
CPU卡调试与发卡总结-->http://blog.hehehehehe.cn/a/17513.htm
CPU卡发卡程序与过程-->http://blog.hehehehehe.cn/a/17512.htm
arm-none-linux-gnueabi 最新下载-->http://blog.hehehehehe.cn/a/17515.htm
arm-linux-strip(能清除执行文件中不必要的标示符及调试信息,可减小文件大小而不影响正常使用)-->http://blog.hehehehehe.cn/a/9186.htm
跨平台交叉编译 Linux Kernel 的步骤 (ARM)-->http://blog.hehehehehe.cn/a/18301.htm




  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值