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

Author Topic: Examples that use (self built) OpenAL fail to build  (Read 3394 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Examples that use (self built) OpenAL fail to build
« on: October 27, 2012, 11:31:36 pm »
So I've been try to build a native 64bit version of SFML with MinGW-w64, but since SFML doesn't ship with 64bit external libraries, I had to build them on my own.
Everything seems to work quite well (after editing the CMake macro file) except when trying to build the examples that use the static audio module of SFML it errors out with the following message:

..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj):SoundBuffer.cpp:(.text+0x65): undefined reference to `__imp_alBufferData'
..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj):SoundBuffer.cpp:(.text+0x68a): undefined reference to `__imp_alDeleteBuffers'
..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj):SoundBuffer.cpp:(.text+0xcf3): undefined reference to `__imp_alDeleteBuffers'
c:/dev/mingw64-rubenvb/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: ..\..\lib\libsfml-audio-s.a(SoundBuffer.cpp.obj): bad reloc address 0x0 in section `.pdata'
c:/dev/mingw64-rubenvb/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [examples/pong/pong.exe] Error 1
mingw32-make[1]: *** [examples/pong/CMakeFiles/pong.dir/all] Error 2
mingw32-make: *** [all] Error 2
 

Since I've build OpenAL myself I'm not sure if I've used the correct version or setup everything right and thus I'm not only asking how to resolve this issue, but also if there are any special steps required when building SFML?
« Last Edit: October 27, 2012, 11:40:06 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Examples that use (self built) OpenAL fail to build
« Reply #1 on: October 28, 2012, 11:55:48 am »
I don't know what's wrong, sorry :-\
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
AW: Re: Examples that use (self built) OpenAL fail to build
« Reply #2 on: October 28, 2012, 12:37:32 pm »
I don't know what's wrong, sorry :-
So does this mean, that you also used the default settings and didn't change anything when building the external libraries? Or use a specific version?
« Last Edit: October 28, 2012, 12:42:18 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Examples that use (self built) OpenAL fail to build
« Reply #3 on: October 28, 2012, 03:04:00 pm »
I don't remember changing anything. As far as I remember it's version 1.13, not 1.14. And I compiled it with VC++, not MinGW.
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Examples that use (self built) OpenAL fail to build
« Reply #4 on: October 28, 2012, 03:46:32 pm »
I don't remember changing anything. As far as I remember it's version 1.13, not 1.14. And I compiled it with VC++, not MinGW.
I use also the 1.13 version, but how do you generate the *.a file from the VC++ build?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Examples that use (self built) OpenAL fail to build
« Reply #5 on: October 28, 2012, 05:59:28 pm »
There's a tool that can generate an import library from a DLL. I don't remember its name (dlltool maybe?).
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
AW: Examples that use (self built) OpenAL fail to build
« Reply #6 on: October 28, 2012, 07:02:50 pm »
Anyways the problem probably wouldn't even occur if the dependencies linking was done right... :P
« Last Edit: October 28, 2012, 07:09:02 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Examples that use (self built) OpenAL fail to build
« Reply #7 on: October 28, 2012, 08:37:25 pm »
Quote
Anyways the problem probably wouldn't even occur if the dependencies linking was done right...
Why? You would still have to link to OpenAL. The only difference is that it would be done on user side rather than by SFML.
Laurent Gomila - SFML developer

 

anything