1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- libimobiledevice 编译方法
- 每个包的源码分两种版本,例如:
- git main的源码 git clone git clone http://120.24.58.247:3000/iphone/libimobiledevice.git
- git 发布分源码 wget https://github.com/libimobiledevice/libimobiledevice/releases/download/1.3.0/libimobiledevice-1.3.0.tar.bz2
- 一般情况下,如果发布git发布的源码 libimobiledevice-1.3.0.tar.bz2 符合要求,就使用发布的源码,如果不符合要求,则使用git main的源码
- https://libimobiledevice.org/ 官网所发布出来的包都是比较旧,基本不使用这里面的包
- libimobiledevice这个包现在不发布包,所以都是使用git获取源码编译
- 因为苹果的产品发布和系统更新比较频繁,所以idevicerestore 一般都是使用git源码,以获取最新支持
- apt-get install pkg-config libtool libcurl4 libcurl4-openssl-dev libssl-dev libusb-1.0-0-dev libreadline-dev libzip-dev
- wget https://github.com/libimobiledevice/libplist/releases/download/2.6.0/libplist-2.6.0.tar.bz2
- tar -jxvf ./libplist-2.6.0.tar.bz2
- cd libplist-2.6.0
- ./configure --enable-static --without-cython
- make -j4 && make install
- wget https://github.com/libimobiledevice/libimobiledevice-glue/releases/download/1.3.0/libimobiledevice-glue-1.3.0.tar.bz2
- tar -jxvf ./libimobiledevice-glue-1.3.0.tar.bz2
- cd libimobiledevice-glue-1.3.0
- ./configure --enable-static --without-cython
- make -j4 && make install
- wget https://github.com/libimobiledevice/libusbmuxd/releases/download/2.1.0/libusbmuxd-2.1.0.tar.bz2
- tar -jxvf ./libusbmuxd-2.1.0.tar.bz2
- cd libusbmuxd-2.1.0
- ./configure --enable-static
- make -j4 && make install
- wget https://github.com/libimobiledevice/libtatsu/releases/download/1.0.3/libtatsu-1.0.3.tar.bz2
- tar -jxvf ./libtatsu-1.0.3.tar.bz2
- cd libtatsu-1.0.3
- ./configure --enable-static --without-cython
- make -j4 && make install
- git clone git clone http://120.24.58.247:3000/iphone/libimobiledevice.git
- cd libimobiledevice
- ./autogen.sh --enable-static --without-cython
- make -j4 && make install
- wget http://120.24.58.247/files/iphone/usbmuxd-1.1.1.zip
- unzip usbmuxd-1.1.1.zip
- cd usbmuxd-1.1.1
- ./configure --with-systemd && make && make install && useradd usbmux && usermod -a -G plugdev usbmux && mkdir -p /var/lib/usbmux
- 在 /etc/ld.so.conf.d/aarch64-linux-gnu.conf文件追加一行: /usr/local/lib
- 并执行 ldconfig 命令
- wget https://github.com/libimobiledevice/libirecovery/releases/download/1.2.0/libirecovery-1.2.0.tar.bz2
- tar -jxvf ./libirecovery-1.2.0.tar.bz2
- cd libirecovery-1.2.0
- ./configure --enable-static --without-udev
- make -j4 && make install
- git clone http://120.24.58.247:3000/iphone/idevicerestore.git
- ./autogen.sh
- make -j4 && make install
- service usbmuxd status
|