Hello,
I am trying without sucess to install SFML 2.0 on a Ubuntu 15.10. Up until now, I worked on SFML in Windows CodeBlocks and I didn't have any serious issues with the installation under Windwos.
However, I am having a lot of trouble when trying to install SFML 2.0 on Ubuntu depsite following the tutorial in the SFML website. I downloaded the Linux archive from the link
http://www.sfml-dev.org/download/sfml/2.0/. After that I extracted the archive to /usr/local/ directory. I try to compile the code main.cpp from the following tutorial:
http://www.sfml-dev.org/tutorials/2.0/start-linux.phpWhen I compile the code with:
g++ main.cpp -o main.o -L/usr/local/include -lsfml-graphics -lsfml-window -lsfml-system
I get:
/usr/bin/ld: cannot find -lsfml-graphics
/usr/bin/ld: cannot find -lsfml-window
/usr/bin/ld: cannot find -lsfml-system
When I compile the code simply with:
g++ main.cpp -o main.o -lsfml-graphics -lsfml-window -lsfml-system
I am getting:
fatal error: SFML/Graphics.hpp: No such file or directory.
Can you tell what should I do to install properly SFML 2.0 on my machine?
Thank you in advance.