Thanks for the help.
Now I rebuild SFML with the BUILD_FRAMEWORK options checked. However during the linking stage, it seems to be not able to find certain symbols eg. sf::VideoMode etc
make -f ./build.makefile config=config.makefile
g++ -c -fmessage-length=0 -DDEBUG -O0 -g3 -gdwarf-2 -Wall -Wno-missing-braces main.cpp -o debug/main.o
g++ -c -fmessage-length=0 -DDEBUG -O0 -g3 -gdwarf-2 -Wall -Wno-missing-braces -MM -MP -MT debug/main.o main.cpp -o debug/main.d
g++ -framework SFML -framework OpenGL -framework Cocoa -gdwarf-2 -o debug/sfml-test-d debug/main.o
Undefined symbols for architecture x86_64:
"sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)", referenced from:
_main in main.o
"sf::Window::Window(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::ContextSettings const&)", referenced from:
_main in main.o
"sf::Window::PollEvent(sf::Event&)", referenced from:
_main in main.o
"sf::Window::Display()", referenced from:
_main in main.o
"sf::Window::~Window()", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [debug/sfml-test-d] Error 1
make: *** [tests] Error 2
edit: if I compile with just the shared libraries it works (i.e with the -l options). How do I get it to compile using the framework option?