为 iOS 构建 libsox 问题

发布于 2024-10-12 04:33:18 字数 69 浏览 1 评论 0原文

我想为 iphone 设备构建 libsox,但我没有这样做。我只是想知道是否有可能为 iphone 构建这个库......

I want to build libsox for iphone device but I havent got any luck doing so. I am just wondering if it is even possible to build this library for iphone....

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

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

发布评论

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

评论(5

旧瑾黎汐 2024-10-19 04:33:18

einsteinx 已经从我的博客发布了;)但这里又出现了两个链接

第一篇文章解释了如何构建 libsox:
http://uberblo.gs/2011/04 /iosiphoneos-equalizer-with-libsox-making-it-a-framework

第二个解释如何使用它:
http://uberblo.gs/2011/04/iosiphoneos-equalizer -with-libsox-doing-effects

如果对您有帮助,请回答!谢谢!

einsteinx already posted from my blog ;) but here both links again

First post explains how you build libsox:
http://uberblo.gs/2011/04/iosiphoneos-equalizer-with-libsox-making-it-a-framework

The second explains how to use it:
http://uberblo.gs/2011/04/iosiphoneos-equalizer-with-libsox-doing-effects

please up the answer if it helped you! thanks!

会傲 2024-10-19 04:33:18

http://uberblo.gs/2011/04 /iosiphoneos-equalizer-with-libsox-making-it-a-framework

^ 这是构建 iOS libsox 框架的绝佳指南。只需将脚本放在 libsox 源文件夹中并运行即可。它构建了一个适用于arm6(旧版iphone和ipod touch)、arm7(新iphone、ipod touch和ipad)和i386(模拟器)的通用框架。

http://uberblo.gs/2011/04/iosiphoneos-equalizer-with-libsox-making-it-a-framework

^ This is a great guide to build a libsox framework for iOS. Just place the script in the libsox source folder and run it. It builds a universal framework that works on arm6 (old iphone and ipod touch), arm7 (new iphone, ipod touch, and ipad), and i386 (simulator).

只是偏爱你 2024-10-19 04:33:18

基本上 lib sox 库支持某些默认格式的音频。如果我们需要更多的音频格式支持,我们需要根据要求编译所需的音频格式库。

例如:Wav - lib sox 中的默认值

例如:mp3 - 需要编译 libmp3

是的,当然!!!。我们无法一次性为 iOS 模拟器和 iOS 手机编译 libsox。由于模拟器和iOS设备包含不同的架构。

模拟器 arch - xi386 、x64

iPhone arch - armv6、armv7 、arm64

因此,在编译时我们提到/启用了模拟器 arch 意味着整个编译将基于模拟器进行编译。因为所有支持文件和库都会首先生成启用的架构。最后我们要把模拟器和ios设备分别编译好之后就可以在ios开发中使用了。

如果想要成为单个库,我们需要通过终端使用 libo 工具合并模拟器和设备库。

Basically lib sox library support for audio with some default formats. If we need more audio format support we need to compile required audio format library as per the requirement.

Eg: Wav - Default for in lib sox

Eg: mp3 - Need to compile libmp3

Yes of course!!!.We cannot compile the libsox for iOS Simulator and iOS phone at single time. Because of simulator and iOS device contains different architectures.

Simulator arch - xi386 , x64

iPhone arch - armv6, armv7 , arm64

So, While compiling we mentioned / enabled the simulator arch mean whole compilation will compile based on the simulator. Because all supporting files and libs generated first enabled architecture. Finally we have to compile both simulator and ios device separately after that can use in ios development.

If want to be single library , we need to merge the both simulator and device libs by using libo tool via terminal.

携余温的黄昏 2024-10-19 04:33:18

没关系,我想我现在已经构建了它......似乎如果我先为模拟器构建然后为设备构建它就无法为设备进行编译。我仅用该设备再次完成了此操作,现在它可以工作了......确实很奇怪......

Nevermind, I think I have got it built now... it seems that if i build for the simulator first then device it is not able to compile for the device. I have done this again with just the device only and it works now... strange indeed...

等待我真够勒 2024-10-19 04:33:18

最新版本可在此处获取。构建脚本和预构建库都可用。

A latest version is available here. Both build script and prebuilt library are available.

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