On 6/28/06, Vladimir A. Pavlov <[EMAIL PROTECTED]> wrote:
First, thanks for the hint, I'll give it a try. But I have a few
questions.

On, Wednesday 28 June 2006 10:19 Stef Bon wrote:
> You'll have to install libdrm and Mesa, and install the nvidia driver
> from source over it.

1. Can you tell me please what libdrm is needed for? It seems I
shouldn't build it since I don't use kernel DRM, i.e. I turn off the
option when make menuconfig.

Right. Since the NVIDIA implementation (and the ATI one) provide their
own kernel modules to access the hardware, kernel drm and libdrm
aren't used. It won't hurt to install it, though. It just won't be
used by Mesa or X when you're using the NVIDIA kernel module and GL.
Still, I would build it because there might be some code in Mesa or X
that isn't built if libdrm isn't there. This is just a guess. I
actually don't know all the gory details.

2. Do I correctly understand that "install the nvidia driver _from
source_" means "run sh NVIDIA-SOMESTUFF.sh"? Or should I run "sh
NVIDIA-SOMESTUFF.sh --extract-only" and then use the created directory
to build/install the driver? In other words NVIDIA recommends the
former way so can I use it in this case?

I personally hate those installer scripts and do it by hand.  In other
words, I use --extract-only and then install what I want.  As I
understand, though, the nvidia installer will move original files like
libGL out of the way and not delete them. I think most people do use
the script.

This is the script that I used, but I don't actually have an NVIDIA
card to test it out. You can probably figure out the values to fill in
for the variables.  PM_DEST is just a fakeroot location.  This is from
the top of the --extract-only directory.

mkdir -pv ${PM_DEST}/usr/lib/nvidia
install -v -m755 usr/lib/libGL{,core}.so.* ${PM_DEST}/usr/lib/nvidia
ln -svf libGL.so.1.0.${SOVERSION} ${PM_DEST}/usr/lib/nvidia/libGL.so.1
ln -svf libGLcore.so.1.0.${SOVERSION} ${PM_DEST}/usr/lib/nvidia/libGLcore.so.1

install -v -m755 usr/lib/libnvidia-cfg.so.* usr/lib/tls/libnvidia-tls.so.* \
   usr/X11R6/lib/libXvMCNVIDIA.so.* ${PM_DEST}/usr/lib
for SO in lib{nvidia-{cfg,tls},XvMCNVIDIA}.so.1.0.${SOVERSION}; do
   ln -sv ${SO} ${PM_DEST}/usr/lib/${SO%%.*}.so.1
   ln -sv ${SO%%.*}.so.1 ${PM_DEST}/usr/lib/${SO%%.*}.so
done

mkdir -pv ${PM_DEST}/usr/lib/X11/modules/{drivers,extensions/nvidia}
install -v -m755 usr/X11R6/lib/modules/drivers/nvidia_drv.so \
   ${PM_DEST}/usr/lib/X11/modules/drivers
install -v -m755 usr/X11R6/lib/modules/extensions/libglx.so.* \
   ${PM_DEST}/usr/lib/X11/modules/extensions/nvidia
ln -svf libglx.so.1.0.${SOVERSION} \
   ${PM_DEST}/usr/lib/X11/modules/extensions/nvidia/libglx.so

mkdir -pv ${PM_DEST}/usr/bin
install -v -m755 usr/bin/nvidia-{settings,xconfig} ${PM_DEST}/usr/bin

mkdir -pv ${PM_DEST}/usr/share/applications
sed -e "s|__UTILS_PATH__/||" \
   -e "s|__DOCS_PATH__/|/usr/share/doc/nvidia-${VERSION}/|" \
   usr/share/applications/nvidia-settings.desktop \
   > ${PM_DEST}/usr/share/applications/nvidia-settings.desktop

mkdir -pv ${PM_DEST}/usr/share/{doc/nvidia-${VERSION},man/man1}
cp -r usr/share/doc/* ${PM_DEST}/usr/share/doc/nvidia-${VERSION}
install -v -m644 usr/share/man/man1/nvidia-{settings,xconfig}.1.gz \
   ${PM_DEST}/usr/share/man/man1

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to