Hi all,
I've got a mac a few days ago and today I tried to use SFML2 with XCode (4.5.2), but I had some problems:
After reading and trying many things said on the forum, I found
this tutorial, so that's what I did:
-Downloaded the .zip on github, and put the content in a "SFML" folder
-In CMake, "Where are the sources" I chose this folder
-"Where to build" I chose a folder called "SFMLBuild"
-Then I clicked "Configure", with Unix makefiles
-I selected all the options, excepted the doc
-Clicked "Configure" again and then "Generate"
At this point all was working and I had some files in my "SFMLBuild" directory.
-Then I opened a terminal and wrote "make clean"
-I wrote "make install"
-After a moment, it was done, without any error.
So I opened XCode, created a new SFML application, with either the dylibs or the frameworks (same result).
But when I tried to compile it, there was 6 errors like that:
"sf::RenderWindow::RenderWindow(sf::VideoMode, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, sf::ContextSettings const&)", referenced from:
_main in main.o
And a the end:
(null): Symbol(s) not found for architecture x86_64
I really don't know what to do, I've seen that the tutorial is for XCode 4.2.1, but I don't think that's the problem.
So thank you very much if you can help me