| 在FreeBSD上实现XGL超眩立体桌面效果的过程 |
荐 |
| 在FreeBSD上实现XGL超眩立体桌面效果的过程 |
|
| |
|
|
代码:FreeBSD 6.x From Compiz Jump to: navigation, search Contents [hide]
* 1 ATI Radeon o 1.1 Configuring kernel o 1.2 Installing required ports o 1.3 Installing Xgl/Compiz from sources + 1.3.1 Login to CVS + 1.3.2 util/macros + 1.3.3 X11/proto + 1.3.4 libdrm + 1.3.5 glitz + 1.3.6 Mesa GL + 1.3.7 Compiz + 1.3.8 lib/xtrans + 1.3.9 Xgl o 1.4 Starting Xgl/Compiz * 2 NVIDIA * 3 Discussions * 4 Author
ATI Radeon
su - root password: ********
Configuring kernel
add in your kernel config:
device agp device drm device radeondrm device acpi
compile and install your new kernel or just do following:
kldload agp kldload acpi kldload drm kldload radeondrm
Installing required ports
cvsup your ports and install required software
cd /usr/ports/x11/xorg && make install clean cd /usr/ports/x11/gnome2 && make install clean # probably will require two days ;) cd /usr/ports/x11/gnome-libs && make install clean # Needed for gnome-config cd /usr/ports/x11-toolkits/open-motif && make install clean cd /usr/ports/devel/gnu-autoconf && make install clean cd /usr/ports/devel/gnu-automake && make install clean cd /usr/ports/graphics/libsvg-cairo && make install clean cd /usr/ports/devel/git && make install clean
add to your PATH /usr/local/gnu-autotools/bin or do following:
ln -s /usr/local/gnu-autotools/bin/aclocal /usr/local/bin/aclocal ln -s /usr/local/gnu-autotools/bin/autoconf /usr/local/bin/autoconf ln -s /usr/local/gnu-autotools/bin/autoheader /usr/local/bin/autoheader ln -s /usr/local/gnu-autotools/bin/autom4te /usr/local/bin/autom4te ln -s /usr/local/gnu-autotools/bin/automake /usr/local/bin/automake ln -s /usr/local/gnu-autotools/bin/autoreconf /usr/local/bin/autoreconf ln -s /usr/local/gnu-autotools/bin/autoscan /usr/local/bin/autoscan ln -s /usr/local/gnu-autotools/bin/autoupdate /usr/local/bin/autoupdate ln -s /usr/local/gnu-autotools/bin/ifnames /usr/local/bin/ifnames
ln -s /usr/local/gnu-autotools/share/aclocal-1.9 /usr/local/gnu-autotools/share/aclocal
cp /usr/local/share/aclocal/*.m4 /usr/local/gnu-autotools/share/aclocal cp /usr/X11R6/share/aclocal/*.m4 /usr/local/gnu-autotools/share/aclocal
Installing Xgl/Compiz from sources
mkdir -p /opt/fdo/SRC && cd /opt/fdo/SRC
Login to CVS
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg login password: <hit enter>
util/macros
cd /opt/fdo/SRC git clone git://git.freedesktop.org/git/xorg/util/macros util/macros cd util/macros ./autogen.sh --prefix=/usr/X11R6 && gmake && gmake install cp /usr/X11R6/share/aclocal/xorg* /usr/local/gnu-autotools/share/aclocal
X11/proto
cd /opt/fdo/SRC cvs -z3 -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co proto cd proto for i in */; do cd $i; ./autogen.sh --prefix=/usr/X11R6 && gmake && gmake install; cd ..; done
libdrm
cd /opt/fdo/SRC cvs -z3 -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/dri co drm cd drm ./autogen.sh && gmake && gmake install
glitz
cd /opt/fdo/SRC cvs -z3 -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/cairo co glitz cd glitz ./autogen.sh && gmake && gmake install
Mesa GL
cd /opt/fdo/SRC cvs -z3 -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/mesa co Mesa cd Mesa cd configs && ln -s freebsd-dri current && cd ..
SEE NOTE
gmake && gmake install
script will ask you where includes and libs should be installed, type /usr/X11R6/include , hit enter, and then /usr/X11R6/lib , then hit enter again
gmake MKLIB_OPTIONS=-static && gmake install MKLIB_OPTIONS=-static
NOTE: you might have to add
GLvector4f *PointSizePtr; /* _TNL_BIT_POS */
to file /opt/fdo/SRC/Mesa/src/mesa/tnl/t_context.h, in structure vertex_buffer (line 393)
Compiz
cd /opt/fdo/SRC git clone git://git.freedesktop.org/git/xorg/app/compiz app/compiz cd app/compiz COMPIZ_CFLAGS="-DXTHREADS -DXUSE_MTSAFE_API -I/usr/X11R6/include \ -I/usr/X11R6/include/startup-notification-1.0 -I/usr/local/include/libpng" \ COMPIZ_LIBS="-L/usr/local/lib -L/usr/X11R6/lib -lpng -lz -lm -lXcomposite \ -lXdamage -lXfixes -lX11 -lXrandr -lICE -lSM -lstartup-notification-1" \ GL_CFLAGS="-I/usr/X11R6/include" \ GL_LIBS="-L/usr/X11R6/lib -lGL -L/usr/local/lib -ldrm -pthread" \ GCONF_CFLAGS="-DORBIT2=1 -D_REENTRANT -I/usr/X11R6/include/gconf/2 \ -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 \ -I/usr/local/lib/glib-2.0/include" \ GCONF_LIBS="-pthread -L/usr/X11R6/lib -lgconf-2" \ PLACE_CFLAGS="-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include" \ PLACE_LIBS="-L/usr/local/lib -lglib-2.0 -liconv" \ LIBSVG_CAIRO_CFLAGS="-I/usr/local/include -I/usr/local/include/cairo \ -I/usr/local/include/libxml2" \ LIBSVG_CAIRO_LIBS="-L/usr/local/lib -lsvg-cairo" \ GNOME_WINDOW_DECORATOR_CFLAGS="-DXTHREADS -DXUSE_MTSAFE_API -DORBIT2=1 \ -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/gtk-2.0 \ -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 \ -I/usr/local/include/cairo -I/usr/local/include/freetype2 \ -I/usr/local/include -I/usr/X11R6/include/gconf/2 \ -I/usr/X11R6/include/libwnck-1.0 -I/usr/local/include/atk-1.0 \ -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include \ -I/usr/local/include/orbit-2.0" \ GNOME_WINDOW_DECORATOR_LIBS="-Wl,--rpath -Wl,/usr/local/lib -pthread \ -L/usr/X11R6/lib -L/usr/local/lib -lXrender -lX11 -lXext -lgtk-x11-2.0 \ -lgconf-2 -lwnck-1 -lpangocairo-1.0 -lfontconfig -lfreetype -lz" \ GNOME_WINDOW_SETTINGS_CFLAGS="-DXTHREADS -DXUSE_MTSAFE_API -DORBIT2=1 \ -D_REENTRANT -I/usr/X11R6/include/gnome-window-settings-2.0 \ -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/include/libgnomeui-2.0 \ -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 \ -I/usr/local/include/cairo -I/usr/X11R6/include -I/usr/local/include/freetype2 \ -I/usr/local/include -I/usr/X11R6/include/libgnome-2.0 \ -I/usr/X11R6/include/libgnomecanvas-2.0 -I/usr/X11R6/include/gconf/2 \ -I/usr/X11R6/include/libbonoboui-2.0 -I/usr/X11R6/include/gnome-vfs-2.0 \ -I/usr/X11R6/lib/gnome-vfs-2.0/include -I/usr/X11R6/include/gnome-keyring-1 \ -I/usr/X11R6/include/gnome-desktop-2.0 -I/usr/X11R6/include/startup-notification-1.0 \ -I/usr/local/include/atk-1.0 -I/usr/local/include/glib-2.0 \ -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libart-2.0 \ -I/usr/local/include/orbit-2.0 -I/usr/local/include/libbonobo-2.0 \ -I/usr/local/include/bonobo-activation-2.0 -I/usr/local/include/libxml2" \ GNOME_WINDOW_SETTINGS_LIBS="-Wl,--rpath -Wl,/usr/local/lib -pthread -L/usr/X11R6/lib \ -lgnome-window-settings -lgnome-desktop-2" \ ./autogen.sh --build=i386-portbld-freebsd6.1 --enable-libsvg-cairo \ --prefix=/opt/fdo --with-gl-libs="-L/usr/X11R6/lib -lGL -L/usr/local/lib -ldrm -pthread" && \ gmake && gmake install
I had to add MSGFMT=/usr/local/bin/msgfmt to get it to gmake
lib/xtrans
cd /opt/fdo/SRC git clone git://git.freedesktop.org/git/xorg/lib/libxtrans lib/libxtrans cd lib/libxtrans ./autogen.sh --prefix=/usr/X11R6 && gmake && gmake install cp /usr/X11R6/share/aclocal/xtrans.m4 /usr/local/gnu-autotools/share/aclocal
Xgl
cd /opt/fdo/SRC cvs -z3 -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xorg co -r xgl-0-0-1 xserver cd xserver/xorg
sed -i -E 's/@APP_MAN_SUFFIX@/man/g' doc/Makefile.am
XLIB_CFLAGS="-DXTHREADS -DXUSE_MTSAFE_API -I/usr/X11R6/include" \ XLIB_LIBS="-L/usr/X11R [1] [2] 下一页
 |
频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意。
| 原始作者:佚名 |
录入时间:2007-1-3 3:54:33 |
| 信息来源:不详 |
投稿信箱:itqoo@126.com |
|
|
 |
|
|
|
| 教程录入:itqoo 责任编辑:itqoo |
|
上一个教程: 用Xf86config进行Xwindow完全配置
下一个教程: FreeBSD下ADSL共享上网 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |