C ++在iPhone上加速 [英] C++ Boost on iPhone

查看:149
本文介绍了C ++在iPhone上加速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用升压序列化code。我在测试它在Android的过程中(使用NDK,很明显)。之前,我决定,如果我真的想使用boost序列化code在我的项目,我想知道是否提升可以被编译并在iPhone应用程序中使用。
我问这个是因为在Android编译提升不是做一个眼前的事情,所以说提高对iPhone将硬编译由于Android(叹气)的可能性。
THX。

I need to use the boost serialization code. I am in the process of testing it on Android (using the NDK, obviously). Before i decide if i really want to use boost serialization code in my projects, i would like to know if boost can be compiled and used in iPhone applications. I ask this because compiling boost on Android is not an immediate thing to do, so there is the possibility that boost on iPhone will be as hard to compile as Android (sigh). Thx.

推荐答案

此博客可能会帮助你。

它说,皮特Goodliffe 写的 一个脚本构建Boost库到iOS的框架。还有一个 X code ++项目编译整个事情。

It says that Pete Goodliffe wrote a script that builds the boost libraries into an iOS framework. There is also an XCode project compiling the whole thing.

如果别人告诉你,你不能在iOS应用程序中使用自定义的框架,这是不正确的。只要框架正确建立了这个就可以了(i386的,用于ARMv6和ARMv7所有编在一起的架构)。

If people tell you that you can't use custom frameworks in iOS applications this is not true. So long as the framework is properly built (architectures for i386,armv6 and armv7 all lipoed together) this will work.

我没有尝试过特定的框架,但如果它是正确的设置我相信这将这样的伎俩。

I haven't tried that particular framework but if it's correctly setup I am sure this will do the trick.

请我们公布。

这篇关于C ++在iPhone上加速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆