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

Author Topic: 64 Bit Linuxproblems mit the Audiolib of sfml  (Read 16855 times)

0 Members and 1 Guest are viewing this topic.

DKing

  • Newbie
  • *
  • Posts: 3
    • ICQ Messenger - 164936713
    • View Profile
64 Bit Linuxproblems mit the Audiolib of sfml
« on: June 22, 2008, 01:18:44 pm »
Huhu
I have written a small sampleprogramm and compiled it with:
g++ -o Main Main.cpp -lsfml-system -lsfml-window -lsfml-graphics -lsfml-audio -lsfml-system

I use Ubuntu and the compiler says:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../../lib/libsfml-audio.so when searching for -lsfml-audio
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libsfml-audio.so when searching for -lsfml-audio
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libsfml-audio.so when searching for -lsfml-audio
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libsfml-audio.so when searching for -lsfml-audio
/usr/bin/ld: skipping incompatible /usr/lib64/libsfml-audio.so when searching for -lsfml-audio
/usr/bin/ld: skipping incompatible /usr/lib/libsfml-audio.so when searching for -lsfml-audio
/usr/bin/ld: cannot find -lsfml-audio
collect2: ld gab 1 als Ende-Status zurück


Know somebody a way to solve the problem?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
64 Bit Linuxproblems mit the Audiolib of sfml
« Reply #1 on: June 22, 2008, 01:55:09 pm »
The SFML libraries have been compiled in 32 bits, you have to recompile them to use on a 64 bits system.
Laurent Gomila - SFML developer

DKing

  • Newbie
  • *
  • Posts: 3
    • ICQ Messenger - 164936713
    • View Profile
64 Bit Linuxproblems mit the Audiolib of sfml
« Reply #2 on: June 22, 2008, 02:06:29 pm »
How can i compile it for 64-Bit OS?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
64 Bit Linuxproblems mit the Audiolib of sfml
« Reply #3 on: June 22, 2008, 02:34:11 pm »
It's explained in the Linux tutorial.

Basically, just download the full SDK and execute the following commands in the SFML folder :
Code: [Select]
make
sudo make install
Laurent Gomila - SFML developer

DKing

  • Newbie
  • *
  • Posts: 3
    • ICQ Messenger - 164936713
    • View Profile
64 Bit Linuxproblems mit the Audiolib of sfml
« Reply #4 on: June 23, 2008, 12:10:59 am »
The compiler says:
In Datei, eingefügt von SoundFile.cpp:29:
../../SFML/Audio/SoundFileDefault.hpp:32:21: Fehler: sndfile.h: No such file or directory
In file included from SoundFile.cpp:29:
../../SFML/Audio/SoundFileDefault.hpp:128: Fehler: »sf_count_t« bezeichnet keinen Typ
../../SFML/Audio/SoundFileDefault.hpp:129: Fehler: »sf_count_t« bezeichnet keinen Typ
../../SFML/Audio/SoundFileDefault.hpp:130: Fehler: »sf_count_t« bezeichnet keinen Typ
../../SFML/Audio/SoundFileDefault.hpp:131: Fehler: »sf_count_t« bezeichnet keinen Typ
../../SFML/Audio/SoundFileDefault.hpp:132: Fehler: »sf_count_t« bezeichnet keinen Typ
../../SFML/Audio/SoundFileDefault.hpp:141: Fehler: »sf_count_t« bezeichnet keinen Typ
../../SFML/Audio/SoundFileDefault.hpp:147: Fehler: ISO-C++ verbietet Deklaration von »SNDFILE« ohne Typ
../../SFML/Audio/SoundFileDefault.hpp:147: Fehler: expected »;« before »*« token
make[2]: *** [SoundFile.o] Fehler 1
make[2]: Verlasse Verzeichnis '/home/danielknobe/Desktop/SFML-1.3/src/SFML/Audio'
make[1]: *** [sfml-audio] Fehler 2
make[1]: Verlasse Verzeichnis '/home/danielknobe/Desktop/SFML-1.3/src/SFML'
make: *** [sfml] Fehler 2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
64 Bit Linuxproblems mit the Audiolib of sfml
« Reply #5 on: June 23, 2008, 03:04:20 am »
Hmm yes, you first have to install the libraries SFML depends on.

But please just read the tutorial, its all written inside...
Laurent Gomila - SFML developer