<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=58.242.219.111</id>
	<title>CBLFS - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cblfs.nicewhileitlasted.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=58.242.219.111"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/58.242.219.111"/>
	<updated>2026-05-21T05:49:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=Xorg7/MesaLib&amp;diff=11258</id>
		<title>Xorg7/MesaLib</title>
		<link rel="alternate" type="text/html" href="?title=Xorg7/MesaLib&amp;diff=11258"/>
		<updated>2007-09-29T14:42:40Z</updated>

		<summary type="html">&lt;p&gt;58.242.219.111: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| style=&amp;quot;text-align: left; background-color: AliceBlue;&amp;quot;&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Download Source:&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| http://downloads.sourceforge.net/mesa3d/MesaLib-{{Mesa-Version}}.tar.bz2&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| http://downloads.sourceforge.net/mesa3d/MesaDemos-{{Mesa-Version}}.tar.bz2&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| http://downloads.sourceforge.net/mesa3d/MesaGLUT-{{Mesa-Version}}.tar.bz2&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Download Patch:&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| Bad link : http://svn.cross-lfs.org/svn/repos/patches/Mesa/mesa-{{Mesa-Version}}-drop_static_inline.patch&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Back to [[Xorg7/libdrm|libdrm]]&lt;br /&gt;
&lt;br /&gt;
== Introduction to Mesa ==&lt;br /&gt;
&lt;br /&gt;
Mesa is an OpenGL compatible 3D library.  Three packages are available.&lt;br /&gt;
&lt;br /&gt;
* MesaLib - the main Mesa library source code, drivers and documentation.&lt;br /&gt;
* MesaDemos - OpenGL demonstration and test programs. Most of the programs require GLUT.&lt;br /&gt;
* MesaGLUT - provides a working libglut.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not interested in running the demos, you&#039;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-{{Mesa-Version}} directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Homepage:&amp;lt;/b&amp;gt; http://www.mesa3d.org/&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
=== Required ===&lt;br /&gt;
* Xorg [[Xorg7/Protocol_Headers|Protocol Headers]] glproto &amp;gt;=1.4.5&lt;br /&gt;
* Xorg [[Xorg7/Libraries|Libraries]]&lt;br /&gt;
* Xorg [[Xorg7/Utilities|Utilities]]&lt;br /&gt;
* [[Xorg7/libdrm|libdrm]]&lt;br /&gt;
&lt;br /&gt;
== Optional ===&lt;br /&gt;
* [[XCB]]&lt;br /&gt;
&lt;br /&gt;
{{Note|Don&#039;t remove the source after building Mesa.  It is needed by the [[Xorg7/Xserver]] build.  You need to pass the path to the MesaLib source when building xorg-server, so take note of it.}}&lt;br /&gt;
&lt;br /&gt;
== Non-Multilib ==&lt;br /&gt;
&lt;br /&gt;
Apply a patch that solves some linker errors with the savage dri driver.&lt;br /&gt;
&lt;br /&gt;
 patch -Np1 -i ../mesa-{{Mesa-Version}}-drop_static_inline.patch&lt;br /&gt;
&lt;br /&gt;
Create a config:&lt;br /&gt;
&lt;br /&gt;
 ln -sf linux-dri configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;CFLAGS += $(X11_INCLUDES)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;INSTALL_DIR = /usr&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;LIB_DIR = lib&amp;quot; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
If you have [[XCB]] installed you also need to add the following to the config:&lt;br /&gt;
&lt;br /&gt;
 echo &#039;DEFINES += -DUSE_XCB&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 make default&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
If you would like to build and install glxinfo and glxgears execute the following command:&lt;br /&gt;
&lt;br /&gt;
 make -C progs/xdemos glxinfo glxgears &amp;amp;&amp;amp;&lt;br /&gt;
 install -m755 -v progs/xdemos/{glxinfo,glxgears} /usr/bin&lt;br /&gt;
&lt;br /&gt;
== Multilib ==&lt;br /&gt;
&lt;br /&gt;
=== 32Bit ===&lt;br /&gt;
&lt;br /&gt;
The Mesa source is needed to build [[Xorg7/Xserver]], save the Mesa source tree for use with the build.&lt;br /&gt;
&lt;br /&gt;
 mv Mesa-{{Mesa-Version}}{,-32} &amp;amp;&amp;amp;&lt;br /&gt;
 cd Mesa-{{Mesa-Version}}-32&lt;br /&gt;
&lt;br /&gt;
Apply a patch that solves some linker errors with the savage dri driver.&lt;br /&gt;
&lt;br /&gt;
 patch -Np1 -i ../mesa-{{Mesa-Version}}-drop_static_inline.patch&lt;br /&gt;
&lt;br /&gt;
Create a config:&lt;br /&gt;
&lt;br /&gt;
 ln -sf linux-dri configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;CFLAGS += $(X11_INCLUDES)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib/xorg/modules/dri&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;INSTALL_DIR = /usr&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;LIB_DIR = lib&amp;quot; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
If you have [[XCB]] installed you also need to add the following to the config:&lt;br /&gt;
&lt;br /&gt;
 echo &#039;DEFINES += -DUSE_XCB&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH32}&amp;quot; \&lt;br /&gt;
 make CC=&amp;quot;gcc ${BUILD32}&amp;quot; CXX=&amp;quot;g++ ${BUILD32}&amp;quot; default&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== N32 ===&lt;br /&gt;
&lt;br /&gt;
The Mesa source is needed to build [[Xorg7/Xserver]], save the Mesa source tree for use with the build.&lt;br /&gt;
&lt;br /&gt;
 mv Mesa-{{Mesa-Version}}{,-n32} &amp;amp;&amp;amp;&lt;br /&gt;
 cd Mesa-{{Mesa-Version}}-n32&lt;br /&gt;
&lt;br /&gt;
Apply a patch that solves some linker errors with the savage dri driver.&lt;br /&gt;
&lt;br /&gt;
 patch -Np1 -i ../mesa-{{Mesa-Version}}-drop_static_inline.patch&lt;br /&gt;
&lt;br /&gt;
Create a config:&lt;br /&gt;
&lt;br /&gt;
 ln -sf linux-dri configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;CFLAGS += $(X11_INCLUDES)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib32/xorg/modules/dri&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;INSTALL_DIR = /usr&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;LIB_DIR = lib32&amp;quot; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
If you have [[XCB]] installed you also need to add the following to the config:&lt;br /&gt;
&lt;br /&gt;
 echo &#039;DEFINES += -DUSE_XCB&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH32}&amp;quot; \&lt;br /&gt;
 make CC=&amp;quot;gcc ${BUILD32}&amp;quot; CXX=&amp;quot;g++ ${BUILD32}&amp;quot; default&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== 64Bit ===&lt;br /&gt;
&lt;br /&gt;
The Mesa source is needed to build [[Xorg7/Xserver]], save the Mesa source tree for use with the build.&lt;br /&gt;
&lt;br /&gt;
 mv Mesa-{{Mesa-Version}}{,-64} &amp;amp;&amp;amp;&lt;br /&gt;
 cd Mesa-{{Mesa-Version}}-64&lt;br /&gt;
&lt;br /&gt;
Apply a patch that solves some linker errors with the savage dri driver.&lt;br /&gt;
&lt;br /&gt;
 patch -Np1 -i ../mesa-{{Mesa-Version}}-drop_static_inline.patch&lt;br /&gt;
&lt;br /&gt;
Create a config:&lt;br /&gt;
&lt;br /&gt;
 ln -sf linux-dri configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES = $(shell pkg-config --cflags-only-I x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;CFLAGS += $(X11_INCLUDES)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;EXTRA_LIB_PATH = $(shell pkg-config --libs-only-L x11)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;DRI_DRIVER_INSTALL_DIR = ${XORG_PREFIX}/lib64/xorg/modules/dri&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;INSTALL_DIR = /usr&amp;quot; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &amp;quot;LIB_DIR = lib64&amp;quot; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
If you have [[XCB]] installed you also need to add the following to the config:&lt;br /&gt;
&lt;br /&gt;
 echo &#039;DEFINES += -DUSE_XCB&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;X11_INCLUDES += $(shell pkg-config --cflags-only-I xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current &amp;amp;&amp;amp;&lt;br /&gt;
 echo &#039;GL_LIB_DEPS += $(shell pkg-config --libs xcb x11-xcb xcb-glx)&#039; &amp;gt;&amp;gt; configs/current&lt;br /&gt;
&lt;br /&gt;
Compile the package:&lt;br /&gt;
&lt;br /&gt;
 PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH64}&amp;quot; \&lt;br /&gt;
 make CC=&amp;quot;gcc ${BUILD64}&amp;quot; CXX=&amp;quot;g++ ${BUILD64}&amp;quot; default&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
If you would like to build and install glxinfo and glxgears execute the following command:&lt;br /&gt;
&lt;br /&gt;
 PKG_CONFIG_PATH=&amp;quot;${PKG_CONFIG_PATH64}&amp;quot; \&lt;br /&gt;
 make CC=&amp;quot;gcc ${BUILD64}&amp;quot; -C progs/xdemos glxinfo glxgears &amp;amp;&amp;amp;&lt;br /&gt;
 install -m755 -v progs/xdemos/{glxinfo,glxgears} /usr/bin&lt;br /&gt;
&lt;br /&gt;
Forward to [[Xorg7/xbitmaps|xbitmaps]]&lt;br /&gt;
&lt;br /&gt;
== Contents ==&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;text-align: left&amp;quot;&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Installed Directories:&lt;br /&gt;
|/usr/include/GLES&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Installed Programs:&lt;br /&gt;
|None&lt;br /&gt;
|-valign=&amp;quot;top&amp;quot;&lt;br /&gt;
!Installed Libraries:&lt;br /&gt;
|libGL.so, libGLU.so, libGLw.so, libOSMesa.so, libglut.so&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Short Description ===&lt;/div&gt;</summary>
		<author><name>58.242.219.111</name></author>
	</entry>
</feed>