View previous topic :: View next topic |
Author |
Message |
aidy l33t
Joined: 07 Apr 2005 Posts: 915
|
Posted: Mon Feb 27, 2006 4:01 pm Post subject: |
|
|
unz wrote: | A big thanks to CoffeeBuzz for his effort .. everything works
just two question ... direct rendering is supposed to be enabled or not?, i remember it was only ati's stuff ... but now?
did anyone managed to use gdm? i modified it to use xgl ... but it starts x ... i don't mind typing everytime ./startxgl ... but i'd like to end my session, and not to kill it. I got problem too with dbus-session, it isn't exported and some progs don't find it. |
I have everything automagical with gdm...
Follow this guide:
http://www.ubuntuforums.org/showthread.php?t=131267
(make sure you do killall gdm. crtl-alt-backspace won't work for updating the X server. BTW, no need for that second gdm config too, I kept everything in the normal gdm config file, as noted by the gentoo wiki)
Then in the gnome session manager just remove metacity from the session, add your xgl start script to the autostart applications list (don't put it at 1 or so, keep it on 50)
This is my start script:
Code: | adriaan@localhost ~ $ cat /usr/bin/startxgl
gnome-window-decorator & LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
|
|
|
Back to top |
|
|
TuffSoundinName Tux's lil' helper
Joined: 04 Mar 2005 Posts: 102 Location: Colorado
|
Posted: Tue Feb 28, 2006 6:38 am Post subject: |
|
|
Hi. I recently tried compiling xgl also and it completely bombed out with the following error: Code: |
glxcmds.c: In function `__glXVendorPrivateWithReply':
glxcmds.c:2351: error: `X_GLvop_IsRenderbufferEXT' undeclared (first use in this function)
glxcmds.c:2351: error: (Each undeclared identifier is reported only once
glxcmds.c:2351: error: for each function it appears in.)
glxcmds.c:2353: error: `X_GLvop_GenRenderbuffersEXT' undeclared (first use in this function)
glxcmds.c:2355: error: `X_GLvop_GetRenderbufferParameterivEXT' undeclared (first use in this function)
glxcmds.c:2357: error: `X_GLvop_IsFramebufferEXT' undeclared (first use in this function)
glxcmds.c:2359: error: `X_GLvop_GenFramebuffersEXT' undeclared (first use in this function)
glxcmds.c:2361: error: `X_GLvop_CheckFramebufferStatusEXT' undeclared (first use in this function)
glxcmds.c:2363: error: `X_GLvop_GetFramebufferAttachmentParameterivEXT' undeclared (first use in this function)
if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -I/var/tmp/portage/xgl-20060216/work/Mesa/include -I/var/tmp/portage/xgl-20060216/work/Mesa/src/mesa/glapi -I/var/tmp/portage/xgl-20060216/work/Mesa/src/mesa/main -DUSE_MGL_NAMESPACE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -O2 -march=athlon-xp -pipe -MT glxcmdsswap.lo -MD -MP -MF ".deps/glxcmdsswap.Tpo" -c -o glxcmdsswap.lo glxcmdsswap.c; \
then mv -f ".deps/glxcmdsswap.Tpo" ".deps/glxcmdsswap.Plo"; else rm -f ".deps/glxcmdsswap.Tpo"; exit 1; fi
make[2]: *** [glxcmds.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -I/var/tmp/portage/xgl-20060216/work/Mesa/include -I/var/tmp/portage/xgl-20060216/work/Mesa/src/mesa/glapi -I/var/tmp/portage/xgl-20060216/work/Mesa/src/mesa/main -DUSE_MGL_NAMESPACE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -O2 -march=athlon-xp -pipe -MT glxcmdsswap.lo -MD -MP -MF .deps/glxcmdsswap.Tpo -c glxcmdsswap.c -fPIC -DPIC -o .libs/glxcmdsswap.o
glxcmdsswap.c: In function `__glXSwapVendorPrivateWithReply':
glxcmdsswap.c:1129: error: `X_GLvop_IsRenderbufferEXT' undeclared (first use in this function)
glxcmdsswap.c:1129: error: (Each undeclared identifier is reported only once
glxcmdsswap.c:1129: error: for each function it appears in.)
glxcmdsswap.c:1131: error: `X_GLvop_GenRenderbuffersEXT' undeclared (first use in this function)
glxcmdsswap.c:1133: error: `X_GLvop_GetRenderbufferParameterivEXT' undeclared (first use in this function)
glxcmdsswap.c:1135: error: `X_GLvop_IsFramebufferEXT' undeclared (first use in this function)
glxcmdsswap.c:1137: error: `X_GLvop_GenFramebuffersEXT' undeclared (first use in this function)
glxcmdsswap.c:1139: error: `X_GLvop_CheckFramebufferStatusEXT' undeclared (first use in this function)
glxcmdsswap.c:1141: error: `X_GLvop_GetFramebufferAttachmentParameterivEXT' undeclared (first use in this function)
make[2]: *** [glxcmdsswap.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/xgl-20060216/work/xgl-xorg/GL/glx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xgl-20060216/work/xgl-xorg/GL'
make: *** [all-recursive] Error 1
!!! ERROR: x11-base/xgl-20060216 failed.
Call stack:
ebuild.sh, line 1928: Called dyn_compile
ebuild.sh, line 966: Called src_compile
!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant. | Anybody know if this error is specific to XGL build 20060216? Oh, and here is my emerge info: Code: | Portage 2.1_pre5-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 AMD Duron(tm) processor
Gentoo Base System version 1.12.0_pre16
dev-lang/python: 2.3.5-r2, 2.4.2-r1
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-xgl"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apm arts avi berkdb bitmap-fonts crypt eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 javascript jpeg kde libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_evdev kernel_linux userland_GNU video_cards_nvidia video_cards_vesa video_cards_vga"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS |
|
|
Back to top |
|
|
aidy l33t
Joined: 07 Apr 2005 Posts: 915
|
Posted: Tue Feb 28, 2006 10:41 am Post subject: |
|
|
YAYAYAYAYAYAY!
OK, post me the output of "emerge glproto mesa glitz xgl -pv" |
|
Back to top |
|
|
Tiger683 Veteran
Joined: 08 Jan 2005 Posts: 1347 Location: Heffner's House
|
Posted: Tue Feb 28, 2006 10:43 am Post subject: |
|
|
TuffSoundinName wrote: | Hi. I recently tried compiling xgl also and it completely bombed out with the following error: |
CoffeeBuzz said he will kill anyone who posts this error again... Look in the XGL thread _________________ Retired gentoo user |
|
Back to top |
|
|
TuffSoundinName Tux's lil' helper
Joined: 04 Mar 2005 Posts: 102 Location: Colorado
|
Posted: Tue Feb 28, 2006 12:47 pm Post subject: |
|
|
Oops...must have missed that...LordMyth, here's the output of emerge -pv glproto mesa glitz xgl: Code: | Calculating dependencies... done!
[ebuild R ] x11-proto/glproto-1.4.5 USE="-debug" 0 kB
[ebuild U ] media-libs/mesa-6.4.3_alpha20060216 [6.4.2-r1] USE="motif -debug" VIDEO_CARDS="-ati -i810 -mga -none -s3virge -savage -sis -tdfx -trident -via" 0 kB [1]
[ebuild R ] media-libs/glitz-0.5.3 0 kB
[ebuild N ] x11-base/xgl-20060216 USE="ipv6" 0 kB [1]
Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/portage-xgl |
|
|
Back to top |
|
|
aidy l33t
Joined: 07 Apr 2005 Posts: 915
|
Posted: Tue Feb 28, 2006 12:54 pm Post subject: |
|
|
OK you just need to unmask all those packages.
Code: | echo ">=x11-proto/glproto-1.4.5" >> /etc/portage/package.unmask
echo ">=media-libs/glitz-0.5.3" >> /etc/portage/package.unmask |
Oh and BTW, you better use CoffeeBuzz's overlay |
|
Back to top |
|
|
Tiger683 Veteran
Joined: 08 Jan 2005 Posts: 1347 Location: Heffner's House
|
Posted: Tue Feb 28, 2006 12:55 pm Post subject: |
|
|
TuffSoundinName:
Hanno's overlay is broken atm, use CoffeeBuzz ovrelay, that will enable you to update glproto to 1.4.5-r1, which solves your problem...
BTW. You'll have to rebuild mesa cairo xgl etc. after that
:sigh: _________________ Retired gentoo user |
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 5:52 pm Post subject: |
|
|
Everything working perfect except for direct rendering. First I compiled everything with dri use flag, but didn't work though. Then I read from Hanno's blog that nvidia users should have -dri because the nvidia drivers have dri support of their own. Well, I recompiled xorg-server and xorg-x11 with -dri and re-emerged xf86-video-nv and nvidia-glx, but still not working. Do I have to recompile something else with -dri, or where is the problem?
Code: | ~ $ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: No
...
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 6800 GT/AGP/SSE/3DNOW!
OpenGL version string: 1.2 (2.0.1 NVIDIA 81.78)
...
|
_________________ Registered Linux User #382582 |
|
Back to top |
|
|
aidy l33t
Joined: 07 Apr 2005 Posts: 915
|
Posted: Tue Feb 28, 2006 6:19 pm Post subject: |
|
|
you don't need xf86-video-nv, you need nvidia-kernel! And in your xorg.conf driver nvidia. |
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 7:28 pm Post subject: |
|
|
I already had nvidia-kernel, but I ended up trying to uninstall xf86-video-nv and reinstall nvidia-kernel and nvidia-glx. Still it doesn't work. I started to read the Xgl (part 2) thread, and there people are saying that Xgl doesn't even have dri support. So, is the dri part in the wiki just plain crap? Do I still have to struggle without my daily StepMania doses? _________________ Registered Linux User #382582 |
|
Back to top |
|
|
TuffSoundinName Tux's lil' helper
Joined: 04 Mar 2005 Posts: 102 Location: Colorado
|
Posted: Tue Feb 28, 2006 7:47 pm Post subject: |
|
|
Probably an obvious answer to this, but I couldn't find it. Can anyone tell me how to get CoffeeBuzz's overlay? |
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 7:54 pm Post subject: |
|
|
Checkout it from svn:
Code: | svn co http://www.tripthelight.net/xgloverlay |
_________________ Registered Linux User #382582 |
|
Back to top |
|
|
TuffSoundinName Tux's lil' helper
Joined: 04 Mar 2005 Posts: 102 Location: Colorado
|
Posted: Tue Feb 28, 2006 7:55 pm Post subject: |
|
|
great, thanks. |
|
Back to top |
|
|
aidy l33t
Joined: 07 Apr 2005 Posts: 915
|
Posted: Tue Feb 28, 2006 8:15 pm Post subject: |
|
|
Read teh wiki |
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 8:24 pm Post subject: |
|
|
Oh darn. The Xgl howto doesn't say anything about dri, it was the modular Xorg howto that had a note about the dri use flag. So is it true that Xgl does not have dri support? It would be a shame, for Xgl is really cool but I need direct rendering! _________________ Registered Linux User #382582 |
|
Back to top |
|
|
TuffSoundinName Tux's lil' helper
Joined: 04 Mar 2005 Posts: 102 Location: Colorado
|
Posted: Tue Feb 28, 2006 8:25 pm Post subject: |
|
|
huijar, I believe it's been said before (I may be wrong) but the nvidia drivers automagically provide DRI support, that's why you don't have to enable DRI in xorg.conf on regular xorg-x11, as it will do absolutely nothing. As for ATI cards and drivers, sorry folks! |
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 8:32 pm Post subject: |
|
|
But how come I've managed to get it off, if it should work automagically?
/me is confused _________________ Registered Linux User #382582 |
|
Back to top |
|
|
aidy l33t
Joined: 07 Apr 2005 Posts: 915
|
Posted: Tue Feb 28, 2006 8:40 pm Post subject: |
|
|
have you enabled the glx module in your xorg.conf? |
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 8:43 pm Post subject: |
|
|
Yep
Code: | # Load the glx module.
Load "glx"
|
_________________ Registered Linux User #382582 |
|
Back to top |
|
|
TuffSoundinName Tux's lil' helper
Joined: 04 Mar 2005 Posts: 102 Location: Colorado
|
Posted: Tue Feb 28, 2006 8:43 pm Post subject: |
|
|
That was my second guess. Yes, enabling GLX in xorg.conf did it for me. Also, you need to do: Code: | eselect opengl set nvidia |
|
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 8:45 pm Post subject: |
|
|
And yes, I use the nvidia opengl interface... What the hell could be wrong... _________________ Registered Linux User #382582 |
|
Back to top |
|
|
aidy l33t
Joined: 07 Apr 2005 Posts: 915
|
Posted: Tue Feb 28, 2006 8:49 pm Post subject: |
|
|
Heh, now that you bring it up, I infact don't have any direct rendering either. I don't think it's possible with Xgl if you use nvidia drivers. |
|
Back to top |
|
|
huijar n00b
Joined: 03 Feb 2005 Posts: 10
|
Posted: Tue Feb 28, 2006 9:12 pm Post subject: |
|
|
If I understood anything about one guy's explanation in IRC, Xgl supports direct rendering on nvidia, because nvidia drivers have an implementation of direct rendering of their own. So Xgl is direct rendered, but running applications that think that they can only go direct isn't possible. For example an opengl "dancing" game stepmania wants direct rendering, because before it was the only accelerated rendering method. In Xgl also indirect rendering is accelerated, so in theory the applications don't need direct rendering anymore, but they still insist it... In conclusion, everything is accelerated in Xgl when using nvidia drivers, but some applications just don't know it and keep asking for direct rendering. (Or that's what I understood, correct me if I'm wrong) _________________ Registered Linux User #382582 |
|
Back to top |
|
|
CoffeeBuzz Apprentice
Joined: 15 Jun 2005 Posts: 269 Location: Canada Eh.
|
Posted: Tue Feb 28, 2006 9:53 pm Post subject: |
|
|
You won't get direct rendering with nvidia until they implement GLX_texture_from_pixmap extension in their driver ... I think.
But don't get me to explain indirect/direct vs accel/nonaccel ... it makes my head spin thinking about it
I've started compiling information to start an FAQ, less one exists thats non-technical enough for the lay-person.
Every 10 seconds its discussed in #xgl on freenode too so just stop by there and say something with the word "indirect" or "accelerated" in the sentance and i'm sure someone will pipe up with an explaination (i make no gauruntees it will be right however heh) _________________ HP Pavilion zd7260us
Xgl Overlay: http://svn.xgl-coffee.org/xgl-coffee/trunk
Xgl Forums: http://forums.xgl-coffee.org |
|
Back to top |
|
|
TuffSoundinName Tux's lil' helper
Joined: 04 Mar 2005 Posts: 102 Location: Colorado
|
Posted: Tue Feb 28, 2006 10:04 pm Post subject: |
|
|
EDIT: Never mind. In that case, shouldn't applications be able to use either? I mean, they'll have to, once Xgl goes mainstream and replaces the old and, in my opinion, deprecated Xserver. I guess developers are going to have some work to do...
Correct me if I'm mistaken, but basically, huijar, are you saying that direct rendering is enabled, but most applications that require it and only it cannot see it? |
|
Back to top |
|
|
|