grimdaze
February 6th, 2006, 06:59 PM
ok, i'm running ubuntu 5.10 on a power pc g3 and i'm trying to learn glut. i use this code to create a window:
#include <GL/glut.h>
bool init()
{
return true;
}
void display()
{
}
int main(int argc, char *argv[])
{
glutInit(&argc,argv);
glutInitWindowPosition(50,50);
glutInitWindowSize(640,480);
glutCreateWindow("My GLUT Window");
glutDisplayFunc(display);
if (!init())
return 1;
glutMainLoop();
return 0;
}
and this, in a makefile, to complie:
main : main.cpp
g++ -lGL -lGLU -lglut main.cpp -o main
clean :
rm -rf main
it all compiles fine but when i try to run the program i get this error:
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0x28
libGL warning: 3D driver claims to not support visual 0x2c
libGL warning: 3D driver claims to not support visual 0x30
Segmentation fault
is this a hardware issue or am i doing something wrong?
#include <GL/glut.h>
bool init()
{
return true;
}
void display()
{
}
int main(int argc, char *argv[])
{
glutInit(&argc,argv);
glutInitWindowPosition(50,50);
glutInitWindowSize(640,480);
glutCreateWindow("My GLUT Window");
glutDisplayFunc(display);
if (!init())
return 1;
glutMainLoop();
return 0;
}
and this, in a makefile, to complie:
main : main.cpp
g++ -lGL -lGLU -lglut main.cpp -o main
clean :
rm -rf main
it all compiles fine but when i try to run the program i get this error:
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0x28
libGL warning: 3D driver claims to not support visual 0x2c
libGL warning: 3D driver claims to not support visual 0x30
Segmentation fault
is this a hardware issue or am i doing something wrong?