[ 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?