SFML community forums
General => General discussions => Topic started by: AritzBi on July 18, 2013, 01:59:06 am
-
Hi!
I've just started trying to develop something in OS X and I am having some issues in the installation. I want to install SFML to compile and use it only from command lines, avoiding XCode. So, my doubt is how should I install SFML to compile a file with a similar command to this : "g++ main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system"
Thanks in advance.
-
You'll probably want to look into clang. I believe that's the compiler x code would use anyways.
-
It works like on Linux when you install the dylibs. With the frameworks version, you need to use -framework sfml-module instead of -lsfml-module.
What are your current issue exactly?
-
Thank you all for your answers.
I've been used to use aptitude for downloading all the required libraries so I don't have experience installing new libraries manually neither in linux nor in OS X. That's why I've been reading and I've found that all the libraries should be located in /usr/local, am I right? I've noticed that in the SFML's folder that I've download are some folders as include, lib, extlibs... Those folders should be inserted in that /usr/local path to be recognised by clang or c++?
-
You'll find all the details here : http://www.sfml-dev.org/tutorials/2.0/start-osx.php