TiMidity:需要帮助为iPhone编译这个库 [英] TiMidity: need help compiling this library for the iPhone

查看:138
本文介绍了TiMidity:需要帮助为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:


  1. 保存 build_for_iphoneos 路径中的某个地方和 + x

  2. cd 到提取的TiMidity ++文件夹

  3. build_for_iphoneos simulator
    这将失败

  4. 复制胆怯/ newton_tables.c 某处安全。

  5. make clean

  6. build_for_iphoneos device

  7. 手动编辑 timidity / makefile 并删除对 DAU_DARWIN的所有引用 darwin_a

  8. newton_tables.c 复制回胆怯子文件夹和触摸

  9. make

  1. Save build_for_iphoneos somewhere in your path and +x it
  2. cd to the extractd TiMidity++ folder
  3. build_for_iphoneos simulator This will fail
  4. Copy timidity/newton_tables.c somewhere safe.
  5. make clean
  6. build_for_iphoneos device
  7. Manually edit timidity/makefile and remove all references to DAU_DARWIN and darwin_a
  8. Copy newton_tables.c back into the timidity subfolder and touch it
  9. 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屋!

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