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

Author Topic: libsndfile-1.dll required. libsnd is installed... Wth?  (Read 5659 times)

0 Members and 1 Guest are viewing this topic.

newn

  • Guest
libsndfile-1.dll required. libsnd is installed... Wth?
« on: August 24, 2010, 10:24:42 am »
Hi everyone. I was required .dll file after compiling a project with a sound file. Then i've found out, that it's that library's file, so i needed to install it. I've downloaded the x32 version, copied the .lib file into lib folder of Visual Studio 2010, and copied the .h file into include folder. Restarted VS, included libsdnfile-1.lib (triple checked the name), and it still requires the .dll file. What's wrong with that thing? I even tried the example project, from their installation, same thing.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
libsndfile-1.dll required. libsnd is installed... Wth?
« Reply #1 on: August 24, 2010, 11:53:46 am »
All you have to do is to copy this DLL in the same directory as your executable. You can find it in the "extlibs" folder of the SFML SDK.
Laurent Gomila - SFML developer

newn

  • Guest
libsndfile-1.dll required. libsnd is installed... Wth?
« Reply #2 on: August 24, 2010, 12:16:43 pm »
So basically i'll have to copy the .dll file, every time i will use this library? :/ I mean, it cannot be static, as SFML is?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
libsndfile-1.dll required. libsnd is installed... Wth?
« Reply #3 on: August 24, 2010, 12:30:44 pm »
Quote
So basically i'll have to copy the .dll file, every time i will use this library?

You can put it in a directory which is contained in the PATH environment variable, so that Windows will always be able to find it.

Quote
I mean, it cannot be static, as SFML is?

No, because of its license (LGPL).
Laurent Gomila - SFML developer

newn

  • Guest
libsndfile-1.dll required. libsnd is installed... Wth?
« Reply #4 on: August 24, 2010, 12:41:07 pm »
Oh, okay.

Thanks for the answer. Seems like everything works perfectly fine. Great library. ;)