Xorg7/MesaLib
From CBLFS
Revision as of 19:36, 26 September 2006 by Weibullguy (talk | contribs)
Back to libdrm
Contents
MesaLib
Mesa is an OpenGL compatible 3D library. Three packages are available.
- MesaLib - the main Mesa library source code, drivers and documentation.
- MesaDemos - OpenGL demonstration and test programs. Most of the programs require GLUT.
- MesaGLUT - provides a working libglut.
If you're not interested in running the demos, you'll only need the first package. However, if you choose to install the demos, extract all three tarballs from the same toplevel directory. All three will extract to the Mesa-6.5 directory.
Dependencies
Required
- Xorg Protocol Headers glproto >=1.4.5
- Xorg Libraries
- Xorg Utilities
- libdrm >= 2.0.1
Note: Don't remove the source after building MesaLib. It is needed by the Xorg Xserver build. You need to pass the path to the MesaLib source when building xorg-server, so take note of it.
Non-Multilib
Apply the patch and correct some hardcoded paths.
patch -Np1 -i ../mesa-6.5-drop_static_inline.patch && find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; && sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c && sed -i 's@lib/modules@lib/X11/modules@' src/mesa/drivers/dri/Makefile.template
Compile the package. To see a list of targets other than linux-dri, simply type 'make'.
make linux-dri
Install the binaries and modules.
bin/installmesa ${XORG_PREFIX} && install -d ${XORG_PREFIX}/lib/X11/modules/dri && install -m755 lib64/*dri* ${XORG_PREFIX}/lib/X11/modules/dri
If you chose to download and extract the demos, compile them now.
sed -i 's@-l$(GLUT_LIB)@@g' configs/default && cd progs/xdemos && make PROGS='glxinfo glxgears' &&
Install the demo programs.
install -m755 glxinfo glxgears ${XORG_PREFIX}/bin
Multilib
32-bit
N32
64-bit
Forward to xbitmaps