顯示具有 Xgl 標籤的文章。 顯示所有文章
顯示具有 Xgl 標籤的文章。 顯示所有文章

星期一, 8月 28, 2006

Xgl and Java

執行Xgl之後,Java的視窗都變成灰色一片

用滑鼠可以按,只是內容都不會更新


Novell的人說上了Xgl跟compiz的patch有效
http://lists.freedesktop.org/archives/compiz/2006-June/000224.html
http://lists.freedesktop.org/archives/compiz/2006-June/000227.html

可能因為我用的是cgwd不是compiz ? 感覺沒有效果

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775

目前的解決方法是
export AWT_TOOLKIT="MToolkit"

星期五, 8月 25, 2006

Build Xgl on Ubuntu Dapper

Hardware:
AMD SP 2800+ 64bit
Nvidia 6200TC (64MB+256TurboCache)
DDR 333 1G

Software:
Ubuntu Dapper 64bit

1.Get The Source
Fellow instructions on
http://www.freedesktop.org/wiki/Software/Xgl

Some CVS sources may be hosts by git now.You will get an error when trying to build from cvs.
To get source via git:
git clone GIT-URL LOCAL-DIR
git clone git://git.freedesktop.org/git/xorg/app/compiz app/compiz

2.Build Dependency
You have to use apt to get som -dev packages in order to build Xgl.
Install x11proto-*-dev and some other packages.

3.Install Nvidia Driver
apt-get install nvidia-glx
This package provides Nvidia Driver and also a libGL from Mesa(libGL.so.1.xlibmesa).You need this library to run compiz.

4.Try Your Xgl
Run in your current X.
Xgl :1 -ac -accel xv -accel glx:pbuffer -fp /usr/share/X11/fonts/misc/,/usr/share/X11/fonts/100dpi/,/usr/share/X11/fonts/75dpi/&
metacity &
DISPLAY=:1 /opt/Xgl/bin/compiz --replace decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
DISPLAY=:1 /usr/bin/gnome-terminal &
DISPLAY=:1 /opt/Xgl/bin/gnome-window-decorator --replace &

5.Setup GDM
http://gentoo-wiki.com/HOWTO_XGL#GDM_.28for_GNOME_users.29

6.Xgl Script
#!/bin/sh
metacity &
/opt/Xgl/bin/compiz --replace gconf decoration wobbly fade minimize cube rotate scale move resize place switcher water &
/opt/Xgl/bin/gnome-window-decorator --replace &

Add this script to your Xfce or Gnome start-up list.
You will see Xgl right after login.

To update git sources
Enter git tree which contains a .git directory
for example apps/compiz/

then git pull origin