<?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=117.11.125.152</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=117.11.125.152"/>
	<link rel="alternate" type="text/html" href="https://cblfs.nicewhileitlasted.com/Special:Contributions/117.11.125.152"/>
	<updated>2026-05-21T05:49:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>?title=Xorg7/MesaLib&amp;diff=14448</id>
		<title>Xorg7/MesaLib</title>
		<link rel="alternate" type="text/html" href="?title=Xorg7/MesaLib&amp;diff=14448"/>
		<updated>2008-06-16T06:53:27Z</updated>

		<summary type="html">&lt;p&gt;117.11.125.152: /* Non-Multilib */&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;
|http://svn.mandriva.com/svn/packages/cooker/mesa/current/SOURCES/mesa-{{Mesa-Version}}-build-config.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]] (including the Xdamage protocol)&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;
&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;
 patch -Np1 -i ../mesa-{{Mesa-Version}}-build-config.patch&lt;br /&gt;
&lt;br /&gt;
Create a basic configuration for your system.  There are many more than linux-dri; execute make to see the list.  Each is a file in the configs directory if you wish to research the differences.  Replace linux-dri with the basic configuration you have selected:&lt;br /&gt;
&lt;br /&gt;
 ln -sf linux-dri configs/current&lt;br /&gt;
&lt;br /&gt;
Regardless of the basic configuration you chose, add the following:&lt;br /&gt;
&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;
 patch -Np1 -i ../mesa-{{Mesa-Version}}-build-config.patch&lt;br /&gt;
&lt;br /&gt;
Create a basic configuration for your system.  There are many more than linux-dri; execute make to see the list.  Each is a file in the configs directory if you wish to research the differences.  Replace linux-dri with the basic configuration you have selected:&lt;br /&gt;
&lt;br /&gt;
 ln -sf linux-dri configs/current&lt;br /&gt;
&lt;br /&gt;
Regardless of the basic configuration you chose, add the following:&lt;br /&gt;
&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;
 patch -Np1 -i ../mesa-{{Mesa-Version}}-build-config.patch&lt;br /&gt;
&lt;br /&gt;
Create a basic configuration for your system.  There are many more than linux-dri; execute make to see the list.  Each is a file in the configs directory if you wish to research the differences.  Replace linux-dri with the basic configuration you have selected:&lt;br /&gt;
&lt;br /&gt;
 ln -sf linux-dri configs/current&lt;br /&gt;
&lt;br /&gt;
Regardless of the basic configuration you chose, add the following:&lt;br /&gt;
&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>117.11.125.152</name></author>
	</entry>
</feed>