[OpenGL] install the OpenGL 2.0 library (Mesa Library) in the Linux system on the MIPs platform)

Source: Internet
Author: User

I use a ora Linux system, which may be slightly different from other Linux systems.

The following uses the fedora system as an example:

1. Install libtool input command: Yum install libtool2, install glproto: Drawing-xvf x11proto-gl_1.4.15.orig.tar.gz into: CD glproto-1.4.15. /config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/do not make direct: Make install3, install dri2proto: Ready-xvf dri2proto-2.8.tar.bz2: CD dri2proto-2.8. /config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/do not make direct: Make install4, install libdrm: http://dri.free?top.org/libdrm/libdrm-2.4.40.tar.bz2extract pressing command: tar-xvf libdrm-2.4.40.tar.bz2 into: CD libdrm-2.4.40. /config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/Makemake install5, install xcb-Proto: release-xvf x Cb-proto_1.7.1.orig.tar.xz entry: CD xcb-proto_1.7.1. /autogen. sh. /config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/Makemake install6, install xcb-Glx: Export-xvf libxcb_1.8.1.ori.tar.gz to enter: CD libxcb_1.8.1. /config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/Makemake install7, install xproto: http://xorg.freedesktop.org/archive/ I Ndividual/proto/xproto-7.0.23.tar.gz unzip command: tar-xvf xproto-7.0.23.tar.gz into: CD xproto-7.0.23. /config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/Makemake install8, install x11-xcb: unzip-xvf libx11_1.5.0.orig.tar.gz to enter: CD libx11_1.5.0. /config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/Makemake install above are the dependent libraries of mesa9.0 To install it first, otherwise Mesa will encounter an error in configure. When installing the above dependent libraries, some errors may occur that are missing other libraries: for example, the above error is that the libraries such as xtrans are missing. You can run the following command: yum search xtrans is used to search for such a library, and then: Yum install XXX is used to install the library. Or go to the website: Website. 9. Install mesa9.0: ftp://freeyuntop.org/pub/mesa/9.0/mesalib-9.0.tar.bz2extract command: tar-xvf MesaLib-9.0.tar.bz2 to enter: CD Mesa-9.0./autogen. Sh to modify the configure file, the file content is:
# Default drivers if test "x $ dri_dirs" = "xyes"; then dri_dirs = "i915 i965 nouveau r200 radeon swrast" fi changed: # default drivers if test "x $ dri_dirs" = "xyes"; then dri_dirs = "nouveau r200 radeon swrast" fi

Remove the Default Driver configuration, because my graphics card is integrated with ATI 3200hd graphics card, so you only need to configure the option with me. Otherwise, configure cannot pass.
./Config -- Build = mips64el-unknown-linux-gnu -- prefix =/usr/-- enable-gles1 -- the configuration parameter after the enable-gles2 is to open OpenGL esmake-j4make install

After the installation is successful, you can use the built-in Linux gear example to test the following content: glxgears-Info:

  • Gl_renderer= Gallium 0.4 on AMD rs780
  • Gl_version = 2.1 Mesa 9.0
  • Gl_vendor = x. org

Work done!

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.