如何为 iOS 构建 cvBlob
有人可以指出如何构建 cvBlob 作为静态库(甚至作为 iOS 开发的框架更好?
Can someone may point me in the right direction how to build cvBlob as a static library (or even better as a framework) for iOS-Development?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您首先需要为 iOS 构建 OpenCV。 此网站上有说明< /a>.然后,您可以按照类似的说明为 iOS 构建 cvBlob。基本上,
cmake
将为您创建一个 Xcode 项目,您只需要设置适当的架构即可。您可以看到网站上提供的脚本仅包含 iOS SDK 并更改了
ARCH
,以便它针对适当的平台进行构建。 iOS 设备需要针对armv6
和armv7
构建,而模拟器则需要i386
。该脚本会将 OpenCV 构建为静态库,然后您应该能够用 cvBlob 的 Xcode 项目替换脚本中的 OpenCV。
You'll first need to build OpenCV for iOS. There are instructions on this web site. You can then follow similar instructions on building cvBlob for iOS. Basically,
cmake
will create an Xcode project for you, you'll just need to set the appropriate architecture.You can see the script provided on the website simply includes the iOS SDK and changes
ARCH
so that it builds for the appropriate platform. iOS devices need to be built forarmv6
andarmv7
while the simulator needsi386
.The script will build OpenCV as a static lib, then you should be able to replace OpenCV in the script with cvBlob's Xcode project.