7
« on: August 04, 2011, 08:33:21 pm »
How can I build SFML 2.0 using XCode 4 ?
I get these errors:
ld: warning: ignoring file /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"_FT_Set_Pixel_Sizes", referenced from:
sf::Font::SetCurrentSize(unsigned int) constin Font.o
"_FT_Load_Char", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Get_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Outline_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Glyph_To_Bitmap", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Bitmap_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Done_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Done_Face", referenced from:
sf::Font::Cleanup() in Font.o
"_FT_Done_FreeType", referenced from:
sf::Font::Cleanup() in Font.o
"_FT_Get_Char_Index", referenced from:
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin Font.o
"_FT_Get_Kerning", referenced from:
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin Font.o
"_FT_Init_FreeType", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.o
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.o
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.o
"_FT_Open_Face", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.o
"_FT_Select_Charmap", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.o
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.o
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.o
"_FT_New_Memory_Face", referenced from:
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.o
"_FT_New_Face", referenced from:
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
ld: warning: ignoring file /opt/local/lib/libfreetype.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
"_FT_Set_Pixel_Sizes", referenced from:
sf::Font::SetCurrentSize(unsigned int) constin Font.o
"_FT_Load_Char", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Get_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Outline_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Glyph_To_Bitmap", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Bitmap_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Done_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.o
"_FT_Done_Face", referenced from:
sf::Font::Cleanup() in Font.o
"_FT_Done_FreeType", referenced from:
sf::Font::Cleanup() in Font.o
"_FT_Get_Char_Index", referenced from:
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin Font.o
"_FT_Get_Kerning", referenced from:
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin Font.o
"_FT_Init_FreeType", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.o
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.o
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.o
"_FT_Open_Face", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.o
"_FT_Select_Charmap", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.o
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.o
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.o
"_FT_New_Memory_Face", referenced from:
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.o
"_FT_New_Face", referenced from:
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status