如何为 iOS 构建 cvBlob

发布于 2024-12-26 04:13:31 字数 110 浏览 2 评论 0原文

有人可以指出如何构建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魔法少女 2025-01-02 04:13:31

您首先需要为 iOS 构建 OpenCV。 此网站上有说明< /a>.然后,您可以按照类似的说明为 iOS 构建 cvBlob。基本上,cmake 将为您创建一个 Xcode 项目,您只需要设置适当的架构即可。

您可以看到网站上提供的脚本仅包含 iOS SDK 并更改了 ARCH,以便它针对适当的平台进行构建。 iOS 设备需要针对 armv6armv7 构建,而模拟器则需要 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 for armv6 and armv7 while the simulator needs i386.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文