Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: OpenAl bug when compiling SFML  (Read 3707 times)

0 Members and 1 Guest are viewing this topic.

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
OpenAl bug when compiling SFML
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
AW: OpenAl bug when compiling SFML
« Reply #1 on: February 23, 2013, 09:47:19 pm »
OS? Compiler?

Is OpenAL installed properly?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: OpenAl bug when compiling SFML
« Reply #2 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
AW: Re: OpenAl bug when compiling SFML
« Reply #3 on: February 23, 2013, 10:45:31 pm »
10.7.5
So you're talking about Mac OS X? ???
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: OpenAl bug when compiling SFML
« Reply #4 on: February 23, 2013, 11:23:30 pm »
Yes

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: OpenAl bug when compiling SFML
« Reply #5 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.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: OpenAl bug when compiling SFML
« Reply #6 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.
SFML / OS X developer

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: OpenAl bug when compiling SFML
« Reply #7 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.

 

anything