smith.norton
March 8th, 2007, 09:58 AM
I have installed the glut development libraries on my Ubuntu 6.06 LTS system. I have installed the following packages:-
freeglut3-dev_2.4.0-4_amd64.deb
libgl1-mesa_6.4.1-0ubuntu8_amd64.deb
libgl1-mesa-dev_6.4.1-0ubuntu8_amd64.deb
libgl1-mesa-swrast-dev_6.4.1-0ubuntu8_amd64.deb
libglu1-mesa_6.4.1-0ubuntu8_amd64.deb
libglu1-mesa-dev_6.4.1-0ubuntu8_amd64.deb
mesa-common-dev_6.4.1-0ubuntu8_all.deb
xlibs-dev_7.0.0-0ubuntu45_all.deb
Now, I try to compile and run the program I got from here:- http://nehe.gamedev.net/data/lessons/linux/lesson01.tar.gz
On executing it, I got the following error.
smith@pepsi:~/OpenGL/lesson01$ gcc -lglut lesson1.c
smith@pepsi:~/OpenGL/lesson01$ ./a.out
freeglut (./a.out): ERROR: Internal error <Visual with necessary capabilities not found> in function fgOpenWindow
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 4 (X_DestroyWindow)
Resource id in failed request: 0x0
Serial number of failed request: 16
Current serial number in output stream: 19
Please tell me what has gone wrong and how I can correct it and make the code run.
freeglut3-dev_2.4.0-4_amd64.deb
libgl1-mesa_6.4.1-0ubuntu8_amd64.deb
libgl1-mesa-dev_6.4.1-0ubuntu8_amd64.deb
libgl1-mesa-swrast-dev_6.4.1-0ubuntu8_amd64.deb
libglu1-mesa_6.4.1-0ubuntu8_amd64.deb
libglu1-mesa-dev_6.4.1-0ubuntu8_amd64.deb
mesa-common-dev_6.4.1-0ubuntu8_all.deb
xlibs-dev_7.0.0-0ubuntu45_all.deb
Now, I try to compile and run the program I got from here:- http://nehe.gamedev.net/data/lessons/linux/lesson01.tar.gz
On executing it, I got the following error.
smith@pepsi:~/OpenGL/lesson01$ gcc -lglut lesson1.c
smith@pepsi:~/OpenGL/lesson01$ ./a.out
freeglut (./a.out): ERROR: Internal error <Visual with necessary capabilities not found> in function fgOpenWindow
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 4 (X_DestroyWindow)
Resource id in failed request: 0x0
Serial number of failed request: 16
Current serial number in output stream: 19
Please tell me what has gone wrong and how I can correct it and make the code run.