Difference between revisions of "Xorg7/MesaLib"
(→Non-Multilib: changed "/usr" to "${XORG_PREFIX}") |
m (Reverted edits by 71.224.57.6 (Talk); changed back to last version by Jciccone) |
||
Line 54: | Line 54: | ||
echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | ||
echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri" >> configs/current && | echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri" >> configs/current && | ||
− | echo "INSTALL_DIR = | + | echo "INSTALL_DIR = /usr" >> configs/current && |
echo "LIB_DIR = lib" >> configs/current | echo "LIB_DIR = lib" >> configs/current | ||
Line 96: | Line 96: | ||
echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | ||
echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri" >> configs/current && | echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri" >> configs/current && | ||
− | echo "INSTALL_DIR = | + | echo "INSTALL_DIR = /usr" >> configs/current && |
echo "LIB_DIR = lib" >> configs/current | echo "LIB_DIR = lib" >> configs/current | ||
Line 132: | Line 132: | ||
echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | ||
echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib32/xorg/modules/dri" >> configs/current && | echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib32/xorg/modules/dri" >> configs/current && | ||
− | echo "INSTALL_DIR = | + | echo "INSTALL_DIR = /usr" >> configs/current && |
echo "LIB_DIR = lib32" >> configs/current | echo "LIB_DIR = lib32" >> configs/current | ||
Line 168: | Line 168: | ||
echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && | ||
echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib64/xorg/modules/dri" >> configs/current && | echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib64/xorg/modules/dri" >> configs/current && | ||
− | echo "INSTALL_DIR = | + | echo "INSTALL_DIR = /usr" >> configs/current && |
echo "LIB_DIR = lib64" >> configs/current | echo "LIB_DIR = lib64" >> configs/current | ||
Revision as of 12:06, 9 May 2007
Back to libdrm
Contents
Introduction to Mesa
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, there are a few other packages that can use a GLUT library (such as LibTIFF), so you may wish to install MesaGLUT as well. If you choose to install the demos, extract all three tarballs from the same toplevel directory. All three will extract to the Mesa-7.9 directory.
Homepage: http://www.mesa3d.org/
Dependencies
Required
- Xorg Protocol Headers glproto >=1.4.5
- Xorg Libraries
- Xorg Utilities
- libdrm
Optional =
Non-Multilib
Apply a patch that solves some linker errors with the savage dri driver.
patch -Np1 -i ../mesa-7.9-drop_static_inline.patch
Create a config:
ln -sf linux-dri configs/current && echo 'X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)' >> configs/current && echo 'CFLAGS += $(X11_INCLUDES)' >> configs/current && echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri" >> configs/current && echo "INSTALL_DIR = /usr" >> configs/current && echo "LIB_DIR = lib" >> configs/current
If you have XCB installed you also need to add the following to the config:
echo 'DEFINES += -DUSE_XCB' >> configs/current && echo 'X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)' >> configs/current && echo 'GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)' >> configs/current
Compile the package:
make default
Install the package:
make install
If you would like to build and install glxinfo and glxgears execute the following command:
make -C progs/xdemos glxinfo glxgears && install -m755 -v progs/xdemos/{glxinfo,glxgears} /usr/bin
Multilib
32Bit
The Mesa source is needed to build Xorg7/Xserver, save the Mesa source tree for use with the build.
mv Mesa-7.9{,-32} && cd Mesa-7.9-32
Apply a patch that solves some linker errors with the savage dri driver.
patch -Np1 -i ../mesa-7.9-drop_static_inline.patch
Create a config:
ln -sf linux-dri configs/current && echo 'X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)' >> configs/current && echo 'CFLAGS += $(X11_INCLUDES)' >> configs/current && echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri" >> configs/current && echo "INSTALL_DIR = /usr" >> configs/current && echo "LIB_DIR = lib" >> configs/current
If you have XCB installed you also need to add the following to the config:
echo 'DEFINES += -DUSE_XCB' >> configs/current && echo 'X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)' >> configs/current && echo 'GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)' >> configs/current
Compile the package:
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ make CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" default
Install the package:
make install
N32
The Mesa source is needed to build Xorg7/Xserver, save the Mesa source tree for use with the build.
mv Mesa-7.9{,-n32} && cd Mesa-7.9-n32
Apply a patch that solves some linker errors with the savage dri driver.
patch -Np1 -i ../mesa-7.9-drop_static_inline.patch
Create a config:
ln -sf linux-dri configs/current && echo 'X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)' >> configs/current && echo 'CFLAGS += $(X11_INCLUDES)' >> configs/current && echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib32/xorg/modules/dri" >> configs/current && echo "INSTALL_DIR = /usr" >> configs/current && echo "LIB_DIR = lib32" >> configs/current
If you have XCB installed you also need to add the following to the config:
echo 'DEFINES += -DUSE_XCB' >> configs/current && echo 'X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)' >> configs/current && echo 'GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)' >> configs/current
Compile the package:
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ make CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" default
Install the package:
make install
64Bit
The Mesa source is needed to build Xorg7/Xserver, save the Mesa source tree for use with the build.
mv Mesa-7.9{,-64} && cd Mesa-7.9-64
Apply a patch that solves some linker errors with the savage dri driver.
patch -Np1 -i ../mesa-7.9-drop_static_inline.patch
Create a config:
ln -sf linux-dri configs/current && echo 'X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)' >> configs/current && echo 'CFLAGS += $(X11_INCLUDES)' >> configs/current && echo 'EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)' >> configs/current && echo "DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib64/xorg/modules/dri" >> configs/current && echo "INSTALL_DIR = /usr" >> configs/current && echo "LIB_DIR = lib64" >> configs/current
If you have XCB installed you also need to add the following to the config:
echo 'DEFINES += -DUSE_XCB' >> configs/current && echo 'X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)' >> configs/current && echo 'GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)' >> configs/current
Compile the package:
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ make CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" default
Install the package:
make install
If you would like to build and install glxinfo and glxgears execute the following command:
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ make CC="gcc ${BUILD64}" -C progs/xdemos glxinfo glxgears && install -m755 -v progs/xdemos/{glxinfo,glxgears} /usr/bin
Forward to xbitmaps
Contents
Installed Directories: | /usr/include/GLES |
---|---|
Installed Programs: | None |
Installed Libraries: | libGL.so, libGLU.so, libGLw.so, libOSMesa.so, libglut.so |