Fork me on GitHub

autogen编译安装包和软件

libimobiledevice为例子

下载

https://github.com/libimobiledevice/libimobiledevice Clone最新的代码到本地

编译

1
2
3
4
cd libimobiledevice
./autogen.sh
./configure
make

安装

1
make install  # 或者使用 sudo make install

备注

  1. ./autogen.sh 是检查依赖包是否存在,并生成对应的configure脚本
  2. ./configure 是进行环境检测,并生成对应的makefileMakefile ,使用 --prefix=/usr/local可以指定安装路径
  3. make,按照makefile编译工程
  4. make install,执行makefile里面的install部分,进行安装,使用--prefix=/usr/local可以指定安装路径
-------------本文结束感谢您的阅读-------------

本文作者:乔羽 / FightingJoey

发布时间:2018年10月15日 - 17:14

最后更新:2018年11月16日 - 19:36

原始链接:https://fightingjoey.github.io/2018/10/15/记录/autogen编译安装包和软件/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。

坚持原创技术分享,您的支持将鼓励我继续创作!