[cairo] [PATCH glitz] without this patch glitz won't work with closed source nvidia drivers

Jonathan Brandmeyer jbrandmeyer at earthlink.net
Tue Mar 8 06:46:26 PST 2005


On Tue, 2005-03-08 at 14:27 +0100, David Reveman wrote:
> On Mon, 2005-03-07 at 23:37 +0100, Kristof Vansant wrote: 
> > Index: configure.in
> > ===================================================================
> > RCS file: /cvs/cairo/glitz/configure.in,v
> > retrieving revision 1.17
> > diff -u -r1.17 configure.in
> > --- configure.in        1 Mar 2005 15:49:37 -0000       1.17
> > +++ configure.in        7 Mar 2005 22:34:49 -0000
> > @@ -111,7 +111,7 @@
> >    AC_PATH_XTRA
> > 
> >    if test "x$have_x" = "xyes"; then
> > -    GLX_LIBS="$X_LIBS -lX11 -lGL"
> > +   GLX_LIBS="$X_LIBS -lX11 -lGL -lXxf86vm"
> >      GLX_CFLAGS="$X_CFLAGS"
> > 
> >      save_LIBS="$LIBS"
> > 
> > look at this bugreport by me for more info:
> > (I first thought that nvidia was causing the problem)
> > https://bugzilla.ubuntu.com/show_bug.cgi?id=7123
> > 
> 
> The last post on that bug report is incorrect. glitz-glx does not
> require libXxf86vm.
> 
> I've had no problems with this, so I don't feel comfortable just adding
> -lXxf86vm to GLX_LIBS. 
> 
> However, as far as I know, there's no standard way to figure out LIBS
> and CFLAGS for GLX applications so the configure script probably needs
> some magic to get GLX_LIBS and GLX_CFLAGS correct on all systems. If
> someone with experience of this would provide me with some autoconf
> magic that that will do this, I'd be more than happy.
> 
> For the libXxf86vm problem, it's probably enough to check if we can link
> an application without -lXxf86vm and only add it to GLX_LIBS if that's
> not true.
> 
> -David

I use nvidia-glx on Debian Sid all the time for my GL development.  The
problem is that if you have nvidia-glx installed, you must also have
nvidia-glx-dev installed as a build-dependency for OpenGL applications.
This is due to the fact that the libGL.so symlink needs to be set up
correctly, and won't be if you have something like xlibmesa-gl-dev
installed.  Note also that (on stock Debian, anyway), nvidia-glx-dev
does _not_ install NVIDIA's opengl header files to the default
location[1], it only fixes up the library symlinks.  

Glitz builds just fine on my system without adding this extra library to
LIBS, and I am also using the NVIDIA proprietary drivers.

-Jonathan

[1] If you really want to use their proprietary headers, they are
installed under /usr/share/doc/nvidia-glx-dev/include.  This package
uses the Free header files from xlibmesa-gl-dev.




More information about the cairo mailing list