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

Author Topic: Permission denied error  (Read 2564 times)

0 Members and 1 Guest are viewing this topic.

rXp

  • Newbie
  • *
  • Posts: 4
    • MSN Messenger - lol482@hotmail.com
    • View Profile
Permission denied error
« on: December 02, 2010, 09:15:02 am »
Hello,

I'm working on Ubuntu and Codeblocks. When I build+launch the application (the pong sample) everything goes well for the building part but when it tries to launch the application the console appears and the error "Permission denied" is displayed.
What can I do ?

Best regards,

rXp>!<

lifer

  • Newbie
  • *
  • Posts: 1
    • View Profile
Permission denied error
« Reply #1 on: December 18, 2010, 10:07:10 pm »
I have the same problem on Ubuntu, but on Windows works just fine

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Permission denied error
« Reply #2 on: December 19, 2010, 12:27:50 pm »
You mean, using cmake to generate c::b project and then build and run ?

On Windows as there are no security access to folder, you have no problem.

On Unix-like (Ubuntu and OS X for example) you have some access right security. The thing is, to be able to run pong example, you have to install SFML. That's this step which fails.

The easy-fast solution is to use Makefile and use «sudo make install» followed by «cd /usr/local/share/SFML/example/pong/ && ./pong».
SFML / OS X developer

 

anything