mesa本地meson编译
官方编译参考: https://docs.mesa3d.org/meson.html
我的系统环境是 #101~20.04.1-Ubuntu
获取源码:
方法一:https://gitlab.freedesktop.org/mesa/mesa
下载后自己选择分支
$: git clone git@gitlab.freedesktop.org:mesa/mesa.git
方法二:自己在 linux 电脑上 apt source 获取到源码
search 一下 源码包叫啥
$: apt search mesa*
mesa-opencl-icd/focal-updates,focal-security 21.2.6-0ubuntu0.1~20.04.2 amd64
free implementation of the OpenCL API -- ICD runtime
mesa-utils/focal,now 8.4.0-1build1 amd64 [已安装]
Miscellaneous Mesa GL utilities
mesa-utils-extra/focal,now 8.4.0-1build1 amd64 [已安装]
Miscellaneous Mesa utilies (opengles, egl)
mesa-va-drivers/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [已安装,自动]
Mesa VA-API video acceleration drivers
mesa-vdpau-drivers/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [已安装,自动]
Mesa VDPAU video acceleration drivers
mesa-vulkan-drivers/focal-updates,focal-security,now 21.2.6-0ubuntu0.1~20.04.2 amd64 [已安装,自动] /*<---------*/
Mesa Vulkan graphics drivers
mir-client-platform-mesa-dev/focal 1.7.1-0ubuntu2 amd64
Display server for Ubuntu - client platform library for Mesa development files
mir-client-platform-mesa5/focal 1.7.1-0ubuntu2 amd64
Display server for Ubuntu - client platform library for Mesa
不同系统版本可能包的名字叫的不一样:
下载源码:
mark-zhao@markzhao:~/work/mesa_compile$ apt source mesa-vulkan-drivers
正在读取软件包列表... 完成
选择 mesa 作为源代码包而非 mesa-vulkan-drivers
提示:mesa 的打包工作被维护于以下位置的 Git 版本控制系统中:
https://salsa.debian.org/xorg-team/lib/mesa.git
请使用:
git clone https://salsa.debian.org/xorg-team/lib/mesa.git
获得该软件包的最近更新(可能尚未正式发布)。
需要下载 24.7 MB 的源代码包。
获取:1 http://ru.archive.ubuntu.com/ubuntu focal-updates/main mesa 21.2.6-0ubuntu0.1~20.04.2 (dsc) [5,543 B]
获取:2 http://ru.archive.ubuntu.com/ubuntu focal-updates/main mesa 21.2.6-0ubuntu0.1~20.04.2 (tar) [24.6 MB]
获取:3 http://ru.archive.ubuntu.com/ubuntu focal-updates/main mesa 21.2.6-0ubuntu0.1~20.04.2 (diff) [111 kB]
已下载 24.7 MB,耗时 8秒 (3,076 kB/s)
dpkg-source: info: extracting mesa in mesa-21.2.6
dpkg-source: info: unpacking mesa_21.2.6.orig.tar.gz
dpkg-source: info: applying mesa_21.2.6-0ubuntu0.1~20.04.2.diff.gz
dpkg-source: info: upstream files that have been modified:
mesa-21.2.6/.gitlab/issue_templates/Bug Report - AMD Radeon Vulkan.md
mesa-21.2.6/.gitlab/issue_templates/Bug Report.md
W: 由于文件'mesa_21.2.6-0ubuntu0.1~20.04.2.dsc'无法被用户'_apt'访问,已脱离沙盒并提权为根用户来进行下载。 - pkgAcquire::Run (13: 权限不够)
mark-zhao@markzhao:~/work/mesa_compile$ ls
mesa-21.2.6 mesa_21.2.6-0ubuntu0.1~20.04.2.dsc
mesa_21.2.6-0ubuntu0.1~20.04.2.diff.gz mesa_21.2.6.orig.tar.gz
依赖安装与编译选项配置:
1.安装依赖:
mark-zhao@markzhao:~/work/mesa_compile/mesa-21.2.6/build$ sudo apt build-dep mesa-vulkan-drivers
正在读取软件包列表... 完成
选择 mesa 作为源代码包而非 mesa-vulkan-drivers
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列【新】软件包将被安装:
autopoint debhelper dh-autoreconf dh-strip-nondeterminism diffstat directx-headers-dev dwz gettext intltool-debian lib32gcc-s1
lib32stdc++6 libarchive-zip-perl libc6-i386 libclang-12-dev libclang-common-12-dev libclang-cpp12-dev libclang1-12 libclc-12-dev
libcroco3 libdebhelper-perl libfile-stripnondeterminism-perl libobjc-9-dev libobjc4 libsensors4-dev libset-scalar-perl
libsub-override-perl libtool libva-dev libva-glx2 libva-wayland2 libvdpau-dev libwayland-bin libwayland-dev
libwayland-egl-backend-dev libzstd-dev po-debconf python3-setuptools quilt valgrind wayland-protocols
升级了 0 个软件包,新安装了 40 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 58.7 MB 的归档。
解压缩后会消耗 409 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 autopoint all 0.19.8.1-10build1 [412 kB]
........
正在处理用于 install-info (6.7.0.dfsg.2-5) 的触发器 ...
正在处理用于 libc-bin (2.31-0ubuntu9.14) 的触发器 ...
使用的系统版本不一样,依赖包的名字可能不一样,报错缺少哪个就自己 apt search 一下,找到所缺的 apt isntall 一下。
需要个性化配置编译参数直接看 3
如果不需要个性化的使能或者不使能某些参数,或者不编译某些厂商的驱动,直接按照官方编译:
mark-zhao@markzhao:~/work/mesa_compile$ mkdir mesa_21.2.6_backup //创建一个安装目录
mark-zhao@markzhao:~/work/mesa_compile/mesa_21.2.6_backup$ pwd
/home/mark-zhao/work/mesa_compile/mesa_21.2.6_backup
mark-zhao@markzhao:~$ cd work/mesa_compile/mesa-21.2.6/ //cd 到 mesa 的源码目录下
执行编译
mark-zhao@markzhao:~/work/mesa_compile/mesa-21.2.6$ meson build --prefix=/home/mark-zhao/work/mesa_compile/mesa_21.2.6_backup //如果不指定 --prefix= 路径,默认/usr/lib 下
The Meson build system
Version: 0.53.2
Source dir: /home/mark-zhao/work/mesa_compile/mesa-21.2.6
Build dir: /home/mark-zhao/work/mesa_compile/mesa-21.2.6/build
Build type: native build
Program python found: NO
Program python3 found: YES (/usr/bin/python3)
Project name: mesa
Project version: 21.2.6
.......
ompile/mesa-21.2.6/bin/install_megadrivers.py)
Configuring xa_tracker.h using configuration
Message: Configuration summary:
prefix: /home/mark-zhao/work/mesa_compile/mesa_21.2.6_backup
libdir: lib/x86_64-linux-gnu
includedir: include
OpenGL: yes (ES1: yes ES2: yes)
OSMesa: no
DRI platform: drm
DRI drivers: i915 i965 r100 r200 nouveau
DRI driver dir: /home/mark-zhao/work/mesa_compile/mesa_21.2.6_backup/lib/x86_64-linux-gnu/dri
GLX: DRI-based
EGL: yes
EGL drivers: builtin:egl_dri2 builtin:egl_dri3
EGL/Vulkan/VL platforms: x11 wayland surfaceless drm
GBM: yes
GBM backends path: /home/mark-zhao/work/mesa_compile/mesa_21.2.6_backup/lib/x86_64-linux-gnu/gbm
Vulkan drivers: amd intel swrast
Vulkan ICD dir: share/vulkan/icd.d
llvm: yes
llvm-version: 12.0.0
Gallium drivers: r300 r600 radeonsi nouveau virgl svga swrast iris
Gallium st: mesa xa vdpau va
HUD lmsensors: yes
Shared-glapi: yes
Perfetto: no
Perfetto ds: auto
Build targets in project: 234
Found ninja-1.10.0 at /usr/bin/ninja
若出现如下报错:
$: meson build --prefix=路径
Run-time dependency libdrm_nouveau found: YES 2.4.107
Run-time dependency libdrm found: YES 2.4.107
llvm-config found: NO found '8.0.1' but need '>= 11.0.0' <-----需要 llvm11 以上的版本
Run-time dependency LLVM found: NO (tried config-tool)
Looking for a fallback subproject for the dependency llvm
meson.build:1650:2: ERROR: Subproject directory not found and llvm.wrap file not found
查看本地 llvm 版本:
$ llvm-as --version
LLVM version 8.0.1
看本地有几个版本的 llvm:
$: ls /usr/bin/llvm*
/usr/bin/llvm-addr2line-12 /usr/bin/llvm-dis-12 /usr/bin/llvm-lto-8 /usr/bin/llvm-rc-8
.....
没有 llvm11 以上版本的话, apt search llvm ,然后选取>=llvm11版本的,安装一下
安装后还需要将新的 llvm 路径添加到环境变量来:
$: export PATH=$PATH:/usr/lib/llvm-12/bin
$: export //看一下是否加入成功
declare -x PAPERSIZE="a4"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/llvm-12/bin" <-----------有了
然后再 meson build --prefix=路径,
3.个性化配置编译参数:
(1)确定默认参数:
在mesa源码目录下,执行打包命令:
$:cd /home/mark-zhao/work/mesa_compile/mesa-21.2.6
$:dpkg-buildpackage -us -uc -b <----------执行打包命令,在出现以下参数时 ctrl+c 停止
/*dpkg-buildpackage: info: 源码包 mesa
dpkg-buildpackage: info: 源码版本 21.2.6-0ubuntu0.1~20.04.2
dpkg-buildpackage: info: source distribution focal-security
dpkg-buildpackage: info: 源码修改者 Marc Deslauriers <marc.deslauriers@ubuntu.com>
dpkg-buildpackage: info: 主机架构 amd64
dpkg-source --before-build .
fakeroot debian/rules clean
dh clean --with quilt \
--builddirectory=build/ \
--buildsystem=meson
dh_auto_clean -O--builddirectory=build/ -O--buildsystem=meson
dh_autoreconf_clean -O--builddirectory=build/ -O--buildsystem=meson
dh_quilt_unpatch -O--builddirectory=build/ -O--buildsystem=meson
No patch removed
debian/rules override_dh_clean
make[1]: 进入目录“/home/mark-zhao/work/mesa_compile/mesa-21.2.6”
rm -rf .pc
rm -rf build
rm -rf configure bin/config.guess bin/config.sub config.h.in
rm -rf $(find -name Makefile.in)
rm -rf bin/install-sh bin/ltmain.sh
for file in debian/.in; do rm -f ${file%%.in}; done
rm -rf src/amd/compiler/__pycache__/ src/amd/registers/__pycache__
rm -rf src/amd/vulkan/.pyc src/amd/vulkan/__pycache__/
rm -rf src/compiler/nir/.pyc src/compiler/nir/__pycache__/
rm -rf src/egl/generate/.pyc src/egl/generate/__pycache__/
rm -rf src/gallium/auxiliary/util/.pyc src/gallium/auxiliary/util/__pycache__/
rm -rf src/intel/vulkan/.pyc src/intel/vulkan/__pycache__/
rm -rf src/mapi/glapi/gen/.pyc src/mapi/glapi/gen/__pycache__/ src/mapi/new/__pycache__/
rm -rf src/mesa/main/.pyc src/mesa/main/__pycache__/
dh_clean
make[1]: 离开目录“/home/mark-zhao/work/mesa_compile/mesa-21.2.6”
debian/rules build
dh build --with quilt \
--builddirectory=build/ \
--buildsystem=meson
dh_quilt_patch -O--builddirectory=build/ -O--buildsystem=meson
Applying patch 07_gallium-fix-build-failure-on-powerpcspe.diff
patching file src/gallium/include/pipe/p_config.h
Hunk #1 succeeded at 103 (offset -4 lines).
Applying patch fix-python-shebang.diff
patching file bin/symbols-check.py
Applying patch path_max.diff
patching file src/util/tests/cache/cache_test.c
patching file src/util/process_test.c
patching file src/gallium/auxiliary/pipe-loader/pipe_loader.c
Applying patch src_glx_dri_common.h.diff
patching file src/glx/dri_common.h
Hunk #1 succeeded at 57 (offset 2 lines).
*/
Now at patch src_glx_dri_common.h.diff
dh_update_autotools_config -O--builddirectory=build/ -O--buildsystem=meson
dh_autoreconf -O--builddirectory=build/ -O--buildsystem=meson
debian/rules override_dh_auto_configure
make[1]: 进入目录“/home/mark-zhao/work/mesa_compile/mesa-21.2.6”
CFLAGS="-g -O2 -fdebug-prefix-map=/home/mark-zhao/work/mesa_compile/mesa-21.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wall" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fdebug-prefix-map=/home/mark-zhao/work/mesa_compile/mesa-21.2.6=. -fstack-protector-strong -Wformat -Werror=format-security -Wall" FCFLAGS="-g -O2 -fdebug-prefix-map=/home/mark-zhao/work/mesa_compile/mesa-21.2.6=. -fstack-protector-strong" FFLAGS="-g -O2 -fdebug-prefix-map=/home/mark-zhao/work/mesa_compile/mesa-21.2.6=. -fstack-protector-strong" GCJFLAGS="-g -O2 -fdebug-prefix-map=/home/mark-zhao/work/mesa_compile/mesa-21.2.6=. -fstack-protector-strong" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro" OBJCFLAGS="-g -O2 -fdebug-prefix-map=/home/mark-zhao/work/mesa_compile/mesa-21.2.6=. -fstack-protector-strong -Wformat -Werror=format-security" OBJCXXFLAGS="-g -O2 -fdebug-prefix-map=/home/mark-zhao/work/mesa_compile/mesa-21.2.6=. -fstack-protector-strong -Wformat -Werror=format-security" dh_auto_configure -- \
-Ddri-drivers="['r100','r200','nouveau','i915','i965']" -Ddri-drivers-path=/usr/lib/x86_64-linux-gnu/dri -Ddri-search-path='/usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri' -Dvulkan-drivers="['amd','swrast','intel']" -Dglvnd=true -Dshared-glapi=enabled -Dgallium-xvmc=disabled -Dgallium-omx=disabled -Db_ndebug=true -Dbuild-tests=true -Dglx-direct=true -Dgbm=enabled -Ddri3=enabled -Dplatforms="x11 ,wayland" -Dgallium-extra-hud=true -Dgallium-vdpau=enabled -Dlmsensors=enabled -Dgallium-xa=enabled -Dllvm=enabled -Dgallium-opencl=icd -Dgallium-nine=true -Dgallium-va=enabled -Dgallium-drivers="['swrast','r300','r600','nouveau','virgl','svga','d3d12','iris','radeonsi','zink']" -Dgles1=disabled -Dgles2=enabled -Dosmesa=true -Dvalgrind=enabled -Dvulkan-layers="device-select, overlay"
cd build && LC_ALL=C.UTF-8 meson .. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu -Ddri-drivers=\['r100','r200','nouveau','i915','i965'\] -Ddri-drivers-path=/usr/lib/x86_64-linux-gnu/dri -Ddri-search-path=/usr/lib/x86_64-linux-gnu/dri:\\\$\${ORIGIN}/dri:/usr/lib/dri -Dvulkan-drivers=\['amd','swrast','intel'\] -Dglvnd=true -Dshared-glapi=enabled -Dgallium-xvmc=disabled -Dgallium-omx=disabled -Db_ndebug=true -Dbuild-tests=true -Dglx-direct=true -Dgbm=enabled -Ddri3=enabled "-Dplatforms=x11 ,wayland" -Dgallium-extra-hud=true -Dgallium-vdpau=enabled -Dlmsensors=enabled -Dgallium-xa=enabled -Dllvm=enabled -Dgallium-opencl=icd -Dgallium-nine=true -Dgallium-va=enabled -Dgallium-drivers=\['swrast','r300','r600','nouveau','virgl','svga','d3d12','iris','radeonsi','zink'\] -Dgles1=disabled -Dgles2=enabled -Dosmesa=true -Dvalgrind=enabled "-Dvulkan-layers=device-select, overlay"
The Meson build system
Version: 0.53.2
Source dir: /home/mark-zhao/work/mesa_compile/mesa-21.2.6
Build dir: /home/mark-zhao/work/mesa_compile/mesa-21.2.6/build
(2)找到 dh_auto_configure 后面跟的参数,从而查看官方打包规则的所有参数:
-Ddri-drivers="['r100','r200','nouveau','i915','i965']" -Ddri-drivers-path=/usr/lib/x86_64-linux-gnu/dri
-Ddri-search-path='/usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri' -Dvulkan-drivers="['amd','swrast','intel']"
-Dglvnd=true -Dshared-glapi=enabled -Dgallium-xvmc=disabled -Dgallium-omx=disabled -Db_ndebug=true
-Dbuild-tests=true -Dglx-direct=true -Dgbm=enabled -Ddri3=enabled -Dplatforms="x11 ,wayland"
-Dgallium-extra-hud=true -Dgallium-vdpau=enabled -Dlmsensors=enabled -Dgallium-xa=enabled -Dllvm=enabled
-Dgallium-opencl=icd -Dgallium-nine=true -Dgallium-va=enabled -Dgallium-drivers="['swrast','r300','r600','nouveau','virgl','svga','d3d12','iris','radeonsi','zink']" -Dgles1=disabled
-Dgles2=enabled -Dosmesa=true -Dvalgrind=enabled -Dvulkan-layers="device-select, overlay"
(3)查看 mesa 源码目录下的 meson_option.txt, 根据自己的需求增减编译参数
我用的 amd 显卡,intel 的 cpu,我需要的参数是:
CFLAGS='-O0 -g' meson build --prefix=安装路径 -Ddri-drivers="" -Dvulkan-drivers="['amd','swrast','intel']" \
-Dglvnd=true -Dshared-glapi=enabled -Dgallium-xvmc=disabled -Dgallium-omx=disabled -Db_ndebug=false \
-Dbuild-tests=true -Dglx-direct=true -Dgbm=enabled -Ddri3=enabled -Dplatforms="x11 ,wayland" \
-Dgallium-extra-hud=true -Dgallium-vdpau=enabled -Dlmsensors=enabled -Dgallium-xa=enabled -Dllvm=enabled \
-Dgallium-opencl=icd -Dgallium-nine=true -Dgallium-va=enabled \
-Dgallium-drivers="['swrast','svga','d3d12','iris','radeonsi']" -Dgles1=disabled -Dgles2=enabled \
-Dosmesa=true -Dvalgrind=enabled -Dvulkan-layers="device-select, overlay"
编译安装:
编译并安装:
$: ninja -C build && ninja -C build install
按照官方的默认参数配置编译后,内容如下:
$:cd ~/work/mesa_compile/mesa_21.2.6_backup
$:~/work/mesa_compile/mesa_21.2.6_backup$ ls
include lib share
$:~/work/mesa_compile/mesa_21.2.6_backup/lib/x86_64-linux-gnu$ ls
dri libgbm.so.1 libGLESv1_CM.so libGLESv2.so.2.0.0 libvulkan_lvp.so pkgconfig
libEGL.so libgbm.so.1.0.0 libGLESv1_CM.so.1 libGL.so libvulkan_radeon.so vdpau
libEGL.so.1 libglapi.so libGLESv1_CM.so.1.1.0 libGL.so.1 libxatracker.so
libEGL.so.1.0.0 libglapi.so.0 libGLESv2.so libGL.so.1.2.0 libxatracker.so.2
libgbm.so libglapi.so.0.0.0 libGLESv2.so.2 libvulkan_intel.so libxatracker.so.2.5.0
$:~/work/mesa_compile/mesa_21.2.6_backup/lib/x86_64-linux-gnu/dri$ ls
i830_dri.so iris_dri.so nouveau_drv_video.so r300_dri.so radeon_dri.so swrast_dri.so
i915_dri.so kms_swrast_dri.so nouveau_vieux_dri.so r600_dri.so radeonsi_dri.so virtio_gpu_dri.so
i965_dri.so nouveau_dri.so r200_dri.so r600_drv_video.so radeonsi_drv_video.so vmwgfx_dri.so
运行:
跑个齿轮看一下:
$ MESA_LOADER_DRIVER_OVERRIDE=radeonsi LD_LIBRARY_PATH=~/work/mesa_compile/mesa_21.2.6_backup/lib/x86_64-linux-gnu/:/usr/lib/llvm-8/lib/ ldd /usr/bin/glxgears
linux-vdso.so.1 (0x00007ffc296cb000)
//libGL.so 是自己的安装路径
libGL.so.1 => /home/mark-zhao/work/mesa_compile/mesa_21.2.6_backup/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f5cd4e2e000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5cd4cc9000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f5cd4b8c000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5cd499a000)
libglapi.so.0 => /home/mark-zhao/work/mesa_compile/mesa_21.2.6_backup/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f5cd495f000)
libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f5cd4949000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5cd4941000)
libxcb-glx.so.0 => /lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f5cd4924000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f5cd48fa000)
libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f5cd48f5000)
libxcb-dri2.so.0 => /lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f5cd48ee000)
libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f5cd48d9000)
libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f5cd48cf000)
libXxf86vm.so.1 => /lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f5cd48c8000)
libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f5cd48c3000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f5cd4895000)
libxcb-dri3.so.0 => /lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f5cd488f000)
libxcb-present.so.0 => /lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f5cd488a000)
libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f5cd487e000)
libxshmfence.so.1 => /lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f5cd467c000)
libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f5cd4672000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5cd464f000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5cd4eb1000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f5cd4649000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f5cd463f000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f5cd4625000)