LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   compiling programs + gl.h and glx.h errors (https://www.linuxquestions.org/questions/slackware-14/compiling-programs-gl-h-and-glx-h-errors-506494/)

Daedra 12-01-2006 06:56 AM

compiling programs + gl.h and glx.h errors
 
Hi Guys, I've been recompiling stuff here and there and like my previous post about mplayer I have the latest nvidia drivers installed and working fine on all GL apps but when ever I complie programs that check for GL with the nvidia drivers installed I get errors like this

checking for glBegin in -lGL... yes
checking GL/gl.h usability... no
checking GL/gl.h presence... yes
configure: WARNING: GL/gl.h: present but cannot be compiled
configure: WARNING: GL/gl.h: check for missing prerequisite headers?
configure: WARNING: GL/gl.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for GL/gl.h... yes
checking GL/glx.h usability... no
checking GL/glx.h presence... yes
configure: WARNING: GL/glx.h: present but cannot be compiled
configure: WARNING: GL/glx.h: check for missing prerequisite headers?
configure: WARNING: GL/glx.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##
checking for GL/glx.h... yes
checking for inflate in -lz... yes
checking for esd-config... /usr/bin/esd-config
checking for ESD - version >= 0.2.8... yes
checking for esd_get_latency in -lesd... yes
checking for libmikmod-config... /usr/bin/libmikmod-config


Does anyone know whats going on here? Because if I uninstall the nvidia drivers it finds and compiles GL just fine.


Thanks.

jschiwal 12-01-2006 07:48 AM

From the nvidia faq:
Quote:

Where can I get gl.h or glx.hso I can compile OpenGL programs?


Most systems come with these header files preinstalled. However, NVIDIA provides its own gl.h and glx.h files, which get installed by default as part of driver installation. If you prefer that the NVIDIA-distributed OpenGL header files not be installed, you can pass the --no-opengl-headers option to the NVIDIA-Linux-x86_64-1.0-9629-pkg1.run file during installation.

Daedra 12-01-2006 06:31 PM

Ah, FAQ's are a beautiful thing. That worked perfectly.

THANK YOU!


All times are GMT -5. The time now is 12:30 PM.