Successfully installed Mesa-8.0.3 on ubuntu10.10

Source: Internet
Author: User

Difficult journey! Make a record here, because we need to get in touch with OpenGL, and online search says OpenGL is just a standard specification, there are some tool libraries (such as GLUT), and then we know that mesa encapsulates OpenGL, therefore, you must first install Mesa. The URL is http://mesa3d.sourceforge.net/, then download the mesa source code, primary Mesa download site: ftp://ftp.freedesktop.org/(FTP), and then you can download the version source code you need.

The latest release version is used.

2. Decompress several source code packages

Tar zxvf MesaLib-8.0.3.tar.gz (get directory Mesa-8.0.3)

Tar zxvf mesa-demos-8.0.1.tar.gz (get directory Mesa-demos-8.0.1)

Tar zxvf MesaGLUT-7.9.2.tar.gz (get directory Mesa-7.9.2)

3. start installing Mesa-8.0.3

1) first install libdrm-Dev, x11proto-dri2-dev, libxxf86vm-dev, libxt-dev by following the instructions on the Internet

2) An error is reported after the./configure command is executed:

Configure: Error: Package requirements (glproto> = 1.4.14) were not met:
Requested 'glproto> = 1.4.14 'But version of glproto is 1.4.11

I went to the software Manager (system-> Administration-> Synaptic Package Manager) to find the package. I installed 1.4.11 and the latest version is 1.4.11!

Then go to the Internet to continue searching! Find a URL to download the package and install it on your own. Check that the version meets my needs.

Go to http://packages.ubuntu.com/source/precise/x11/and find x11proto-gl (1.4.14-2.pdf. Then, click to download x11proto-gl_1.4.14.orig.tar.gz,

Then copy to a path, extract (TAR zxvf x11proto-gl_1.4.14.orig.tar.gz), and then get the glproto-1.4.14 directory; enter the directory (CD glproto-1.4.14 );

Installation Library: a)./configure B) Make-J4 c) make install

3) Execute./configure in the Mesa-8.0.3 directory and then report the following error:

Configure: Error: Direct rendering requires libdrm> = 2.4.24

Next, download the libdrm_2.4.32.orig.tar.gz library in two steps, and then compile and install the library.

4) Execute./configure in the Mesa-8.0.3 directory and then report the following error:

Configure: Error: Package requirements (dri2proto> = 2.6) were not met:
Requested 'dri2proto> = 2.6 'But version of dri2proto is 2.3

Next is the question of the library, download the x11proto-dri2_2.6.orig.tar.gz library in two steps, and then compile and install it.

5) Execute./configure in the Mesa-8.0.3 directory and report the following error:

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

In ubuntu package management (system-> Administration-> Synaptic Package Manager), find the two library names and find that they are not installed,

Then select and install libx11-xcb-dev libxcb-glx0 libxcb-glx0-dev

6) Execute./configure in the Mesa-8.0.3 directory and report the following error:

Configure: Error: llvm is required to build Gallium r300 on x86 and x86_64

If llvm-Dev is installed, it still does not work, and many Google servers are installed, but llvm-Dev is not installed. Finally, check the input carefully and find that the last line on which the error line is prompted is: Check llvm-config.

The result is that llvm is not installed in the system. Use apt-Get install llvm to install the llvm library.

7) Execute./configure in the Mesa-8.0.3 directory.

It's not easy to pass this time!

8) execute make-J4 In the Mesa-8.0.3 directory.

Unfortunately, another error is reported: nouveau_driver.h: 49: Fatal error: nv04_pushbuf.h: no such file or directory.

Continue to go to Baidu on the Internet. Some people say that something needs to be set during configure, such as./configure -- With-dri-drivers = "swrast, i915"

9) Then run./configure -- With-dri-drivers = "swrast, i915" in the Mesa-8.0.3 directory"

10) execute make-J4 In the Mesa-8.0.3 directory.

OK

11) make install

Long journey! I will go up and down, and finally install it.

Install the demo and run it.

Go to the Mesa-demos-8.0.1 directory and execute :. /configure; Make-J4; make install (during this process, the error "error: glew required" may occur. In this case, you can find libglewxxx (Version) in the software manager) -Dev and install it. You can also manually download a library package and compile and install it yourself .)

And then enter demos, or samples to run a few instances, which is really dazzling.

Captured several animated images.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.