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

Author Topic: No Window :/  (Read 8368 times)

0 Members and 4 Guests are viewing this topic.

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« on: January 29, 2010, 12:50:49 pm »
Hello,
i can't see the Game Window, only in the Taskbar it's showed that it's created on Ubuntu.
I'm using GCC and Code::Blocks.
This is the Code:
Code: [Select]
#include <SFML/Graphics.hpp>
#include <iostream>

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");

    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


Thank you for your help.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No Window :/
« Reply #1 on: January 29, 2010, 12:52:29 pm »
Which version of SFML are you using? Do you have any error message in the console?
Laurent Gomila - SFML developer

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« Reply #2 on: January 29, 2010, 01:18:47 pm »
Yes, there's one Warning in the Console: "warning: GDB: Failed to set controlling terminal: Operation not permitted" and i'm using SFML 1.5

Thanks for your reply

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No Window :/
« Reply #3 on: January 29, 2010, 01:22:19 pm »
This one is related to the debugger. What if you don't run your program in debug mode?
Laurent Gomila - SFML developer

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« Reply #4 on: January 29, 2010, 01:34:45 pm »
In Release Mode there's no Error and no Window :/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No Window :/
« Reply #5 on: January 29, 2010, 01:45:12 pm »
What about the precompiled samples from the SFML SDK? Did you try to run them?
Laurent Gomila - SFML developer

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« Reply #6 on: January 29, 2010, 01:55:50 pm »
They don't work(same  error, no window), except the wxwidgets and the qt example.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No Window :/
« Reply #7 on: January 29, 2010, 02:16:22 pm »
What is your OS / graphics card? Are your graphics drivers up-to-date?
Laurent Gomila - SFML developer

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« Reply #8 on: January 29, 2010, 02:19:18 pm »
Operating System is Ubuntu 9.10 (Karmic Koala).


Edit: I just updated the Graphics-Driver ;)
Edit 2: I've got an NVIDIA Gefore 7600 GT

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No Window :/
« Reply #9 on: January 29, 2010, 02:30:21 pm »
Did the driver update change anything?

Have you tried to run glxgears?
Laurent Gomila - SFML developer

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« Reply #10 on: January 29, 2010, 02:40:10 pm »
The driver update did not change anything, glxgears works without problems.

I made a picture of the problem: The Program is active and in the Taskbar( also in the right corner on the screen panel ) but there's no window ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No Window :/
« Reply #11 on: January 29, 2010, 02:45:17 pm »
Do you use Compiz, or any other OpenGL-based window manager?
Laurent Gomila - SFML developer

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« Reply #12 on: January 29, 2010, 03:02:11 pm »
I used Compiz and just tried it without Compiz(deinstalling), now it looks like this
Edit: I don't know about any other Window-Manager ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
No Window :/
« Reply #13 on: January 29, 2010, 03:32:41 pm »
Did you restart your computer after deinstalling Compiz? :D
Laurent Gomila - SFML developer

nowindow123

  • Newbie
  • *
  • Posts: 12
    • View Profile
No Window :/
« Reply #14 on: January 29, 2010, 03:39:08 pm »
Yes :/