-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build on 10.6.x for ppc #13
Conversation
I think this not the correct way to fix this. The MacOS X 10.6 SDK defines the Ideally, set the target to 10.5 in your build and this should not be an issue. Setting the The other option would be to make sure you actually build using the 10.6 SDK which defines |
First of all, there are two cases of 10.6/ppc: native developer build 10A190 (last one known to run on PPC) and Rosetta from 10.6.x releases. 10A190 does use earlier headers, which is nevertheless 10.6 version, not 10.5. Using older SDK is a hack: I think it is a fallback when nothing works and results in suboptimal build, but here a native one works fine with a one line tweak. |
So I tried this in a MacOS X 10.6 VM and figured out what happens: The 10.6 SDK that comes with Xcode 3.2.6 indeed contains a The 10.6 SDK that comes with Xcode 4.2 has the Because the Checking whether we are building for PPC like in this PR is not an option either. The issue applies to any architecture when using Xcode 3.2.6. The only idea I have right now for solving this is using a different name for that constant. However, using the 10.5 SDK as suggested before avoids the issue. This can be achieved by adding the |
@enzo1982 I see, thank you for investigating. Then perhaps worth fixing this even more so? While |
Yes, I will change the names of the three constants to be able to use them independent of the MacOS X SDK. That should fix the issue. |
Xcode 3.2.6 comes with a MacOS X 10.6 SDK that doesn't define the kAudioFormatMPEG4AAC_ELD enum value while newer versions of the SDK shipped with Xcode 4.x define it. To avoid breakage when building with Xcode 3.2.6 (which is the last version that supported PPC builds), rename the fallback definitions so they work regardless of the SDK defining the enum values or not. See issue #12 and PR #13 on GitHub.
Pushed commit 4ea79d5 to fix this. |
Fixed with that, closing. Thank you! |
Thank you for being so persistent on this! Wouldn't have figured out the actual cause of the issue otherwise. |
Fixes: #12