SFML community forums
General => General discussions => Topic started 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?
-
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.
-
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.