十字IOS -Compiling Speex语音库 [英] Cross -Compiling speex library for ios

查看:568
本文介绍了十字IOS -Compiling Speex语音库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实,我有 Speex语音库的源$ C ​​$ C。它用C语言编写。我想编译它的手臂的架构,这样我可以添加它和我的iPad项目。当我编译源在我的Mac其编译它的 386 架构,无法与ARM架构的使用。

我怎样才能编译ARM架构的来源?

请帮我。


解决方案

要做到这一点,最简单的方法是创建一个新的图书馆项目,添加的Speex源,并得到它来编译。这个库项目当然是一个iOS的库。一旦你能得到它来编译,然后你可以说项目添加到您的主项目,它会在模拟器和设备都工作。

当您添加库项目为主营项目,你必须设置在目标的依赖,并添加到标题的路径 - 但你可以找到很多Q&安培;如何做到这一点的所以讨论

这方面最困难的部分是可能得到的config.h文件(不管)的.configure脚本构建。你也许可以采取的生成,最有可能会工作得很好。一个

编辑:BTW,Speex的是过时的 - 有一个替代作品 - 见的Speex语音网站

Actually, I have the source code of speex library. Its written in c. I want to compile it for the arm architecture so that i can add it and work with my iPad project. When i am compiling the source in my mac its compiling it for the i386 architecture that cannot be used with the arm architecture.

How can i compile the source for arm architecture?

Please help me.

解决方案

The easiest way to do this is to create a new "library" project, add the speex source, and get it to compile. This library project is an iOS library of course. Once you can get it to compile, you can then add that project to your primary project, and it will work in both the Simulator and the device.

When you add library projects to a main project, you have to set a dependency in the target, and add a path to the headers - but you can find many Q&A discussions on how to do this on SO.

The most difficult part of this is probably getting the config.h file (whatever) that the .configure script builds. You can probably take the one that was generated and most likely it will work just fine.

EDIT: BTW, Speex is outdated - there is a replacement Opus - see the Speex site

这篇关于十字IOS -Compiling Speex语音库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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