Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I compile sfml project via command line on mac?

I am trying to compile a sfml project via command line under mac osx. Currently, I'm not able to get it to compile. Any help guys?

like image 228
dchhetri Avatar asked Jan 29 '12 17:01

dchhetri


1 Answers

For the simple window application they include as part of the templates. I was able to compile it with the following command.

g++ -framework OpenGL -framework SFML -framework SFML-window main.cpp

I hope that helps

like image 70
Mirza Avatar answered Oct 21 '22 17:10

Mirza