configure: error: DRI3 requires xcb >= 1.9.3

3.7k Views Asked by At

I download Mesa and was trying to compile it:

sh ./autogen.sh 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
autoreconf: running: /usr/bin/autoconf
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --no-force
src/mesa/Makefile.sources:7: warning: BUILDDIR multiply defined in condition TRUE ...
src/mesa/Makefile.am:63:   'src/mesa/Makefile.sources' included from here
src/mesa/Makefile.am:62: ... 'BUILDDIR' previously defined here
autoreconf: Leaving directory `.'
checking build system type... x86_64-unknown-linux-gnu
xxxxx
xxxxx
checking for DRI3PROTO... yes
checking for PRESENTPROTO... yes
configure: error: DRI3 requires xcb >= 1.9.3

Not sure what is the error here?

I followed the conversation here: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=80848

But still unresolved.

5

There are 5 best solutions below

2
On

You should try this sudo apt-get install -y libxcb1-dev.

2
On

You need libxcb (which requires xcb-proto) available here: http://xcb.freedesktop.org/dist/.

Build procedure is the same: ./autogen.sh; make; make install

Note that libxcb and xcb-proto require an up-to-date xorg-macros which you may not already have. That's available here: http://anongit.freedesktop.org/git/xorg/util/macros.git/

0
On

You could possibly be missing the package "libx11-xcb-dev" in debian systems install the package using the command sudo apt-get install libx11-xcb-dev

0
On

Had same problem. installed version is xcb 1.9-5. actually query for xcb version returns 1.9 and configure compares it to XCB_REQUIRED=1.9.3. I fixed configure: XCB_REQUIRED=1.9

1
On

Check your version with command: pkg-config --modversion xcb (thanks to Jan and Matt from bug reports). If response is 1.9 you need to find more recent version from http://xcb.freedesktop.org/dist/ and install it manually. I had version 1.9-5 installed from yum repositories and it was, in fact, 1.9 with some patches, not enough.