I tried to use the method in the resources to compile the test file on ubuntu linux. It errored.
~$ g++ -c main.cxx
In file included from /usr/include/SFML/Window.hpp:40:0,
from /usr/include/SFML/Graphics.hpp:32,
from main.cxx:1:
/usr/include/SFML/Window/OpenGL.hpp:47:23: fatal error: GL/gl.h: No such file or directory
I installed it through the Ubuntu repository, (sudo apt-get install libsfml-dev) so shouldn't OpenGL.hpp exist?
I’ve never gotten sfml to work on linux. windows, yes, but linux, for some reason, no. Which is a shame because I ceartainly like using g++ better than the Code::blocks I use on windows
.