以libimobiledevice为例子
下载
https://github.com/libimobiledevice/libimobiledevice Clone最新的代码到本地
编译
1 | cd libimobiledevice |
安装
1 | make install # 或者使用 sudo make install |
备注
./autogen.sh是检查依赖包是否存在,并生成对应的configure脚本./configure是进行环境检测,并生成对应的makefile或Makefile,使用--prefix=/usr/local可以指定安装路径make,按照makefile编译工程make install,执行makefile里面的install部分,进行安装,使用--prefix=/usr/local可以指定安装路径
