首先找到opencv的github源地址
https://github.com/opencv
蓝色框是opencv源码,红色框是扩展和beta模块
编译
1.编译基础版本
https://opencv.org/releases.html
官网可下
自己编译的方法是:
python platforms/ios/build_framework.py 输出路径
2.编译包含contrib扩展包的版本
python platforms/ios/build_framework.py --contrib 扩展包路径 输出路径
打包时出现65错误
ERROR: Command '['xcodebuild', 'IPHONEOS_DEPLOYMENT_TARGET=8.0', 'ONLY_ACTIVE_ARCH=NO', '-arch', 'armv7', '-arch', 'armv7s', '-arch', 'arm64', '-sdk', 'iphoneos', '-configuration', 'Release', '-parallelizeTargets', '-jobs', '4', '-target', 'ALL_BUILD', '-target', 'ALL_BUILD', 'build']' returned non-zero exit status 65
https://github.com/opencv/opencv/issues/8227
放弃了~~~
编译3.x怎么都无法解决。改为编译2.x