SFML community forums

General => General discussions => Topic started by: iooo on July 05, 2009, 11:53:34 am

Title: Linux problem - permisions?
Post by: iooo 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?
Title: Linux problem - permisions?
Post by: blewisjr 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.
Title: Linux problem - permisions?
Post by: _seb_ 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.