[Openal] MacOSX OpenAL 1.1 & FreeALUT problems
Mauti
mauti at damnr6.com
Sat Jun 9 05:36:28 PDT 2007
Hi guys,
I'm working on a 3D OpenGL game for a university project. I'm in a
team of 2 and we are developing Mac(universal binary)-PC
crossplattform. So far our engine is almost complete except sound.
Since OpenAL has a good reputation and was preinstalled we decided to
go with that however this annoying 1.0 backward compatibility issue
kept us busy for hours already. So I hope you can help us.
On PC everything is working fine so I focus on the Mac side of
problems. I'm using 10.4.9 so OpenAL 1.1 is installed. I downloaded
FreeAlut and it compiled fine.
When I inserted it however in our project I get these nasty multiple
definitions errors. Ok no panic I surfed through the web and read a
few posts here and found out that
there are still some alut functions in the Mac binary.
Alright no problem. I recompiled FreeALUT and renamed the 5 functions
that keeps me from compiling my project:
Namely alutInit(), alutExit(), alutLoadWAV(), alutLoadWAVMemory(),
alutUnloadWAV() where renamed with a my_ prefix. I also updated the
alut.h to reflect these changes.
However now when I try to compile my project now it screams it can't
find all the normal OpenAL stuff:
Undefined symbols:
_alDeleteBuffers
_alGenSources
_alGetError
_alGetSourcei
_alGetString
_alListenerfv
_alSourcePause
_alSourcePlay
_alSourceStop
_alSourcei
_alcCloseDevice
_alcCreateContext
_alcDestroyContext
_alcGetContextsDevice
_alcGetCurrentContext
_alcMakeContextCurrent
_alcOpenDevice
_alutCreateBufferFromFile
_alutGetError
_alutInitWithoutContext
_alSource3f
_alListener3f
At least the multiple definitions errors are gone, but I don't know
what's going on here. I have tried it a dozen times with different
compiled freeAlut projects, just inserted only the header, tried to
use the inofficial alAux.h which is posted somewhere here, also tried
out the ALUT.framework someone posted here, but also failed.
Any ideas how I can OpenAL 1.1 and FreeAlut working together on a Mac?
Please please please help us.
Thanks and greetings from Vienna,
Mauti
More information about the Openal
mailing list