|
Standard openGL program does not run on linux
I'm porting a code from IRIX-gl to openGL and used standard examples iobounce.c and zrgb.c from techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=bks&srch=&fname=/SGI_Developer/OpenGL_Porting/sgi_html/apf.html
I compiled using
gcc zrgb.c -lGL -lGLU -lX11 -lm -L/usr/X11R6/lib -o zrgb
To my surprise, zrgb.c is running fine on linux, but iobounce.c gives the error "could'nt get visual", even though it did compile without error and it does run on Silicon Graphics.
How can this be? What do I do to get iobounce running?
|