Ubuntu12.10(X86_64)上安装Mesa-8.0.4

Ubuntu12.10(X86_64)上安装Mesa-8.0.4 因为最近项目须要接触OpenGL,实现软件渲染,Mesa则是OpenGL的开源实现。网址:www.mesa3d.org 1. 下载MesaLib-8.0.4.tar.gz,mesa-demos-8.0.1.tar.gz; 并解压 2. 安装Meas-8.0.4 1> ./configure, error:makedepend is required to build Mesa sudo apt-get install xutils-dev 2> ./configure, error: flex is needed to build Mesa sudo apt-get install flex 3> ./configure, error: bison is needed to build Mesa sudo apt-get install bison 4> ./configure, error: X11 development libraries needed for GLX sudo apt-get install xorg-dev 5> ./configure,  error: Direct rendering requries libdrm>= 2.4.24 下载libdrm-2.4.33.tar.bz2,解压,安装 6> ./configure, configure: error: Package requirements (x11 xext xdamage xfixes x11-xcb xcb-glx xxf86vm) were not met: No package 'x11-xcb' found No package 'xcb-glx' found No package 'xcb-xlib' found sudo apt-get install libx11-xcb-dev libxcb-glx0 libxcb-glx0-dev libxcb-xfixes0-dev 7> ./configure, No package 'libdrm_nouveau' found 这个问题比较郁闷,在32位的ubuntu应该是经过vmware tools能够安装驱动Gallium 0.4 on llvmpipe(LLVM 0x300),不知为什么64位不行(不是很肯定?) 这时候须要咱们加两个参数:./configure NOUVEAU_CFLAGS=disable NOUVEAU_LIBS=disable (反正咱们只须要软件模拟) 从新configure,又出现如下错误 configure: error: LLVM is required to build Gallium R300 on x86 and x86_64 sudo apt-get install llvm 8> ./configure NOUVEAU_CFLAGS=disable NOUVEAU_LIBS=disable 总算经过了,太不容易了! 3. make Error:g++ command not found 这个好说:sudo apt-get install g++ 仍是不行,若是使用make的话,他会调用全部的makefile编译mesa下的全部文件,固然也能够来修改makefile文件 不过这个我暂时还不太会,只能回到2.7,想办法用./configure不加参数的方式让其彻底经过 sudo apt-get install libdrm-dev 原来仍是少库,这下./configure所有搞定了 4. make install 进入到mesa-demos-8.0.1目录(目前demo目录下只有两个版本,这个最新版本) 执行:  ./configure ; make; make install 很不幸,又遇到错误“error: GLEW required” sudo apt-get install libglewmx1.6-dev 总算是搞定了!
相关文章
相关标签/搜索