/usr/local/inclue/SFML permission dined

Hello everyone.

In a project using SFML, I am trying to compile my team-mate part through make. All is runing fine on his ubuntu, but all goes wrong on my debian.

I put all the includes needed by the libsfml on the /usr/local/include/ folder and all the .so of the libsfml on the /usr/local/lib/

 
ls -l /usr/local/include : drw-rwSrw- 7 root User size date SFML


I dont know if the capital S is the key of the problem, i never seen it before.
On sudo Make all works fine. But i shouldn't need to be root to compile such a project.

Any advice?


Here is the error output :
1
2
3
LibrarySFML.hpp:14:29: error: /usr/local/include/SFML/Graphics.hpp: Permission denied
LibrarySFML.hpp:15:27: error: /usr/local/include/SFML/System.hpp: Permission denied
LibrarySFML.hpp:16:27: error: /usr/local/include/SFML/Window.hpp: Permission denied


LibrarySFML.hpp line 14-15-16 :
1
2
3
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp> 
Last edited on
You need to add execute permissions or else you can see the subdirectories. Run:
 
sudo chmod a+x /usr/local/include
You shouldn't use that directory anyway if you do not have/want root access, create the subdirectories in /home/username/ and rebuild your project.
Topic archived. No new replies allowed.