1
General / Building SFML 2.0 on Mac OS X Lion
« on: August 04, 2011, 08:07:39 pm »
Hi
I'm having problems building SFML 2.0 on my MAC.
I have followed these intstructions.
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php
First I tried to build using XCode 4 but encountered the same problem.
Then I tried using MAKE instead but still got this error.
Does anyone know how to solve it ?
I'm having problems building SFML 2.0 on my MAC.
I have followed these intstructions.
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php
First I tried to build using XCode 4 but encountered the same problem.
Then I tried using MAKE instead but still got this error.
Does anyone know how to solve it ?
Code: [Select]
Linking CXX shared library ../../../lib/libsfml-graphics.dylib
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.cpp.o
sf::Font::GetLineSpacing(unsigned int) constin Font.cpp.o
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.cpp.o
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin Font.cpp.o
"_FT_Load_Char", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.cpp.o
"_FT_Get_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.cpp.o
"_FT_Outline_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.cpp.o
"_FT_Glyph_To_Bitmap", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.cpp.o
"_FT_Bitmap_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.cpp.o
"_FT_Done_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin Font.cpp.o
"_FT_Done_Face", referenced from:
sf::Font::Cleanup() in Font.cpp.o
"_FT_Done_FreeType", referenced from:
sf::Font::Cleanup() in Font.cpp.o
"_FT_Get_Char_Index", referenced from:
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin Font.cpp.o
"_FT_Get_Kerning", referenced from:
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin Font.cpp.o
"_FT_Init_FreeType", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.cpp.o
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.cpp.o
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.cpp.o
"_FT_Open_Face", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.cpp.o
"_FT_Select_Charmap", referenced from:
sf::Font::LoadFromStream(sf::InputStream&) in Font.cpp.o
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.cpp.o
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.cpp.o
"_FT_New_Memory_Face", referenced from:
sf::Font::LoadFromMemory(void const*, unsigned long)in Font.cpp.o
"_FT_New_Face", referenced from:
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in Font.cpp.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/dy/k6cwbqq57jb4vt69_0ypvvzh0000gn/T//cc0J3NCf.out (No such file or directory)
make[2]: *** [lib/libsfml-graphics.2.0.dylib] Error 1
make[1]: *** [src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/all] Error 2
make: *** [all] Error 2