以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
可以指定安装路径