russell aspinwall wrote: > Hi, > > I have been trying to build Qt-4.3.3-open-source (without OpenGL there is no > problem) with OpenGL support. As I have a Geforce 8600 card and using the > NVIDIA-Solaris-x86-169.07 driver, I thought it would be relatively easy on > Solaris 10 8/07 which I know is an old build. > Have the problems I have been experiencing been resolved in OpenSolaris? > > The NVIDIA drivers have include files in /usr/X11/include/GL and > /usr/X11/include/NVIDIA/GL gl.h (opengl 1.1), glext.h (opengl 1.2.1), glx.h > (v1.2), glxext.h (v1.2.1). > FWIW, the NVIDIA supplied GLX is 1.4. > When building qt-4.3.3 as follows (which requires a minimum of OpenGL v1.2.1): > > CC=cc CXX=CC F77=f90 ./configure --prefix=/opt/gnu -I/usr/X11/include/NVIDIA > -L/usr/X11/lib/NVIDIA > > The #include <GL/gl.h> appends the /usr/X11/include/NVIDIA/ with GL/gl.h and > finds the files, > however with the Mesa option this can not work as the mesa library does not > contain a GL subdirectory ie. > > CC=cc CXX=CC F77=f90 ./configure --prefix=/opt/gnu -I/usr/X11/include/mesa > -L/usr/X11/lib/mesa > > The #include <GL/gl.h> appends the /usr/X11/include/mesa with GL/gl.h but the > actual file is located in /usr/X11/include/mesa/gl.h but it should be > /usr/X11/include/mesa/GL/gl.h > > Your include path should be just -I/usr/X11/include and your lib path just -L/usr/X11/lib. (When patch 125720-16 is released these won't be needed as /usr/include and /usr/lib will work).
The ogl-select SMF service will select the select the proper /usr/X11/include/GL symlinks to use at boot depending on the graphics card driver. If you want to test building against the MESA headers and libraries either use a system without NVIDIA graphics or uninstall the NVIDIA driver (packages NVDAgraphics and NVDAgraphicsr) and reboot.