Skip to content
callmetango edited this page Jul 24, 2025 · 15 revisions

This page will describe how to obtain the XLibre Xserver from your distribution and how to build it from source.

Please bear with us that the content here is a work in progress (WIP). If you already built the XLibre Xserver from source then please feel free to add the missing parts.

Getting the Source

You can either download a release from Releases · X11Libre/xserver or use Git to clone the project sources like so:

git clone https://github.com/X11Libre/xserver.git

Getting the Build Time Dependencies

There are quite a few dependencies that must be available before building the XLibre Xserver. These vary by the distribution you use as shown below. Right now, only the Debian/Devuan dependencies are explicitly known.

Dependencies for XLibre Xserver on Debian/Devuan

apt-get install 11proto-dev xtrans-dev libpixman-1-dev libxkbcommon-x11-dev \
libxfont-dev libxcvt-dev libdrm-dev libeproxy-dev libepoxy-dev \
x11proto-present-dev x11proto-dev libxkbfile-dev libudev-dev libxshmfence-dev \
libbsd-dev x11proto-xf86dri-dev libgl1-mesa-dev libglu-mesa-dev \
libglu1-mesa-dev libgl-dev libdrm-dev xutils-dev

Building from Source

After cloning the Xserver repository or unpacking the sources, change into the source directory and run the Meson build tool:

cd "<source dir of xserver>"
meson setup <prefix> build <meson_options>
ninja -C build

You may specify the install <prefix> with for example --prefix="$(pwd)/image" and add build time <meson_options> like so: -Dxnest=false.

Installing the Built Artifacts

After compiling the sources you can install the compiled binaries by running:

sudo ninja -C build install

After the successful installation you can find the XLibre Xserver at <prefix>/usr/local/bin/X.

WIP To run the Xserver you need some drivers in the <prefix>/usr/local/lib/xorg/modules/xlibre-....

References

Clone this wiki locally