imobiledevice编译 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. libimobiledevice 编译方法
  2. 每个包的源码分两种版本,例如:
  3. git main的源码 git clone git clone http://120.24.58.247:3000/iphone/libimobiledevice.git
  4. git 发布分源码 wget https://github.com/libimobiledevice/libimobiledevice/releases/download/1.3.0/libimobiledevice-1.3.0.tar.bz2
  5. 一般情况下,如果发布git发布的源码 libimobiledevice-1.3.0.tar.bz2 符合要求,就使用发布的源码,如果不符合要求,则使用git main的源码
  6. https://libimobiledevice.org/ 官网所发布出来的包都是比较旧,基本不使用这里面的包
  7. libimobiledevice这个包现在不发布包,所以都是使用git获取源码编译
  8. 因为苹果的产品发布和系统更新比较频繁,所以idevicerestore 一般都是使用git源码,以获取最新支持
  9. apt-get install pkg-config libtool libcurl4 libcurl4-openssl-dev libssl-dev libusb-1.0-0-dev libreadline-dev libzip-dev
  10. wget https://github.com/libimobiledevice/libplist/releases/download/2.6.0/libplist-2.6.0.tar.bz2
  11. tar -jxvf ./libplist-2.6.0.tar.bz2
  12. cd libplist-2.6.0
  13. ./configure --enable-static --without-cython
  14. make -j4 && make install
  15. wget https://github.com/libimobiledevice/libimobiledevice-glue/releases/download/1.3.0/libimobiledevice-glue-1.3.0.tar.bz2
  16. tar -jxvf ./libimobiledevice-glue-1.3.0.tar.bz2
  17. cd libimobiledevice-glue-1.3.0
  18. ./configure --enable-static --without-cython
  19. make -j4 && make install
  20. wget https://github.com/libimobiledevice/libusbmuxd/releases/download/2.1.0/libusbmuxd-2.1.0.tar.bz2
  21. tar -jxvf ./libusbmuxd-2.1.0.tar.bz2
  22. cd libusbmuxd-2.1.0
  23. ./configure --enable-static
  24. make -j4 && make install
  25. wget https://github.com/libimobiledevice/libtatsu/releases/download/1.0.3/libtatsu-1.0.3.tar.bz2
  26. tar -jxvf ./libtatsu-1.0.3.tar.bz2
  27. cd libtatsu-1.0.3
  28. ./configure --enable-static --without-cython
  29. make -j4 && make install
  30. git clone git clone http://120.24.58.247:3000/iphone/libimobiledevice.git
  31. cd libimobiledevice
  32. ./autogen.sh --enable-static --without-cython
  33. make -j4 && make install
  34. wget http://120.24.58.247/files/iphone/usbmuxd-1.1.1.zip
  35. unzip usbmuxd-1.1.1.zip
  36. cd usbmuxd-1.1.1
  37. ./configure --with-systemd && make && make install && useradd usbmux && usermod -a -G plugdev usbmux && mkdir -p /var/lib/usbmux
  38. 在 /etc/ld.so.conf.d/aarch64-linux-gnu.conf文件追加一行: /usr/local/lib
  39. 并执行 ldconfig 命令
  40. wget https://github.com/libimobiledevice/libirecovery/releases/download/1.2.0/libirecovery-1.2.0.tar.bz2
  41. tar -jxvf ./libirecovery-1.2.0.tar.bz2
  42. cd libirecovery-1.2.0
  43. ./configure --enable-static --without-udev
  44. make -j4 && make install
  45. git clone http://120.24.58.247:3000/iphone/idevicerestore.git
  46. ./autogen.sh
  47. make -j4 && make install
  48. service usbmuxd status