joshaber / MacShairport

A native Mac Shairport implementation
Other
176 stars 25 forks source link

Binary #4

Closed meirka closed 13 years ago

meirka commented 13 years ago

Hello, can you make universal binary (including G4 systems)? Thank you.

joshaber commented 13 years ago

For right now at least, it will require 64-bit Intel.

meirka commented 13 years ago

How hard is it to make it universal? May be I can help, I know Java and a bit of C, if you can help me a bit with it, may be I can pick up Obj-C and rewrite what ever is necessary.

joshaber commented 13 years ago

It's not that difficult, but (1) the 64-bit ABI has a couple nice features that I'd hate to give up, and (2) I don't have a PPC machine to test on. But that said, you're certainly welcome to fork and create a Universal. I'd happily merge in the pull request.

meirka commented 13 years ago

ok, so where do I start? I downloaded code, compiled it and run 64bit intel, however it doesn't compile it into 32bit intel. It has lot's of errors. How do I change it? Just try to go line by line and figure out how does it work and replace with something else or how?

joshaber commented 13 years ago

Well, the most common problem (and maybe even the only problem) is that the 64-bit ABI supports synthesized ivars instead of having to declare them. So for a Universal build you'll certainly have to declare all the ivars that are currently only being synthesized.

rcarlsen commented 13 years ago

I got it built this morning in 32-bit, but it won't run currently - the included version of libao is not a fat lib.

rcarlsen commented 13 years ago

My mistake....I'm building MacShairport as a framework, and it's not finding (the fat binary) libao in the bundle. The arch issue is related to the system installed version of libao.

TheJokersCrazyCrackhead commented 13 years ago

If anyone could compile a version for Power PC, I would be so grateful to get a working copy, I do not know how to compile it myself and cannot figure out any way to make it work.

rcarlsen commented 13 years ago

MacShairport will have to be made PPC compatible first (and possibly hairtunes, on which it depends). Also, I'm using 10.6 SDK with Xcode 4, where Apple has dropped PPC support. You're asking for a somewhat non-trivial thing; it's not likely to come from me, or anytime soon.

Sorry.

-Robert

On May 21, 2011, at 12:47, TheJokersCrazyCrackheadreply@reply.github.com wrote:

If anyone could compile a version for Power PC, I would be so grateful to get a working copy, I do not know how to compile it myself and cannot figure out any way to make it work.

Reply to this email directly or view it on GitHub: https://github.com/joshaber/MacShairport/issues/4#comment_1214894