SFML community forums

General => General discussions => Topic started by: AritzBi on July 18, 2013, 01:59:06 am

Title: How to install SFML in OS X avoiding XCode
Post 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.
Title: Re: How to install SFML in OS X avoiding XCode
Post by: Jebbs on July 18, 2013, 04:06:46 am
You'll probably want to look into clang. I believe that's the compiler x code would use anyways.
Title: Re: How to install SFML in OS X avoiding XCode
Post by: Hiura on July 18, 2013, 12:05:56 pm
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?
Title: Re: How to install SFML in OS X avoiding XCode
Post by: AritzBi on July 18, 2013, 12:50:13 pm
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++?
Title: Re: How to install SFML in OS X avoiding XCode
Post by: Hiura on July 18, 2013, 01:19:23 pm
You'll find all the details here : http://www.sfml-dev.org/tutorials/2.0/start-osx.php