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

Author Topic: Linux - Debuglibs  (Read 4908 times)

0 Members and 1 Guest are viewing this topic.

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Linux - Debuglibs
« 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
Quote

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 ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Linux - Debuglibs
« Reply #1 on: July 19, 2008, 05:58:37 pm »
You have to install libsdnfile-dev.

To build the debug libs, use the command "make DEBUGBUILD=yes".
Laurent Gomila - SFML developer

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Linux - Debuglibs
« Reply #2 on: July 19, 2008, 07:13:05 pm »
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.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Linux - Debuglibs
« Reply #3 on: July 19, 2008, 07:50:56 pm »
because they have the same name. (debug/release)
only static's name change.
SFML / OS X developer

Ankou

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Linux - Debuglibs
« Reply #4 on: July 19, 2008, 09:22:19 pm »
oh, yeah, I see.
thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Linux - Debuglibs
« Reply #5 on: July 20, 2008, 03:34:07 am »
Hmm yes, I should add the -d suffix to debug libraries.
Laurent Gomila - SFML developer