OpenGL : mesa
=============
MesaLib-7.7 on Ubuntu Linux 9.10
You can install them with "Synaptic Package Manager" replacing the apt-get command.
1. libdrm-2.4.17
$ wget
$ bunzip2 < libdrm-2.4.17.tar.bz2 | tar xf -
$ ./configure
$ sudo make
$ sudo make install
2. dri2proto-2.2
$ wget
$ bunzip2 < dri2proto-2.2.tar.bz2 | tar xf -
2.1 xutils-dev-7.5+2 (xorg-macros.pc)
It's referred to by dri2proto
$ wget http://mirrors.kernel.org/debian/pool/main/x/xutils-dev/xutils-dev_7.5+2_i386.deb
$ sudo dpkg -i xutils-dev_7.5+2_i386.deb
$ cd dri2proto-2.2
$ ./configure
$ sudo make install
$ sudo apt-get install x11proto-gl-dev
$ sudo apt-get install mesa-common-dev
5. libxt-dev-1.0.5
$ sudo apt-get install libxt-dev
6. libxxf86vm-dev-1.0.2
$ sudo apt-get install libxxf86vm-dev
7. The mesa lib
Suppose the archives downloaded are .bz2 formats.
$ tar xjf MesaLib-7.7.tar.bz2
$ tar xjf MesaGLUT-7.7.tar.bz2 (useful)
$ tar xjf MesaDemos-7.7.tar.bz2 (optional)
libxmu-dev-1.0.4 (for glut)
$ cd ~
$ sudo apt-get install libxmu-dev
$ cd ~/Mesa-7.7
$ sudo ./configure
$ sudo make
$ sudo make install
(installed in /usr/local/lib)
8. compile application
$ cd /usr/local/lib
$ export LD_LIBRARY_PATH=${PWD}
$ export LIBGL_DRIVERS_PATH=${PWD}
$ gcc `pkg-config --cflags --libs glut` mymesa.c -o mymesa
8.1 demo
$ cd ~/Mesa-7.7/progs/demos
$ ./gears
If you have any question, welcome to post below...
阅读(956) | 评论(0) | 转发(0) |