To answer your questions in good orded:
OpenALTrunk lies here: svn://connect.creativelabs.com/OpenAL
in file oalAtomicStack.h, I added
#include <libkern/OSAtomic.h>
and changed:
bool compare_and_swap(T *oldvalue, T *newvalue, T **pvalue)
{
return OSAtomicCompareAndSwap64((int64_t) oldvalue, (int64_t) newvalue, (int64_t*) pvalue); // HACK
//return CompareAndSwap64(UInt32(oldvalue), UInt32(newvalue), (UInt32 *)pvalue);
}
I then replaced every occurrence of "ALvoid" and "ALCvoid"by void (those are opaque types typedef'd to void, yet gcc was complaining)
Ah last but not least,
as Apple says, CoreAudio directory structure changed in SL, which implies modifying the .xcodeproj and/or some header files.
(IMO there isn't a full time OS X maintainer for OpenAL at the moment =) )
sndfileVersion: libsndfile-1.0.20
./configure && make
sudo glibtool --mode=install libsndfile.la ~
then replace the library that lies in the existing framework by the .dylib it just buit. Vorbis support is here, I didn't check with flac.
freetypeVersion: freetype-2.3.9
It's built the same way as sndfile
The goal was to get the SFML running on x86_64 heh, that's all.
If you're doing it the same way I did, and Xcode generates code for other archs, it will fail
CompareAndSwap?openal's CompareAndSwap as it's written on the SVN HEAD revision calls corefondation's CompareAndSwap, which takes uint32's as arguments. Thus, as memory addresses are 64 bit integers, it just won't work.
I'm not sure if this fix is safe. Semantically, it seems like it is, yet I did not read calling code, so I won't bet anything