交叉编译c++ 到 iPhone 手臂
我已经浏览了谷歌上关于 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用官方 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.
可用作交叉编译库的基础的脚本用于 iO 开发。
A script that you can use as a basis for crosscompiling your libraries for iOs development.
不幸的是,[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.