交叉编译c++ 到 iPhone 手臂

发布于 2024-07-13 21:12:32 字数 522 浏览 7 评论 0原文

我已经浏览了谷歌上关于 ARM 交叉编译。 我还看过有关将 OpenCV 编译到 iPhone 的文章< /a> 以及一般的交叉编译指令。 我的问题是我可以像后一篇文章中那样调用 iPhone 开发包(我已经安装了)中显然已经配置的 gcc/g++ 吗? 许多 OpenCV 的东西对于我的需求来说似乎是多余的。

如果可以的话,电话会是什么样子? 我应该创建一个 Makefile 以使事情变得更容易吗?

另外,我需要 -lncurses 库。 我可以像平常一样调用它们,还是需要指定它的路径,因为我没有调用默认的 gcc/g++?

I've scanned over the (outdated) article that is the first hit on google about ARM cross-compiling. I've also seen the article about compiling OpenCV to the iPhone and the general cross compiling instructions there. My question is can I call the apparently already configured gcc/g++ in the iPhone developer package (which I already have installed) like in the latter article? A lot of the OpenCV stuff seems superfluous to my needs.

If I can, what would the calls look like? Should I create a Makefile to make things easier?

Also, I need -lncurses library. Can I call them like normal, or do I need to specify it's path because I'm not calling the default gcc/g++?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

陈甜 2024-07-20 21:12:32

如果您使用官方 SDK,则为 iPhone 编译 C++ 就像在项目中包含 cpp 文件并点击“构建”一样简单。 当然,您仍然可以进入并调整编译器开关 - 嗯,大多数。

至于 ncurses,我不确定你为什么要使用它 - 但你应该拥有的唯一限制是你不能链接到动态库 - 所以你必须链接目标代码。

If you're using the official SDK, compiling C++ for the iPhone is as simple as including cpp files in your project and hitting "build". Of course you can still go in and tweak the compiler switches - well, most of them.

As for ncurses, I'm not sure why you'd want to use that - but the only limitation you should have is that you can't link against dynamic libraries - so you'd have to linked the object code in.

祁梦 2024-07-20 21:12:32

不幸的是,[n]curses 包不会给 iPhone 带来任何好处。
[n]curses 设计为与终端窗口一起使用。 这不适用于 iPhone,您需要学习如何使用 Coco 开发 GUI 界面。

Unfortunately the [n]curses package is not going to do you any good for the iPhone.
[n]curses is designed to be used with a terminal window. This is just not available for the iPhone you will need to learn how to use Coco to develop a GUI interface.

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