Blank screen when using vgagl

I'm learning to use gcc to compile simple C and C++ programs with vga.h and vgagl.h. Programs using only vga.h are working out fine. But whenever I use any vgagl function all I get is blank screen with just..
Using VESA driver, 65472KB. VBE3
svgalib 1.4.3
on the top. This happens even with the demo programs I got with the svgalib package. The program probably hangs there and stays like that until I press Ctrl+C either at the blank screen or at the terminal I used to run the program.

Here's the output of glxgears:-
(while the gears were being displayed)
1798 frames in 5.0 seconds
1741 frames in 5.0 seconds
1706 frames in 5.0 seconds
(after ctrl+c)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 18038 requests (18035 known processed) with 0 events remaining.

Any help appreciated.
I'm not familiar with vga.h; however, the error message seems to indicate that the software needs to connect to an X-Windows server. If that is true, you'll need to start one, and also before you do, set your environment variable DISPLAY to your IP address and append :0.0 to it like this:

In the Korn shell:

export DISPLAY=127.0.0.1:0.0

You should do this in your .profile.
Well I am using Ubuntu and it has X-windows server gnome which keeps running right from start up. I don't have korn shell in my computer. Can I use bash instead? By .profile do you mean /home/<user name>/.profile?
I'm pretty sure bash will be just fine. And yes, I was speaking of the .profile in your home directory. There should be some man pages that will be helpful too.

Good luck!
With DISPLAY=127.0.0.1:0.0 glxgears didn't even work. It gave an error like "can't find :0.0".
And there's nothing about DISPLAY variable in my .profile.
127.0.0.1 was an example: Use YOUR IP.
I don't really understand. If I am not connected to any network what else can my IP be? You don't really mean my computer's IP when I connect to a LAN or internet, right? Anyway I tried that too; didn't work. If this IP is something else altogether, plz tell me how to find it.
When you run an X-Windows session, X-Windows needs the address of your monitor, which means on your PC or workstation. To that IP address you append 0.0. Perhaps there is a sysadmin there who can help?
Topic archived. No new replies allowed.