Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Using SFML 1.6 under Ubuntu 11.10  (Read 2119 times)

0 Members and 1 Guest are viewing this topic.

Naufr4g0

  • Full Member
  • ***
  • Posts: 112
    • View Profile
Using SFML 1.6 under Ubuntu 11.10
« 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. :/

Kreshdev

  • Newbie
  • *
  • Posts: 6
    • View Profile
Using SFML 1.6 under Ubuntu 11.10
« Reply #1 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.

aBallofWin

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Using SFML 1.6 under Ubuntu 11.10
« Reply #2 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 :)