qLinux
… a distribution study
<< Prev The X Library
Next >> XFonts
Before we have to install some required libs. Some of them and mesa itself requires meson/ninja for the build.
        libXext-1.3.4
        libXrender-0.9.10
        libXrandr-1.5.2
        libXinerama-1.1.4
        libXfixes-6.0.0
        libXcursor-1.2.0
        libXi-1.8
        libxkbfile-1.1.0
        libpciaccess-0.16
        libdrm-2.4.110
        libxshmfence-1.3
        libXxf86vm-1.1.4
        libxkbcommon-1.4.0
        Mesa-21.3.6
Download: libXext-1.3.4.tar.gz. Build and install it:
patch -Np1 -i libXext-1.3.4-bld-20220324.patch ./configure $XC make install
Download: libXrender-0.9.10.tar.gz. Build and install it:
patch -Np1 -i libXrender-0.9.10-bld-20220324.patch ./configure $XC make install
Download: libXrandr-1.5.2.tar.gz. Build and install it:
patch -Np1 -i libXrandr-1.5.2-bld-20220324.patch ./configure $XC make install
Download: libXinerama-1.1.4.tar.bz2. Build and install it:
patch -Np1 -i libXinerama-1.1.4-bld-20220324.patch ./configure $XC make install
Download: libXfixes-6.0.0.tar.bz2. Build and install it:
patch -Np1 -i libXfixes-6.0.0-bld-20220328.patch ./configure $XC make install
Download: libXcursor-1.2.0.tar.bz2. Build and install it:
patch -Np1 -i libXcursor-1.2.0-bld-20220328.patch ./configure $XC make install
Download: libXi-1.8.tar.bz2. Build and install it:
patch -Np1 -i libXi-1.8-bld-20220328.patch ./configure $XC make install
Download: libxkbfile-1.1.0.tar.bz2. Build and install it:
patch -Np1 -i libxkbfile-1.1.0-bld-20220328.patch ./configure $XC make install
Download: libpciaccess-0.16.tar.bz2. Build and install it:
patch -Np1 -i libpciaccess-0.16-bld-20220331.patch patch -Np1 -i libpciaccess-0.16-src-20220330.patch ./configure $XC make install
Download: libdrm-2.4.110.tar.xz. Build and install it:
patch -Np1 -i libdrm-2.4.110-qlnx-20220330.patch ./configure $XC make install
Download: libxshmfence-1.3.tar.bz2. Build and install it:
patch -Np1 -i libxshmfence-1.3-bld-20220331.patch ./configure $XC make install
Download: libXxf86vm-1.1.4.tar.bz2. Build and install it:
patch -Np1 -i libXxf86vm-1.1.4-bld-20220331.patch ./configure $XC make install
Download: libxkbcommon-1.4.0.tar.xz. Apply a patch
meson build --prefix=/xsys build/ \ -Denable-wayland=false \ -Denable-docs=false \ -Denable-xkbregistry=false \ --includedir=/xsys/inc \ --libexecdir=/xsys/bin/libexec
-Denable-xkbregistry=false
    Enabling the registry requires libxml2 which is not available yet.
Build and install libxkpcommon:
ninja -C build install
Download: <wrap download>mesa-21.3.6.tar.xz. Apply a patch to fix the sources:
patch -Np1 -i mesa-21.3.6-src-20220409.patch
Configure the package:
meson build/ --prefix=/xsys \ --includedir=/xsys/inc \ --datadir=/xsys/dat \ --buildtype=release \ -Dllvm=disabled \ -Dgallium-drivers="i915,svga,virgl" \ -Dglx=dri -Ddri-drivers=i965 \ -Dvulkan-drivers= \ -Dplatforms=x11
-Dllvm=disabled
    Use gcc instead of llvm (clang). This requires to select only these drivers which doesn't need llvm.
-Dgallium-drivers=“i915,svga,virgl”,-Dglx=dri -Ddri-drivers=i965
    These drivers doesn't require llvm.
-Dvulkan-drivers=
    Disable vulkan which requires llvm.
-Dplatforms=x11
    Build only for x11, disables wayland.
Build and install mesa:
ninja -C build ninja -C build install
<< Prev The X Library
Next >> Xfonts