If you are having linker problems like:
ld warning: in /Library/Frameworks//OpenAL.framework/OpenAL, file is not of required architecture
Undefined symbols:
“_alSourcePlay”, referenced from:
SoundEngineEffect::Start() Â Â Â in SoundEngine.o
SoundEngineEffect::PlaybackProc(void*) Â in SoundEngine.o
Then the problem is that you have an OpenAL framework in /Library/Frameworks and XCode is looking there first.
The simple solution is to delete or rename it. Â But that’s not very useful if you need it for something else, or you want you code to compile for other people. Â So the correct solution is to change the Framework Search Path.
So, in Project -> Edit Project Settings  select “All Configurations” and “All Settings”, then under Search Paths -> Framework Search Paths,  add:
$SDKROOT/System/Library/Frameworks/
This will show up in the options as something like iphoneos2.2/System/Library/Frameworks/ (depending on the project setting, and at compile time will automatically switch to the correct framework for the target architecture (simulator or device) and OS version.
The phone has a very smooth UI which is fun to use, but lacks some basic features that might be very important for some. For example, it doesn’t have picture messaging which is very important for some people but not for others.
we love the iphone
One more “how-to” from you, one more “thank you” from me))
I like reading your posts!
The iPhone does have many interesting features and applications, but it does lack a few of the more simple ones. I did hear that MMS support is being added later this month though.
Thanks! I was wondering what I messed up when I was getting a similar msg all of a sudden.
thanks for the help on that
So, this is the solution to the linking problem? Anyway, I have not yet encountered a problem like this one. However, I also have problem with OpenAl. My problem lies with the linking related to the audio. What do you think is the remedy?
Paycheck Advance MS
There are some weird characters in your post but the message is clear.
I had given up on this problem. I tried and tried, but kept failing. Thanks for providing the solution.
I was facing this problem before with my new iphone. I taught it was a framework problem. But you have solved my query. Thanks mate. We love our iPhones. :)
Got it. Thanx for the explanation
Good article. I always learn a lot from your posts and really appreciate it! I wish you a Happy New Year. Regards, Martin
Thank you Mick, this is why I couldn’t get my iphone game project to compile for the device.
Now it’s great!
J.
I couldn’t get the sound to work on iphone simulator on SDK2.1
Really great post.
It is impressive and informative.
Thanks for share….