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

Author Topic: Error when I start the first Audio-Tutorial  (Read 26164 times)

0 Members and 1 Guest are viewing this topic.

SirForce

  • Newbie
  • *
  • Posts: 7
    • View Profile
Error when I start the first Audio-Tutorial
« on: November 23, 2008, 11:22:54 pm »
Hi,

the topictitle explains my problem  :)

I did the first tutorial about Soundeffects (Playing a sound). I linked next to the sfml-system, sfm-window and sfml-graphics libs, also the sfml-audio lib (I know, I don´t need all of them for this tutorial, but I tried to combine it with some graphics).
But when I start my program, I get the error message, that the openal32.dll is missing... but when I put the dll in my project folder, the next dll is missing.
What should I do? I didn´t read, that I´ve , for example, link another library.

Thanks for your answers  :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Error when I start the first Audio-Tutorial
« Reply #1 on: November 24, 2008, 07:43:54 am »
Just make all the needed DLLs available for your executable. Only OpenAL32.dll and libsndfile-1.dll should be necessary.
Laurent Gomila - SFML developer

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
Error when I start the first Audio-Tutorial
« Reply #2 on: November 24, 2008, 07:46:39 am »
I'm pretty sure SFML only has two DLL dependencies, libsndfile-1.dll and openal32.dll.

If your application asks for these DLLs, simply copy and paste them from "extlibs\bin" of SFML to your working directory.

Edit:
I just got ninja'd by Laurent. :(

Imbue

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Error when I start the first Audio-Tutorial
« Reply #3 on: November 24, 2008, 08:07:08 pm »
The included OPENAL32.DLL depends on MSVCR80.DLL which isn't included with SFML. Two out of the three XP computers I tested on did not have it installed. I got a "The application failed to initialize properly" error until I installed the MS redistributables.

In any case I highly recommend using Dependency Walker before publishing anything.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Error when I start the first Audio-Tutorial
« Reply #4 on: November 24, 2008, 08:10:00 pm »
Yep, I should recompile OpenAL32.dll with Code::Blocks (or VC++ with static CRT). It's already planned actually ;)
Laurent Gomila - SFML developer

Imbue

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Error when I start the first Audio-Tutorial
« Reply #5 on: November 24, 2008, 08:30:35 pm »
That would be great. The fewer DLLs to keep track of, the better. :D

SirForce

  • Newbie
  • *
  • Posts: 7
    • View Profile
Error when I start the first Audio-Tutorial
« Reply #6 on: November 24, 2008, 09:55:01 pm »
Thank you all for your tips!
Now the program is able to start, but than happening something total strange. The console shows me some unreadable sentences...


I would like to post the compiler error, but it is in german  :roll:

bullno1

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Error when I start the first Audio-Tutorial
« Reply #7 on: November 25, 2008, 04:59:12 am »
This happened to me once, I think you mixed up the dlls.
In debug mode, you should use debug dll (those ends with -d eg: sfml-audio-dl.dll)
In release mode, you should use release dll(those does not end with -d eg: sfml-audio.dll)
Make sure you use the correct dll for your compiler (vs2005, vs2009 or gcc)
And make sure you link with the correct lib. If you want to use dynamic linking, remember to define SFML_DYNAMIC. If you want static linking, link with those lib thats has -s in their names.

SirForce

  • Newbie
  • *
  • Posts: 7
    • View Profile
Error when I start the first Audio-Tutorial
« Reply #8 on: November 25, 2008, 05:41:56 pm »
Ok, thank you  :)
First I just used the -d.libs, because of my debug mode.
But after I had started my program, the message came, that I´ve to put the sfml-system.lib, sfml-audio.lib, etc. in my project folder.
Now I´m confused^^

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Error when I start the first Audio-Tutorial
« Reply #9 on: November 25, 2008, 08:18:12 pm »
Quote from: "Laurent"
Yep, I should recompile OpenAL32.dll with Code::Blocks (or VC++ with static CRT). It's already planned actually ;)

Done.
Laurent Gomila - SFML developer

 

anything