TiMidity:需要帮助为iPhone编译这个库 [英] TiMidity: need help compiling this library for the iPhone
问题描述
我正在使用一个名为TiMidity的强大库,我相信很多iPhone开发人员已经使用过它。这是一个独立于平台的程序集,但在XCode(gcc编译器)的编译期间,会出现数百个依赖性错误。
I'm using a powerful library called TiMidity, which I'm sure many iPhone developers have used already used. This is a platform-independent set of programs, but during compile-time in XCode (gcc compiler), there are hundreds of dependency errors that come up.
如果这里有人之前他们的应用程序使用过TiMidity,你的建议就是黄金。
If anyone here has used TiMidity before for their apps, your advice will be gold.
谢谢大家,
Phil。
Thanks everyone, Phil.
推荐答案
我通常使用此脚本为iPhone编译静态库,但是TiMidity ++不是一个库,它在OS X上用于输出声音的API在iPhone OS上不可用。
I usually use this script to compile static libraries for the iPhone, but TiMidity++ isn't a library and the API's it uses to output sound on OS X aren't available on the iPhone OS.
这是我到目前为止所得到的:
Here's what I've gotten so far:
- 保存
build_for_iphoneos
路径中的某个地方和+ x
它 -
cd
到提取的TiMidity ++文件夹 -
build_for_iphoneos simulator
这将失败 - 复制
胆怯/ newton_tables.c
某处安全。 -
make clean
-
build_for_iphoneos device
- 手动编辑
timidity / makefile
并删除对DAU_DARWIN的所有引用
和darwin_a
- 将
newton_tables.c
复制回胆怯
子文件夹和触摸
它 -
make
- Save
build_for_iphoneos
somewhere in your path and+x
it cd
to the extractd TiMidity++ folderbuild_for_iphoneos simulator
This will fail- Copy
timidity/newton_tables.c
somewhere safe. make clean
build_for_iphoneos device
- Manually edit
timidity/makefile
and remove all references toDAU_DARWIN
anddarwin_a
- Copy
newton_tables.c
back into thetimidity
subfolder andtouch
it make
你现在应该有一个胆怯
二进制文件可以在越狱设备上使用shell(当然通过ldid签名)和你可以包含在项目中的目标文件。
You should now have a timidity
binary that can be used from the shell on a jailbroken device (after signed via ldid of course) and object files you can include in your project.
注意:TiMidity ++是GPL,所以如果您使用该许可证的任何部分,则必须根据该许可证发布您的申请。此外,这真的很混乱,因为TiMidity ++不是以这种方式使用的,所有的darwin集成都在iPhone OS上被破坏,而且automake让我感到困惑。
Note: TiMidity++ is GPL, so you will have to release your application under that license if you use any part of it. Also, this is really messy because TiMidity++ wasn't designed to be used this way, all of the darwin integration is broken on iPhone OS, and automake confuses me.
这篇关于TiMidity:需要帮助为iPhone编译这个库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!