SFML community forums

Help => General => Topic started by: Naufr4g0 on November 12, 2011, 10:52:52 pm

Title: Using SFML 1.6 under Ubuntu 11.10
Post by: Naufr4g0 on November 12, 2011, 10:52:52 pm
Hi, all! I'd like to compile my games (with SFML 1.6 code) under a linux OS.
I installed Ubuntu 11.10 distro on my laptop and then Code::Blocks.
I downloaded also SFML 1.6 SDK and install it on the system with "sudo make install" command.
I configured the IDE to work with them (linking libs dinamically), but I obtain this error:

Code: [Select]

compiling: main.cpp
/home/ubuntu/Documents/CodeBlocks projects/ProvaLinux/ProvaLinux/main.cpp:1:27: fatal error: /usr/local/include/SFML/System.hpp: Permission denied
compilation terminated.

 
Does someone know how to configure SFML to work under CodeBlocks?
I'm a very beginner with linux OSs. :/
Title: Using SFML 1.6 under Ubuntu 11.10
Post by: Kreshdev on January 17, 2012, 11:33:49 pm
I'm not sure, but it seems like the issue might be due to the fact that the file you are trying to access (from the IDE) is in a restricted directory and you might require sudo access for that. Try moving your SFML directory in a public place such as /home.
Title: Using SFML 1.6 under Ubuntu 11.10
Post by: aBallofWin on January 18, 2012, 05:54:09 pm
Just move them to one of your own directories like Documents, and it should not bring up the error :)