I have installed the NVIDIA SDK version 5.1 via CVS on my Mandrake 8.2 box, and I am unable to get the SDK to compile. The errors I get are all parse errors in the file glh_genext.h. The first one encountered when I run the makefile in the /nvsdk/OpenGL/src directory is as follows:
make: Entering directory
/home/bethune/nvsdk/OpenGL/src/tools/nvparse' g++ -DYY_NO_UNPUT -DUNIX -Wall -g -I../../../include/glh -I../../../include/shared -I/usr/X11R6/include -c nvparse.cpp In file included from ../../../include/glh/glh_extensions.h:45, from nvparse.cpp:13: ../../../include/glh/glh_genext.h:96: syntax error before ;’
[…many similar errors occurr…]
Line 96 of glh_extensions:
GLH_EXTERN PFNGLCOMPRESSEDTEXIMAGE3DARBPROC GLH_EXT_NAME(glCompressedTexImage3DARB) GLH_INITIALIZER;
Note that I’m using g++ 2.96 to compile.
A lot of people that run Mandrake 8.2 have had problems with header versions etc., so I figure I should list the steps I took to get OpenGL running on my system:
- Installed all MESA related packages that accompanied the Mdk 8.2 distribution.
- Installed latest NV glx driver and kernel packages.
- Copied glx.h, glxtokens.h and gl.h from /usr/shared/doc/NVIDIA-GLX1.0/include/GL to /usr/include/GL
While those steps allowed me to run openGL with hardware acceleration, I was unable to compile basic GLUT applications due to a conflict between the MESA GLU header and the NVIDIA GL header (The GLAPIENTRY symbol was the sticking point). I installed SGI’s GLU 1.3 implementation and that seemed to fix everything insofar as I can now build basic OpenGL applications.
The only thing that doesn’t currently work is the SDK compilation; I looked at the glh_genext.h header file, and I can’t really seem to find anything that points me in a direction to resolve the issue. Has anyone out there seen something like this before, or see any problems with the steps I’ve taken to set up my system to run with NVidia’s stuff? Any suggestions, no matter how farfetched, would be greatly appreciated…