SFML community forums

Help => Audio => Topic started by: newn on August 24, 2010, 10:24:42 am

Title: libsndfile-1.dll required. libsnd is installed... Wth?
Post by: newn 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.
Title: libsndfile-1.dll required. libsnd is installed... Wth?
Post by: Laurent 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.
Title: libsndfile-1.dll required. libsnd is installed... Wth?
Post by: newn 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?
Title: libsndfile-1.dll required. libsnd is installed... Wth?
Post by: Laurent 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).
Title: libsndfile-1.dll required. libsnd is installed... Wth?
Post by: newn on August 24, 2010, 12:41:07 pm
Oh, okay.

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