在越狱iOS上运行python,boost

Python:

requirements:

libffi from cydia
arm64 device 

download:
http://python.mila432.com/python_2.7.13-1_iphoneos-arm.deb

what to do after installing:
ldid -S /usr/bin/python

ios10+:
ldid -S /usr/lib/libpython2.7.dylib
ldid -S /usr/lib/libssl.1.0.0.dylib
ldid -S /usr/lib/libcrypto.1.0.0.dylib 

how to install pip:
PYTHONHTTPSVERIFY=0 easy_install pip 

should work with ios 8, was tested on ios 9 + ios 10


https://www.reddit.com/r/jailbreak/comments/5jxigr/release_python_2713_compiled_for_ios/


boost:

Win32

I use .bat file to build it with Visual Studio 2015.

build_boost_1_63_vs2015.bat
https://www.dropbox.com/s/u4qjz2hhfvfq03c/build_boost_1_63_vs2015.bat?dl=0

Extract boost_1_63_0.zip to anywhere. And put file “build_boost_1_63_vs2015.bat” to folder which have folder boost_1_63_0. Example: …\Boost_Workspace

Run .bat file to start compile, may be take about 30 mins to finish. After completed, you can check prebuilt libs(32bit/64bit) at debug mode and release at this path example: …\Boost_Workspace\boost_1_63_0\stage


Android
I use this script: https://www.dropbox.com/s/d8o9ea00y2gl471/boost-android-master.zip?dl=0

My environment: MacOS, Android NDK 13b.
How: 
-Check and setup your variable environment : ANDROID_SDK_ROOT, NDK_ROOT
-Put folder boost-android-master to root folder boost_1_63_0

Open Terminal , navigate to folder boost-android-master. And run command
./build-android.sh target_platform

target_platform can be: armeabi, armeabi-v7a, x86 or mips

After build finished, you can check prebuilt libs in folder stage.


iOS
I use this script: https://www.dropbox.com/s/fza16a3dp9vj0yt/Apple-Boost-BuildScript-master.zip?dl=0

How:
-Extract .zip.
-Open terminal and navigate to folder extracted above.
-Run command
./boost.sh -h

It will show help of this script, with your purpose you can add more parameters.


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值