SFML community forums
Help => General => Topic started by: Ankou on July 19, 2008, 05:44:44 pm
-
Hi,
Because there are no debuglibs with the linux version(why?) I tried to compile it by myself.
But how can I compile the debuglibs?
And when I try to compile the releaseversion I get the following error
g++ -o SoundFile.o -c SoundFile.cpp -W -Wall -pedantic -I../../../include -I../../ -DNDEBUG -O2 -fPIC
In file included from SoundFile.cpp:29:
../../SFML/Audio/SoundFileDefault.hpp:32:21: error: sndfile.h: No such file or directory
In file included from SoundFile.cpp:29:
../../SFML/Audio/SoundFileDefault.hpp:128: error: ‘sf_count_t’ does not name a type
../../SFML/Audio/SoundFileDefault.hpp:129: error: ‘sf_count_t’ does not name a type
../../SFML/Audio/SoundFileDefault.hpp:130: error: ‘sf_count_t’ does not name a type
../../SFML/Audio/SoundFileDefault.hpp:131: error: ‘sf_count_t’ does not name a type
../../SFML/Audio/SoundFileDefault.hpp:132: error: ‘sf_count_t’ does not name a type
../../SFML/Audio/SoundFileDefault.hpp:141: error: ‘sf_count_t’ does not name a type
../../SFML/Audio/SoundFileDefault.hpp:147: error: ISO C++ forbids declaration of ‘SNDFILE’ with no type
../../SFML/Audio/SoundFileDefault.hpp:147: error: expected ‘;’ before ‘*’ token
What do I have to install to have a sndfile.h ?
-
You have to install libsdnfile-dev.
To build the debug libs, use the command "make DEBUGBUILD=yes".
-
Okay, now I can compile it without any errors, but even when I use make DEBUGBUILD=yes there are no Debuglibs in the lib folder.
-
because they have the same name. (debug/release)
only static's name change.
-
oh, yeah, I see.
thanks
-
Hmm yes, I should add the -d suffix to debug libraries.