DRI2: failed to authenticate Re: configure failed on Ubuntu Maverick

Darxus at chaosreigns.com Darxus at chaosreigns.com
Sat Nov 6 21:51:08 PDT 2010


I got the build to run cleanly, but like a couple others, I got no
wayland-system-compositor installed as mentioned in the build instructions.

And running running from the build directory:

$ ./compositor 
DRI2: failed to authenticateSegmentation fault

I do have:

$ echo $DISPLAY
:0.0

I followed these instructions from csj:

http://grep.tw/blog/?p=1061

Except I used --prefix=$HOME/install

Which required:

export PKG_CONFIG_PATH=$HOME/install/lib/pkgconfig/:$HOME/install/share/pkgconfig/
export ACLOCAL="aclocal -I $HOME/install/share/aclocal"


It's working for csj, running wayland as an X client.  I'm running nvidia
with the blob.  He's running intel.  When he switched to an nvidia with
nouveau he got:

12:34AM < csj> DRI2: could not open  (No such file or directory)Segmentation fault

I wrote a bash script which should get you to where I am, wayland building
without errors but not creating wayland-system-compositor (again, under
Ubuntu Maverick).  I'm using 'export MAKEFLAGS="-j 8"' to build with
multiple cpu cores.  Also might want to take out "--disable-gallium".

Script (downloads git repos to current directory):


set -u # exit script if anything fails

mkdir $HOME/install
mkdir -p $HOME/install/share/aclocal
export PKG_CONFIG_PATH=$HOME/install/lib/pkgconfig/:$HOME/install/share/pkgconfig/
export ACLOCAL="aclocal -I $HOME/install/share/aclocal"

sudo aptitude remove --purge libegl1-mesa-drivers
sudo aptitude build-dep libglu1-mesa
sudo aptitude build-dep libcairo2
sudo aptitude install libtool libxi-dev libxmu-dev libxt-dev bison flex libgl1-mesa-dev xutils-dev libtalloc-dev libdrm-dev autoconf x11proto-kb-dev libegl1-mesa-dev libgles2-mesa-dev libgdk-pixbuf2.0-dev libudev-dev libxcb-dri2-0-dev libxcb-xfixes0-dev shtool libffi-dev libpoppler-glib-dev libgtk2.0-dev

git clone git://anongit.freedesktop.org/mesa/mesa
cd mesa/
./autogen.sh --prefix=$HOME/install  --enable-egl --enable-gles2  --disable-gallium --with-egl-platforms="drm"
#./autogen.sh --prefix=$HOME/install  --enable-egl --enable-gles2  --with-egl-platforms="drm"
make
make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/xproto
cd xproto
./autogen.sh --prefix=$HOME/install
make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/kbproto
cd kbproto/
./autogen.sh --prefix=$HOME/install
make install
cd ..

git clone git://anongit.freedesktop.org/xorg/util/macros
cd macros
./autogen.sh --prefix=$HOME/install
make install
cd ..

git clone git://anongit.freedesktop.org/xorg/lib/libX11
cd libX11
./autogen.sh --prefix=$HOME/install
make install
cd ..

git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git
cd libxkbcommon/
./autogen.sh --prefix=$HOME/install
make
make install
cd ..

git clone git://anongit.freedesktop.org/cairo
cd cairo
./autogen.sh --prefix=$HOME/install --enable-gl --enable-xcb
make
make install
cd ..

git clone git://people.freedesktop.org/~krh/wayland
cd wayland/
./autogen.sh --prefix=$HOME/install
make
make install
sudo cp -a compositor/70-wayland.rules /etc/udev/rules.d/
sudo udevadm trigger --subsystem-match=drm --subsystem-match=input


More information about the wayland-devel mailing list