OpenCV iOS 如何自定义打包

首先找到opencv的github源地址

https://github.com/opencv
蓝色框是opencv源码,红色框是扩展和beta模块

image.png

编译

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

详见:
https://blog.csdn.net/may0324/article/details/72123195?utm_source=itdadao&utm_medium=referral#commentsedit

你可能感兴趣的:(OpenCV iOS 如何自定义打包)