LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: asnoka

FC5编译XGL+COMPIZ(版本二)

[复制链接]
发表于 2006-4-2 10:29:50 | 显示全部楼层
楼主  你做这个时系统的内核是什么版本的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-2 11:20:41 | 显示全部楼层
kernel 2.6.16.1我手动编译的。
回复 支持 反对

使用道具 举报

发表于 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, 我把没有被表情符号替换的原文发上来:

  1. 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:

  2. First, you need to follow the modular building instructions for Xorg which can be found at:
  3. http://xorg.freedesktop.org/wiki/ModularDevelopersGuide

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

  5. Ok make a build dir:


  6. cd ~/usr/src/Xorg-devel
  7. mkdir depends
  8. cd depends
  9. cvs -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa login
  10. cvs -d:pserver:anonymous@pdx.freedesktop.org:/cvs/mesa co Mesa
  11. cd Mesa/
  12. # make the thing CHANGE TARGET for your machine
  13. make linux-x86
  14. #now copy libs to Mesa lib area
  15. # this is needed by compiz @ runtime
  16. mkdir -p /opt/Xorg-devel/lib/Mesa
  17. cp lib/* /opt/Xorg-devel/lib/Mesa/.

  18. # ok lets grap the proper Xorg stuff
  19. cd ../../
  20. cvs -d :pserver:anoncvs@anoncvs.freedesktop.org:/cvs/xorg login
  21. cvs -d :pserver:anoncvs@anoncvs.freedesktop.org:/cvs/xorg co app data doc driver font lib proto util
  22. # get the correct version of Xgl
  23. cvs -d :pserver:anoncvs@anoncvs.freedesktop.org:/cvs/xorg co -r xgl-0-0-1 xserver

  24. 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:
  25. ./util/modular/build.sh -m /full/path/to/Mesa/CVS/Root -s /usr/bin/sudo /opt/Xorg-devel


  26. MAKE SURE YOU HAVE THE LATEST GLITZ/CAIRO AND DEVEL PKGS OR XGL WILL NOT BE BUILT

  27. Sorry to yell. Go have cofee, tea, whiskey, or whatever floats your boat.

  28. The errors cited above re: missing reqs like
  29. 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:

  30. No package 'xkbfile' found
  31. No package 'xfont' found
  32. No package 'fontenc' found
  33. 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.
  34. For me:

  35. export PKG_CONFIG_PATH=/opt/Xorg-devel/lib/pkgconfig:$PKG_CONFIG_PATH.


  36. Ok say everything worked and all the stuff installed. Getting closer :)

  37. 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 )

  38. Ok, were getting close.

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

  40. Ok, now you can get compiz:

  41. cd ~/usr/src/Xorg-devel/
  42. cvs -d :pserver:anonymous@cvs.freedesktop.org:/cvs/xorg login
  43. cvs -d :pserver:anonymous@cvs.freedesktop.org:/cvs/xorg co compiz
  44. cd compiz
  45. ./autogen.sh --prefix=/opt/Xorg-devel
  46. # the output at the end will indicate if it found everything you need to build both
  47. # the composite mgr and the gnome-window-decorator
  48. make
  49. sudo make install


  50. 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 :)

  51. 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+! )

  52. console log in as the root user and init to level 3:

  53. init 3
  54. #or
  55. telinit 3


  56. Ok, become the new user or console login in another vty and try something like this:

  57. # update PATH, LD_LIBRARY_PATH
  58. export PATH=/opt/Xorg-devel/bin:$PATH
  59. export LD_LIBRARY_PATH=/opt/Xorg-devel/lib:$LD_LIBRARY_PATH

  60. xinit /path/to/gnome-session -- /opt/Xorg-devel/bin/Xgl :0

  61. # You need to add the appropriate settings after the :0 depending on your video card
  62. # for me (NVIDIA 6800) the line looked like:
  63. xinit /opt/garnome/bin/gnome-session -- /opt/Xorg-devel/bin/Xgl -fullscreen -ac -accel glx:pbuffer -accel xv:pbo :0

  64. #then start the compiz daemon making sure it finds the MESA LIBS!~!!
  65. 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

  66. # 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!!!

  67. #finally
  68. gnome-window-decorator


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

  70. 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 :)

  71. -tom
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-4-19 11:31:08 | 显示全部楼层

makedepend 找不着

cd Mesa/
# make the thing CHANGE TARGET for your machine
make linux-x86 时

报告错误
命令 makedepend  找不着
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表