[Openal] New member - Compiling OpenAL example on Macintosh
Cara Quinn
caraquinn at caraquinn.com
Fri Mar 13 16:08:34 PDT 2009
Hello all, -just joined this list, and have a newby question which
I'm betting has been asked bunches o' times before. So my apologies
in advance! :)
I'm working in C++ and am trying to compile a basic OpenAL example
via the command line with GCC on a Mac running Leopard 10.6.
I'm obviously getting errors having to do with alut.h not being
found and thusly, all of the alut functions not being available.
NOw, I know that technically alut is no longer supported in OpenAL
1.1 and Apple is adhering to that spec so I'm not surprised I can't
compile, but my question is this; What in the world am I to do about
it?! :)
I did a number of things to try to remedy this situation, all to no
avail.
• I tried replacing the alut functions with their version 1.1
counterparts, I.E. opening a device and setting a context as opposed
to initializing OpenAL with alut, etc.
• I read over the 1.1 spec and programmers guide and tried running the
example in that. Once again, it wouldn't compile, and I got errors,
but for different reasons. Three of these had to do with
loadWAVFile() and unloadWAV() as well as with the line beginning,
Device = alcOpenDevice()…
the load / unload functions weren't liked, and the 'Device' wasn't
recognized as being declared, and I couldn't actually even do this, as
I was given no info on what type it should even be declared as and
couldn't glean it from the docs nor from the libraries themselves.
The line looked suspicious to me, but as I was given no explanation of
it, I simply tried it anyway. Also, neither the 1.1 spec nor the
programmers guide gave me any hint as to all of the libraries I'd need
to include either, so I needed to guess at it.
As it was, I included al.h alc.h altypes.h and alctypes.h
• I tried again using the alut functions and added a path to GCC to
locate the alut.h library manually, however, I still received errors
as I was told that there were conflicts between versions. NOw, this
is something I'd rather not get more deeply involved in dealing with
as I'd simply like to use the default OpenAL version that is installed
with the latest Leopard / XCode tools. So I'd rather see about
getting this working following the 1.1 spec.
so any help / suggestions at all would REALLY be appreciated! :)
I'm sooo frustrated at the moment it's not even funny! lol!
Thanks for reading, and have an awesome weekend!…
Smiles,
Cara :)
---
View my Online Portfolio at:
http://www.onemodelplace.com/CaraQuinn
More information about the Openal
mailing list