Hi everyone. I want to use SFML to make some very simple graphics (nothing remotely interactive, just drawing a picture once based on some data my program spits out at the end).
However, I'm using Mac OS X. The tutorial for SFML says to use Xcode with it. I don't use Xcode nor do I want to start (actually, if I had my way, I wouldn't be using a Mac, I'd be using a PC with Linux. But this is a lab computer). I currently just use vi and g++ for coding.
Can I just use SFML without Xcode? I tried their example program for Linux, but it said that it couldn't find SFML/System.hpp (included with #include <SFML/System.hpp>), which I would guess is probably because OSX and Linux keep headers in different locations.
Does anyone know how I can just use SFML without Xcode in OSX?
You can of course use the library without an IDE.
To tell g++ to search for includes in a certain directory, use -I/path/here/
Just add the path to wherever your SFML includes are. But perhaps it would be better to just move the files to the standard include directory (if you have root access, that is).
You'll also need to link against libsfml-graphics, libsfml-window and libsfml-system.