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

Author Topic: Ubuntu 11.10, windows invisible  (Read 2587 times)

0 Members and 1 Guest are viewing this topic.

exons

  • Newbie
  • *
  • Posts: 6
    • View Profile
Ubuntu 11.10, windows invisible
« on: April 30, 2012, 10:51:52 pm »
 Hello, I started to use SFML today, and I have some problems with it, first, I downloaded the SDK tar on the website, extract it and compile it.
Then I tried to compile the samples (with the timer) and it works fine.
But when I tried to lauche others samples, (compilation works) i'm anable to see the window (i tried the window tutorial on your website and the pong in the sample).
I have an Nvidia GT540M with Optimus, and to manage that, I installed "optirun" (which works, I tried to start Celestia with it).
But when i lauche a projet I have this lines :

Failed to find a suitable pixel format for the window -- cannot create OpenGL context
Failed to find a suitable pixel format for the window -- cannot create OpenGL context
Failed to load sound buffer from file "datas/pong/ball.wav"
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  8 (X_MapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  67
  Current serial number in output stream:  69

and with optirun nothind appear in the terminal, but there is no window too.

I don't know what to do.

Exons.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Ubuntu 11.10, windows invisible
« Reply #1 on: May 01, 2012, 12:20:08 am »
What exactly is 'optirun'? Is it a test project that comes with the graphics card?

Since you're talking about SDK I've to assume you're using SFML 1.6, is this assumption valid?
Are you using the newest graphic card driver?

Did you make any changes to the window manager (X server)?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

exons

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Ubuntu 11.10, windows invisible
« Reply #2 on: May 01, 2012, 12:08:23 pm »
yes, I check my drivers, I didn't make any changest to X server.
Since 2 weeks I would like to change to Debian, and I think this is the last argument to move to Debian.
I will install the distrib this afternoon, to see if it works with it.

Thank you.
Edit : I'm back on Fedora 16 and SFML works (window too), so this topic is now usefull (because I can't help people who have the same problem as me)
« Last Edit: May 02, 2012, 10:08:51 pm by exons »

 

anything