sandman
07-09-2004, 06:26 PM
I am developing a remaster of Knoppix with some games, and I called it LLGP.
In this kind of live distro, is very useful accelerated 3D driver. I worked to include Nvidia drivers, and I had an idea.
It's known that nvidia drivers use their version of libGL, that is in conflict with OpenGL, and this is my solution in brief.
I putted opengl files in a new directory: "/KNOPPIX/usr/X11R6/lib/libGL". In /KNOPPIX/usr/lib, /KNOPPIX/usr/X11R6/lib and /KNOPPIX/usr/X11R6/lib/modules/extensions I putted links to files in /KNOPPIX/usr/X11R6/lib/libGL. Then I created the directory "/KNOPPIX/usr/X11R6/lib/libGL.nvidia" where are placed Nvidia GLX files. Other files, like kernel module and xfree module are not in conflict so they are in the usual directory.
I modified also "/KNOPPIX/usr/sbin/mkxf86config", and $XMODULE="nv", it does some operations: it sets $XMODULE to "nvidia" and does "mount --bind /KNOPPIX/usr/X11R6/lib/libGL.nvidia /KNOPPIX/usr/X11R6/lib/libGL", so now all link to libGL in /usr/lib points to the Nvidia GLX files.
It's only a brief, it's a little more complex, but this is the idea, and it works! I prepared a patch for LLGP, and you can find it at http://tuxgamers.altervista.org/llgp_patch.php?tg_lang=en. With some modifications it will be used also on Knoppix. Download the patch to see my work.
I don't know if this idea will be used on Knoppix, but it may be used on some remasters.
In this kind of live distro, is very useful accelerated 3D driver. I worked to include Nvidia drivers, and I had an idea.
It's known that nvidia drivers use their version of libGL, that is in conflict with OpenGL, and this is my solution in brief.
I putted opengl files in a new directory: "/KNOPPIX/usr/X11R6/lib/libGL". In /KNOPPIX/usr/lib, /KNOPPIX/usr/X11R6/lib and /KNOPPIX/usr/X11R6/lib/modules/extensions I putted links to files in /KNOPPIX/usr/X11R6/lib/libGL. Then I created the directory "/KNOPPIX/usr/X11R6/lib/libGL.nvidia" where are placed Nvidia GLX files. Other files, like kernel module and xfree module are not in conflict so they are in the usual directory.
I modified also "/KNOPPIX/usr/sbin/mkxf86config", and $XMODULE="nv", it does some operations: it sets $XMODULE to "nvidia" and does "mount --bind /KNOPPIX/usr/X11R6/lib/libGL.nvidia /KNOPPIX/usr/X11R6/lib/libGL", so now all link to libGL in /usr/lib points to the Nvidia GLX files.
It's only a brief, it's a little more complex, but this is the idea, and it works! I prepared a patch for LLGP, and you can find it at http://tuxgamers.altervista.org/llgp_patch.php?tg_lang=en. With some modifications it will be used also on Knoppix. Download the patch to see my work.
I don't know if this idea will be used on Knoppix, but it may be used on some remasters.