I'm trying to compile SFML2 in Snow Leopard but I'm getting the following errors:
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.