博客
关于我
(转)交叉编译lrzsz
阅读量:382 次
发布时间:2019-03-05

本文共 1159 字,大约阅读时间需要 3 分钟。

交叉编译lrzsz

2016-03-20

  • 系统环境
    • Distributor ID: Ubuntu
    • Description: Ubuntu 14.04.1 LTS
    • Release: 14.04
    • Codename: trusty
    1. 源码下载地址
      • http://freecode.com/projects/lrzsz/
      • https://ohse.de/uwe/software/lrzsz.html
      1. 编译工具
        • arm-linux-gcc-4.4.3-20100728.tar.gz(适用于mini2440开发板)
        1. 编译前的准备(可选)
          • tar xzvf lrzsz-0.12.20.tar.gz
          • cd lrzsz-0.12.20
          • vi arm-linux.cache
          • export CC=arm-linux-gcc
          1. 编译与安装
            • ./configure --cache-file=./arm-linux.cache --prefix=XX --host=arm-linux --build=arm-linux
            • make && make install

            编译完成后,将生成bin、man和share三个目录:

            • bin目录下包含lrB、lrx、lrz、lsb、lsx、lsz等目标文件
            • 使用ls -il查看文件权限

            lrB、lrx、lrz是同一个文件的硬链接lsb、lsx、lsz是同一个文件的硬链接

            常用参数说明

            • -b:默认为文本方式转移,强制以二进制方式处理
            • -e:对所有控制字符转义

            推荐使用脚本进行编译

            #!/bin/bashCUR_DIR=$(pwd)SRC=lrzszOBJ=arm-linuxHOST=arm-linuxINSTALL_PREFIX=${CUR_DIR}/lrzsz_outmkdir -p ${INSTALL_PREFIX}cd ${SRC}echo "ac_cv_prog_CC=${ac_cv_prog_CC='arm-linux-gcc'}" > arm-linux.cache./configure --prefix=${INSTALL_PREFIX} --host=${HOST} --build=${BUILD} --cache-file=./arm-linux.cachemake && make check && make installcd -

            参考链接

            • http://blog.csdn.net/linucos/article/details/5582979
            • http://www.tuicool.com/articles/iA3uYz
            • http://blog.163.com/seven_7_one/blog/static/16260641220101113111645638/
    你可能感兴趣的文章
    python4.0 gil_Python 并发编程系列--1、浅谈GIL历史及对多线程的影响
    查看>>
    python60行绘图程序_天底下最简单的QT画图板,就一个类,60行代码
    查看>>
    Python: AES加密与解密
    查看>>
    Python: Range() 最大尺寸;动态的还是静态的?
    查看>>
    Python: Windows下用 multiprocessing 的深坑
    查看>>
    python:Could not find platform independent libraries <prefix>解决方法
    查看>>
    Python:datetime tzinfo 时区名称文档
    查看>>
    Python:deepcopy(list) vs new_list = old_list[:]
    查看>>
    Python:Google API - 从消息中获取 mimeTypes
    查看>>
    Python:Google API - 从消息中获取 mimeTypes
    查看>>
    Python:subprocess.call,stdout to file,stderr to file,在屏幕上实时显示stderr
    查看>>
    Python:TypeError:无法连接“str“和“int“对象
    查看>>
    Python:XPath 在 ElementTree 中不可用
    查看>>
    Python:从 FTP 服务器下载文件
    查看>>
    python:从列表中创建元组列表
    查看>>
    Python:从嵌套列表中删除重复项
    查看>>
    Python:从间隔映射到值
    查看>>
    Python:使用 shell=False 的子进程调用不起作用
    查看>>
    Python:修改 PATH 环境变量的平台无关方式
    查看>>
    Python:假与 0
    查看>>