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

Author Topic: [OSX][SFML2] _sf_open, _sf_open_virtual, etc.  (Read 2329 times)

0 Members and 1 Guest are viewing this topic.

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
[OSX][SFML2] _sf_open, _sf_open_virtual, etc.
« on: February 26, 2011, 11:43:40 pm »
I'm trying to compile SFML2 in Snow Leopard but I'm getting the following errors:

Code: [Select]
Build sfml-audio of project SFML with configuration Release

Ld lib/lib/Release/libsfml-audio.dylib normal x86_64
cd /Users/name/Downloads/sfml2
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/g++-4.2 -arch x86_64 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/name/Downloads/sfml2/lib/lib/Release -F/Users/name/Downloads/sfml2/lib/lib/Release -F/Users/name/Downloads/sfml2/extlibs/libs-osx/Frameworks -filelist /Users/name/Downloads/sfml2/lib/src/SFML/Audio/SFML.build/Release/sfml-audio.build/Objects-normal/x86_64/sfml-audio.LinkFileList -install_name /libsfml-audio.dylib -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -install_name libsfml-audio.dylib /Users/name/Downloads/sfml2/lib/lib/Release/libsfml-system.dylib -framework OpenAL -framework sndfile -lpthread -single_module -compatibility_version 2.0.0 -current_version 2.0.0 -o /Users/name/Downloads/sfml2/lib/lib/Release/libsfml-audio.dylib

ld: warning: in /Users/name/Downloads/sfml2/extlibs/libs-osx/Frameworks/sndfile.framework/sndfile, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_sf_open", referenced from:
      sf::priv::SoundFile::OpenRead(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.o
      sf::priv::SoundFile::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)in SoundFile.o
  "_sf_open_virtual", referenced from:
      sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.o
  "_sf_seek", referenced from:
      sf::priv::SoundFile::Seek(float)in SoundFile.o
  "_sf_write_short", referenced from:
      sf::priv::SoundFile::Write(short const*, unsigned long)in SoundFile.o
  "_sf_strerror", referenced from:
      sf::priv::SoundFile::OpenRead(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.o
      sf::priv::SoundFile::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)in SoundFile.o
      sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.o
  "_sf_read_short", referenced from:
      sf::priv::SoundFile::Read(short*, unsigned long)in SoundFile.o
  "_sf_close", referenced from:
      sf::priv::SoundFile::~SoundFile()in SoundFile.o
      sf::priv::SoundFile::~SoundFile()in SoundFile.o
      sf::priv::SoundFile::OpenRead(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.o
      sf::priv::SoundFile::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)in SoundFile.o
      sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


I'm new to Macs (but experienced in programming in general) so I'm unsure how to resolve this.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
[OSX][SFML2] _sf_open, _sf_open_virtual, etc.
« Reply #1 on: February 27, 2011, 01:01:49 am »
What do you get when you type this in a Terminal ?
Code: [Select]
file /Users/name/Downloads/sfml2/extlibs/libs-osx/Frameworks/sndfile.framework/sndfile
Want to play movies in your SFML application? Check out sfeMovie!

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
[OSX][SFML2] _sf_open, _sf_open_virtual, etc.
« Reply #2 on: February 27, 2011, 05:04:55 am »
Quote from: "Ceylo"
What do you get when you type this in a Terminal ?
Code: [Select]
file /Users/name/Downloads/sfml2/extlibs/libs-osx/Frameworks/sndfile.framework/sndfile


Code: [Select]
ASCII text, with no line terminators

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
[OSX][SFML2] _sf_open, _sf_open_virtual, etc.
« Reply #3 on: February 27, 2011, 10:31:38 am »
SFML / OS X developer

 

anything