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.
If anyone here has used TiMidity before for their apps, your advice will be gold.
Thanks everyone,
Phil.
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_iphoneossomewhere in your path and+xitcdto the extractd TiMidity++ folderbuild_for_iphoneos simulatorThis will fail
timidity/newton_tables.csomewhere safe.make cleanbuild_for_iphoneos devicetimidity/makefileand remove all references toDAU_DARWINanddarwin_anewton_tables.cback into thetimiditysubfolder andtouchitmakeYou should now have a
timiditybinary 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.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.