SFML community forums

Help => General => Topic started by: Gan on February 23, 2013, 09:10:05 pm

Title: OpenAl bug when compiling SFML
Post by: Gan on February 23, 2013, 09:10:05 pm
Code: [Select]
[ 1%] Built target SFML
[ 15%] Built target sfml-system
[ 39%] Built target sfml-window
[ 48%] Built target sfml-network
[ 73%] Built target sfml-graphics
[ 74%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/ALCheck.cpp.o
In file included from /Users/Connor/Downloads/LaurentGomila-SFML-a40ef79/src/SFML/Audio/ALCheck.cpp:28:
In file included from /Users/Connor/Downloads/LaurentGomila-SFML-a40ef79/src/SFML/Audio/ALCheck.hpp:34:
/Library/Frameworks/OpenAL.framework/Headers/al.h:87:44: error: empty parameter
list defined with a typedef of 'void' not allowed in C++
ALAPI ALenum ALAPIENTRY alGetError( ALvoid );
^
In file included from /Users/Connor/Downloads/LaurentGomila-SFML-a40ef79/src/SFML/Audio/ALCheck.cpp:28:
In file included from /Users/Connor/Downloads/LaurentGomila-SFML-a40ef79/src/SFML/Audio/ALCheck.hpp:35:
/Library/Frameworks/OpenAL.framework/Headers/alc.h:43:59: error: empty parameter
list defined with a typedef of 'void' not allowed in C++
ALCAPI ALCcontext*ALCAPIENTRY alcGetCurrentContext(ALCvoid);
^
2 errors generated.
make[2]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/ALCheck.cpp.o] Error 1
make[1]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/all] Error 2
make: *** [all] Error 2

I'm trying to install SFML on a friend's computer, I got all the needed stuff installed and set up cmake perfectly. But when I run sudo make install, it runs into this OpenAl error.
Is there any way to fix this?
Title: AW: OpenAl bug when compiling SFML
Post by: eXpl0it3r on February 23, 2013, 09:47:19 pm
OS? Compiler?

Is OpenAL installed properly?
Title: Re: OpenAl bug when compiling SFML
Post by: Gan on February 23, 2013, 10:24:30 pm
10.7.5

Clang - Should be the latest but I don't remember the command to check clang version

OpenAL - OS was recently installed, should be the latest default with the OS
Title: AW: Re: OpenAl bug when compiling SFML
Post by: eXpl0it3r on February 23, 2013, 10:45:31 pm
10.7.5
So you're talking about Mac OS X? ???
Title: Re: OpenAl bug when compiling SFML
Post by: Gan on February 23, 2013, 11:23:30 pm
Yes
Title: Re: OpenAl bug when compiling SFML
Post by: Gan on February 24, 2013, 05:05:25 pm
Well I couldn't get it to compile on my friend's computer, so I did the next best thing.

I made a SFML project on my computer then copied all the frameworks and dylibs and headers to the project source and sent it to him.
He now has a working portable package of SFML he can write code with.
Title: Re: OpenAl bug when compiling SFML
Post by: Hiura on February 25, 2013, 09:09:27 am
SFML is meant to work with (or, at least with) the default impl of OpenAl provided by Apple. Connor's version is apparently not this version (i.e. he's using /Library/Frameworks/OpenAL.framework whilst the official is /System/Library/Frameworks/OpenAL.framework). He can either uninstall the former or configure cmake to use the latter.
Title: Re: OpenAl bug when compiling SFML
Post by: Gan on February 25, 2013, 04:41:48 pm
That's weird. I can play with it but his computer was a fresh install of Lion.