可以Libsndfile库在iPhone上的iOS中使用? [英] Can the Libsndfile library be used on the iPhone iOS?

查看:296
本文介绍了可以Libsndfile库在iPhone上的iOS中使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否 Libsndfile C库是iPhone的操作系统上使用?如果是这样,我需要只是'包括'呢,还是更复杂的那么。

Can the Libsndfile C library be used on the iPhone operating system? If so, do I need to just 'include' it, or is it more complicated then that.

谢谢!

推荐答案

我libsndfile的主要维护者。

I'm the main maintainer of libsndfile.

libsndfile可以编译和运行的相当愉快在Debian /布防,也是Android系统。

libsndfile can be compiled and runs quite happily on Debian/Arm and also Android.

我会感到惊讶,如果没有人编译它适用于iOS,但也有许可问题。

I would be surprised if no one has compiled it for iOS, but there are licensing issues. As you are no doubt aware, libsndfile is released under the LGPL which requires that one of the following conditions be met:

一)库被用作一个动态链接库(DLL在Windows,Linux上的共享对象,dynlib在OSX等)。

a) The library is used as a dynamically linked library (DLL on windows, shared object on Linux, dynlib on OSX etc).

b)所有code静态链接到LGPL库下LGPL兼容的许可证发布。

b) All code that statically links to the LGPL library is released under a LGPL compatible license.

三)库被用作静态库,但到库针对新版本链接所需的所有对象的文件提供给该应用程序的所有收件人。

c) The library is used as a static library, but that all object files required to link the library against a new version be made available to all recipients of the application.

据我了解,iOS不支持动态链接库(Android提供),所以选项A)是的。这使得你的选项b)和c)。

As I understand it, iOS does not support dynamically linked libraries (Android does) so option a) is out. That leaves you with options b) and c).

如果您决定选择B去)或C),那么你还需要编译于iOS库(也可能是它的可选依赖关系),然后对你的code链接库。

If you decide to go with option b) or c) then you still need to compile the library (and possibly it optional dependencies) for iOS and then link the library against your code.

这篇关于可以Libsndfile库在iPhone上的iOS中使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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