Difference between revisions of "Building mesa with dri for fbcon"

From Organic Design wiki
(See also)
m
Line 1: Line 1:
 
[[Category:OpenGL]][[Category:Peerix]]
 
[[Category:OpenGL]][[Category:Peerix]]
 +
=You will need=
 +
Sources:
 +
libdrm-2.2
 +
MesaLib-6.5.2
 +
 
The process requires both kernel space and user space software. You will need the kernel, the DRM/DRI and mesa source trees.
 
The process requires both kernel space and user space software. You will need the kernel, the DRM/DRI and mesa source trees.
  
Line 24: Line 29:
 
Now you need to build mesa linking against these .o files.
 
Now you need to build mesa linking against these .o files.
 
<pre>
 
<pre>
cd ~/mesa/Mesa-6.5.1
+
cd ~/mesa/Mesa-6.5.2
 
make realclean
 
make realclean
 
sed -ri 's|DRM_SOURCE_PATH.+$|DRM_SOURCE_PATH = $(TOP)/../../drm/drm|' configs/default
 
sed -ri 's|DRM_SOURCE_PATH.+$|DRM_SOURCE_PATH = $(TOP)/../../drm/drm|' configs/default

Revision as of 20:45, 3 December 2006

You will need

Sources: libdrm-2.2 MesaLib-6.5.2

The process requires both kernel space and user space software. You will need the kernel, the DRM/DRI and mesa source trees.

I obtained the DRM source with git.

cd
mkdir drm
cd drm
git clone git://anongit.freedesktop.org/git/mesa/drm
cd
mkdir mesa
cd mesa
cvs -d:pserver:anonymous@anoncvs.freedesktop.org:/cvs/mesa co Mesa
cd
mkdir kernel
cd kernel
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.18.tar.bz2
tar xjf linux-2.6.16.18.tar.bz2
cd ~/drm/drm/linux-core
make LINUXDIR=~/kernel/linux-2.6.18/

All going well you will end up with a bunch of .o files in your ~/drm/drm/linux-core directory.

Now you need to build mesa linking against these .o files.

cd ~/mesa/Mesa-6.5.2
make realclean
sed -ri 's|DRM_SOURCE_PATH.+$|DRM_SOURCE_PATH = $(TOP)/../../drm/drm|' configs/default

We need to edit the config to point to the DRM modules. And make it.

make linux-solo

See also