turnip-freereno Build error (/usr/local/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory)
Hello I installed and use Termux(Temux X11 Xwayland) Proot-distro Debian linux on Galaxy Tab S8+.
Check support for A7xx GPU series from Mesa 23.1.0 ~ 23.2.0 I was going to install the build of turnip-freereno and mesa-zink
A certain error occurred in turnip-freedreno and it is continuing to fail.
My usage environment is as follows.
Termux + Turmux X11 OS info
OS: Debian GNU/Linux 12 (bookworm) aarch64
Host: samsung SM-X806N (AP : qualcomm snapdragon8 gen1)
Kernel: 6.2.1-PRoot-Distro
DE: Xfce 4.18
/etc/apt/sources.list
deb [signed-by="/usr/share/keyrings/debian-archive-keyring.gpg"] http://deb.deb>
deb [signed-by="/usr/share/keyrings/debian-archive-keyring.gpg"] http://deb.deb>
deb [signed-by="/usr/share/keyrings/debian-archive-keyring.gpg"] http://securit>
deb-src http://httpredir.debian.org/debian bullseye main non-free contrib
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib n>
deb http://httpredir.debian.org/debian bullseye main non-free contrib
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-f>
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
And the installation process is as follows.
sudo apt update
sudo apt upgrade
sudo apt build-dep mesa
sudo apt install make cmake git wget vulkan-tools mesa-utils g++-arm-linux-gnueabihf g++-aarch64-linux-gnu
sudo apt install libgl1:arm64 libvulkan1:arm64 libglvnd-dev:arm64 zlib1g-dev:arm64 libexpat1-dev:arm64 libdrm-dev:arm64 libx11-dev:arm64 libxext-dev:arm64 libxdamage-dev:arm64 libxcb-glx0-dev:arm64 libx11-xcb-dev:arm64 libxcb-dri2-0-dev:arm64 libxcb-dri3-dev:arm64 libxcb-present-dev:arm64 libxshmfence-dev:arm64 libxxf86vm-dev:arm64 libxrandr-dev:arm64 libwayland-dev:arm64 wayland-protocols:arm64 libwayland-egl-backend-dev:arm64 libxcb-shm0-dev:arm64 pkg-config:arm64
cp /usr/include/libdrm/drm.h /usr/include/libdrm/drm_mode.h /usr/include/
git clone https://gitlab.freedesktop.org/mesa/mesa
meson build -D platforms=x11,wayland -D gallium-drivers=swrast,virgl,zink,freedreno -D vulkan-drivers=freedreno -D dri3=enabled -D egl=enabled -D gles2=enabled -D glvnd=true -D glx=dri -D libunwind=disabled -D osmesa=true -D shared-glapi=enabled -D microsoft-clc=disabled -D valgrind=disabled --prefix /usr -D gles1=disabled -D freedreno-kmds=kgsl -Dbuildtype=release
ninja -C build
And an error occurred
In file included from ../src/util/libdrm.h:31, from ../src/freedreno/vulkan/tu_knl.cc:19: /usr/local/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory 40 | #include <drm.h> | ^~~~~~~ compilation terminated. [666/1563] Compiling C++ object src/fr...eedreno.so.p/tu_dynamic_rendering.cc.o ninja: build stopped: subcommand failed.
Although drm.h and drm_mode.h are present in the path '/usr/include/libdrm/', it is not known if this error occurs.
How can we solve this?