|
发表于 2006-4-18 05:40:27
|
显示全部楼层
Post by asnoka
Now follow the instructions to build the myriad of libs, fonts, etc in the entire build. I used the build script format so for me this was:
./util/modular/build.sh -m /full/path/to/Mesa/CVS/Root -s /usr/bin/sudo /opt/Xorg-devel
[作者可能没有考虑到前面已经建过目录了,而且Mesa的源码我们已经下载好了,所以此处的命令实际上应是]:
./util/modular/build.sh -m /usr/src/Xorg-devel/depends/Mesa -s /usr/bin/sudo /opt/Xorg-devel
这里的/full/path/to/Mesa/
我想作者的意思应该是说 full path to Mesa , 就是你的Mesa的完整路径,所以根据上下文,就应该是/usr/src/Xorg-devel/depends/Mesa
然后后面在加上CVS/Root
所以完整的就应该是:
./util/modular/build.sh -m /usr/src/Xorg-devel/depends/Mesa/CVS/Root -s /usr/bin/sudo /opt/Xorg-devel
BTW, 我把没有被表情符号替换的原文发上来:
- I will post more details but to get Xgl & compiz up it is quite a bit of work on FC4 where i remain for the time being. That said, if you have a decent machine that you can leave compiling over night, it is very doable. Many of the things i did on FC4 will not be needed for FC5. So what did i do:
- First, you need to follow the modular building instructions for Xorg which can be found at:
- http://xorg.freedesktop.org/wiki/ModularDevelopersGuide
- The important note is when checking out the xorg server component to use the tag xgl-0-0-1 or you will be getting the wrong server. You also need the latest Mesa source from CVS @sourceforge.
- Ok make a build dir:
- cd ~/usr/src/Xorg-devel
- mkdir depends
- cd depends
- cvs -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa login
- cvs -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa co Mesa
- cd Mesa/
- # make the thing CHANGE TARGET for your machine
- make linux-x86
- #now copy libs to Mesa lib area
- # this is needed by compiz @ runtime
- mkdir -p /opt/Xorg-devel/lib/Mesa
- cp lib/* /opt/Xorg-devel/lib/Mesa/.
- # ok lets grap the proper Xorg stuff
- cd ../../
- cvs -d :pserver:anoncvs@anoncvs.freedesktop.org:/cvs/xorg login
- cvs -d :pserver:anoncvs@anoncvs.freedesktop.org:/cvs/xorg co app data doc driver font lib proto util
- # get the correct version of Xgl
- cvs -d :pserver:anoncvs@anoncvs.freedesktop.org:/cvs/xorg co -r xgl-0-0-1 xserver
- Now follow the instructions to build the myriad of libs, fonts, etc in the entire build. I used the build script format so for me this was:
- ./util/modular/build.sh -m /full/path/to/Mesa/CVS/Root -s /usr/bin/sudo /opt/Xorg-devel
- MAKE SURE YOU HAVE THE LATEST GLITZ/CAIRO AND DEVEL PKGS OR XGL WILL NOT BE BUILT
- Sorry to yell. Go have cofee, tea, whiskey, or whatever floats your boat.
- The errors cited above re: missing reqs like
- checking for XSERVERCFLAGS... configure: error: Package requirements (randrproto renderproto fixesproto damageproto xcmiscproto xextproto xproto xtrans xf86miscproto xf86vidmodeproto xf86bigfontproto scrnsaverproto bigreqsproto resourceproto fontsproto inputproto xf86dgaproto videoproto compositeproto trapproto recordproto resourceproto xineramaproto evieproto printproto xkbfile xfont xau fontenc xdmcp) were not met:
- No package 'xkbfile' found
- No package 'xfont' found
- No package 'fontenc' found
- stem from not having all the stuff you need either installed or failing to have your PKG_CONFIG_PATH updated to reflect where these libs are found.
- For me:
- export PKG_CONFIG_PATH=/opt/Xorg-devel/lib/pkgconfig:$PKG_CONFIG_PATH.
- Ok say everything worked and all the stuff installed. Getting closer :)
- Make sure there is a /opt/Xorg-devel/bin/Xgl installed. If not, you likely don't have the latest cairo/glitz combo or their -devel packages. if not, install them, cd to xserver/xorg, run configure w/ the proper switches (you figure that out because you didn't listen above )
- Ok, were getting close.
- If you are still lagin' back on FC4, you will need a garnome or other update to your system to a recent gnome desktop that uses cairo for rendering. I used garnome2.12.3, and after a few easily solved problems had a gnome 2.12 desktop.
- Ok, now you can get compiz:
- cd ~/usr/src/Xorg-devel/
- cvs -d :pserver:anonymous@cvs.freedesktop.org:/cvs/xorg login
- cvs -d :pserver:anonymous@cvs.freedesktop.org:/cvs/xorg co compiz
- cd compiz
- ./autogen.sh --prefix=/opt/Xorg-devel
- # the output at the end will indicate if it found everything you need to build both
- # the composite mgr and the gnome-window-decorator
- make
- sudo make install
- You may need to adjust PATH, PKG_CONFIG_PATH, and LD_LIBRARY_PATH depending on your target dir. If anyone has ?'s about this, post and i'll clarify. Any daring sole doing this should probably already understand these things...check man/info pages :)
- Ok, now you can log out to test. (if garnome make sure you use a different user as the settings in Gnome 2.10 will NOT work for 2.12+! )
- console log in as the root user and init to level 3:
- init 3
- #or
- telinit 3
- Ok, become the new user or console login in another vty and try something like this:
- # update PATH, LD_LIBRARY_PATH
- export PATH=/opt/Xorg-devel/bin:$PATH
- export LD_LIBRARY_PATH=/opt/Xorg-devel/lib:$LD_LIBRARY_PATH
- xinit /path/to/gnome-session -- /opt/Xorg-devel/bin/Xgl :0
- # You need to add the appropriate settings after the :0 depending on your video card
- # for me (NVIDIA 6800) the line looked like:
- xinit /opt/garnome/bin/gnome-session -- /opt/Xorg-devel/bin/Xgl -fullscreen -ac -accel glx:pbuffer -accel xv:pbo :0
- #then start the compiz daemon making sure it finds the MESA LIBS!~!!
- LD_LIBRARY_PATH=/opt/Xorg-devel/lib/Mesa:$LD_LIBRARY_PATH compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher
- # if it doesn't find out where Mesa is it won't find the GL_EXT_texture_from_pixmap which is only available in the latest source!!!
- #finally
- gnome-window-decorator
- Ok, this was from memory, and CTRL-R'ing the command line. There were some small bugs along the way, and likely small ommisions above...but the way-cool results are worth the effort - if you like fast fonts, and wicked cool effects and have some evenings to burn.
- So when you run into problems post em' and i'll try and help. This is my first attempt at a tutorial so flame away...i'll get better in the future :)
- -tom
复制代码 |
|