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

Author Topic: Linux problem - permisions?  (Read 3464 times)

0 Members and 1 Guest are viewing this topic.

iooo

  • Newbie
  • *
  • Posts: 1
    • View Profile
Linux problem - permisions?
« on: July 05, 2009, 11:53:34 am »
Hi,

I have problem running SFML apps on linux as an ordinary user. Compiling is ok. When i start app, this error appears:

Failed to find a suitable pixel format for the window -- cannot create OpenGL context

...and then Segmentation fault

When I start it as root everything works without problems.

I did try all examples from SFML SDK and all behave in the same way. I'm completely lost. Where the problem may be?

blewisjr

  • Newbie
  • *
  • Posts: 23
    • View Profile
Linux problem - permisions?
« Reply #1 on: July 26, 2009, 06:50:53 pm »
Try to chmod the compiled binary for read, write, execute permissions.  If that works your problem should be solved.  Not exactly sure why it is doing this but that should take care of the issue.

_seb_

  • Newbie
  • *
  • Posts: 16
    • View Profile
Linux problem - permisions?
« Reply #2 on: July 29, 2009, 02:09:04 pm »
Try to execute glxinfo (a OpenGL tool).

Maybe, your user have a .driconf in his homedirectory (delete this file if exists and try again to execute SFML programs).

Check the permissions on card device (/dev/card0 probably). Your user have maybe not the video group permissions.