Hello all,

Well, I've tried best I could, but I just can't seem to get Xgl working
with my new BLFS-SVN machine.  I'm tired of reading Ubuntu and Gentoo
howtos, and was curios if there was any sort of documentation for us
BLFSers?

Here's what I've done so far:

Hardware:  Dell i9300 Laptop with GeForce Go 6800 256MB Video and 2GB
RAM

Completed BLFS-SVN including Xorg7 with proprietary NVIDIA drivers.
This is working just fine.  glxgears showed 7000+ FPS, so everything
fine there.


So, now time to attempt Xgl:
su
mkdir -p /sources/Xorg
cd /sources/Xorg

#Then downloaded CVS glitz:
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvs/cairo co glitz
cd glitz
./autogen.sh --prefix=/usr --sysconfdir=/etc && make && make install
cd ..


#Next came Mesa:
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvs/mesa co Mesa
cd Mesa
find . -type f -exec sed -i 's@/usr/X11R6@/[EMAIL PROTECTED]' {} \; &&
sed -i '[EMAIL PROTECTED]/[EMAIL PROTECTED]/X11/modules@' src/glx/x11/dri_glx.c
make linux-indirect
bin/installmesa /usr
sed -i '[EMAIL PROTECTED](GLUT_LIB)@@g' configs/default &&
cd progs/xdemos &&
make PROGS='glxinfo glxgears'
install -v -m755 glxinfo glxgears /usr/bin
cd /sources/Xorg


#Then compiz:
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvs/xorg co
app/compiz
cd compiz
./autogen.sh --prefix=/opt/Xgl
--with-gl-libs="/sources/Xorg/Mesa/lib/libGL.a -pthread -ldrm"
make && make install
cd ..


#Next was xgl server
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvs/xorg co -r
xgl-0-0-1 xserver
cd /sources/Xorg/xserver/xorg
./autogen.sh --enable-xgl --disable-xorg --disable-xprint --enable-glx \
--enable-dri --with-mesa-source=/sources/Xorg/Mesa --with-release-snap=1
\
--disable-xvfb --disable-xnest --enable-xglx --enable-xkb \
--disable-kdriveserver --prefix=/usr
make && make install


#Then created the following launcher file in root's homespace
---------------------------------------------------------------------------------------------------------------
#!/bin/bash

## load Xgl server
Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv&
## load gnome-window decorator
DISPLAY=:0 gnome-window-decorator &
## load compiz
DISPLAY=:0 compiz --replace decoration wobbly fade switcher minimize
cube rotate zoom scale move resize place &
## finally, start gnome
DISPLAY=:0 gnome-session &
---------------------------------------------------------------------------------------------------------------

chmod +x startxgl
./startxgl

The above will launch into Xgl and everything appears fine, but Xgl
isn't working.  I mean, when I run glxgears now I get the following
error:

Xlib:  extension "GLX" missing on display "localhost:0.0".
Error: couldn't find RGB GLX visual


So something is obviously wrong with my NVIDIA + Xgl setup.  I've tried
moving all the NVIDIA installed files out of /usr/lib and into it's
own /opt/nvidia/lib folder.  Then altered the startxgl script like so:
--------------------------------------------------------------------------------------------------------------
#!/bin/bash

## load Xgl server
#Xgl :1 -fullscreen -ac -accel glx:pbuffer -accel xv&
#LD_LIBRARY_PATH=/opt/nvidia/lib Xgl :0 -fullscreen -ac -accel
glx:pbuffer -accel xv&
LD_PRELOAD=/usr/lib/libGL.so Xgl :1 -ac -accel glx:pbuffer -accel xv &

## load gnome-window decorator
#DISPLAY=:1 gnome-window-decorator &
LD_LIBRARY_PATH=/opt/nvidia/lib DISPLAY=:0 gnome-window-decorator &

## load compiz
#DISPLAY=:0 compiz --replace gconf &
LD_LIBRARY_PATH=/opt/nvidia/lib DISPLAY=:0 compiz --replace decoration
wobbly fade switcher minimize cube rotate zoom scale move resize place &

## finally, start gnome
#DISPLAY=:1 gnome-session &
LD_LIBRARY_PATH=/opt/nvidia/lib DISPLAY=:0 gnome-session &
--------------------------------------------------------------------------------------------------------------

I've tried changing all the DISPLAY=:0 to DISPLAY=:1.  And you can also
see from my commented lines, I've tried other combinations of
LD_LIBRARY_PATH's.

I've tried reinstalling the regular Xorg xserver, in attempt to put back
what NVIDIA took out:
"/usr/lib/X11/modules/extensions/libglx.so" 
...and then just try and point everything as needed to /opt/nvidia/lib

I've tried every combination of moving libs all over, but I'm at a loss.

Can someone please tell me if you've gotten this working with an NVIDIA
card, and if so what exactly did you have to do???

Thanks so much,
-Lup


-- 
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