Hi All! I downloaded the latest copy of SFML 2.0 from the SVN repository and loaded it up with CMake. Then I opened it up with XCode just fine. However, when I try to compile I get the following errors:
ignoring file /Users/username/Desktop/sfml2/extlibs/libs-osx/Frameworks/sndfile.framework/sndfile, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_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_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::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)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::OpenRead(void const*, unsigned long)in SoundFile.o
"_sf_open", referenced from:
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(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.o
"_sf_strerror", referenced from:
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(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.o
sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.o
"_sf_open_virtual", referenced from:
sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Nothing seemed to work and then I found out that the main culprit was sndfile.framework. From reading from earlier posts, I decided to try this command:
file /Users/username/Desktop/sfml2/extlibs/libs-osx/Frameworks/sndfile.framework/sndfile
And this is what I get: ASCII text, with no line terminators
I decided to open up the sndfile.framework and noticed that links/aliases didn't show up. They were just plain text files. So I recreated them to no avail. Atleast the "file" command recognizes it as data now, but it does not see a framework. Anyone fix this problem or have any ideas? I'm at a loss....
Thanks!