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

Author Topic: Problems with compiling!  (Read 2292 times)

0 Members and 1 Guest are viewing this topic.

FalkoTux

  • Newbie
  • *
  • Posts: 4
    • View Profile
Problems with compiling!
« on: July 21, 2011, 11:33:41 pm »
Hello everybody, i tried to install sfml library and when I compile my program i get these warnings:

Code: [Select]
warning: in /Library/Frameworks//sfml-audio.framework/sfml-audio, missing required architecture x86_64 in file
ld: warning: in /Library/Frameworks//sfml-system.framework/sfml-system, missing required architecture x86_64 in file

and these errors:

Code: [Select]
ndefined symbols:
  "sf::SoundBuffer::SoundBuffer()", referenced from:
      _main in ccX944dt.o
  "sf::Sound::Sound(sf::SoundBuffer const&, bool, float, float, sf::Vector3<float> const&)", referenced from:
      _main in ccX944dt.o
  "sf::Sound::~Sound()", referenced from:
      _main in ccX944dt.o
      _main in ccX944dt.o
  "sf::SoundBuffer::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      _main in ccX944dt.o
  "sf::Sound::Play()", referenced from:
      _main in ccX944dt.o
  "sf::Sound::GetStatus() const", referenced from:
      _main in ccX944dt.o
  "sf::SoundBuffer::GetSampleRate() const", referenced from:
      _main in ccX944dt.o
  "sf::SoundBuffer::~SoundBuffer()", referenced from:
      _main in ccX944dt.o
      _main in ccX944dt.o
  "sf::SoundBuffer::GetChannelsCount() const", referenced from:
      _main in ccX944dt.o
  "sf::SoundBuffer::GetDuration() const", referenced from:
      _main in ccX944dt.o
  "sf::Sound::GetPlayingOffset() const", referenced from:
      _main in ccX944dt.o
  "sf::Sleep(float)", referenced from:
      _main in ccX944dt.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


(The program is the audio example of the library)

Please Help :)

FalkoTux

  • Newbie
  • *
  • Posts: 4
    • View Profile
Problems with compiling!
« Reply #1 on: July 22, 2011, 12:06:10 am »
ok i found the errors...now it compiles but when I try to open the file it give me:
Code: [Select]


dyld: Library not loaded: /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
  Referenced from: /Library/Frameworks/sfml-audio.framework/Versions/A/sfml-audio
  Reason: no suitable image found.  Did find:
/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL: no matching architecture in universal wrapper
/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL: no matching architecture in universal wrapper
/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL: no matching architecture in universal wrapper
Trace/BPT trap

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Problems with compiling!
« Reply #2 on: July 22, 2011, 12:06:20 am »
Which SFML version, operating system and compiler do you use?

If this is your own project, did you link SFML? Is it the official SFML audio example (or just its code copied to your project)?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

FalkoTux

  • Newbie
  • *
  • Posts: 4
    • View Profile
Problems with compiling!
« Reply #3 on: July 22, 2011, 12:13:31 am »
I use Mac OSX snow Leopard and it is a 64 bit (intel core 2 Duo).. The project is the sample that I found in the SFML Audio directory. The compiler is the gcc (4 I think). To compile the example I used:

Code: [Select]

g++ -o Prova  provaSuono.cpp -framework sfml-audio -framework sfml-system

All is ok, but when i try to open ./Prova it gives me:


Code: [Select]
Library not loaded: /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
  Referenced from: /Library/Frameworks/sfml-audio.framework/Versions/A/sfml-audio
  Reason: no suitable image found.  Did find:
/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL: no matching architecture in universal wrapper
/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL: no matching architecture in universal wrapper
/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL: no matching architecture in universal wrapper
Trace/BPT trap


SFML version is the 1.6!

->The strange thing is that using Xcode it works! But by Terminal, isn't the same thing!

FalkoTux

  • Newbie
  • *
  • Posts: 4
    • View Profile
Problems with compiling!
« Reply #4 on: August 01, 2011, 11:02:43 pm »
Nothing? If there's anyone who use MAC OSX and works with this library please, contact me. Thanks!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Problems with compiling!
« Reply #5 on: August 03, 2011, 07:31:26 pm »
I have not short answer for you. The only thing I can guess from the error is that something is wrong with the architecture of some files. You can use `file` command to see what architecture a file support.
SFML / OS X developer