besitzer@MSI:~/nvidia-vaapi-driver$ sudo meson install -C build
ninja: Entering directory `/home/besitzer/nvidia-vaapi-driver/build'
[4/12] Compiling C object nvidia_drv_video.so.p/src_export-buf.c.o
FAILED: nvidia_drv_video.so.p/src_export-buf.c.o
cc -Invidia_drv_video.so.p -I. -I.. -I/usr/local/include -I/usr/include/gstreamer-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -std=c11 -g -fPIC -pthread -MD -MQ nvidia_drv_video.so.p/src_export-buf.c.o -MF nvidia_drv_video.so.p/src_export-buf.c.o.d -o nvidia_drv_video.so.p/src_export-buf.c.o -c ../src/export-buf.c
../src/export-buf.c: In function ‘findCudaDisplay’:
../src/export-buf.c:152:81: error: ‘EGL_DRM_RENDER_NODE_FILE_EXT’ undeclared (first use in this function); did you mean ‘EGL_DRM_DEVICE_FILE_EXT’?
152 | const char* drmDeviceFile = eglQueryDeviceStringEXT(devices[i], EGL_DRM_RENDER_NODE_FILE_EXT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| EGL_DRM_DEVICE_FILE_EXT
../src/export-buf.c:152:81: note: each undeclared identifier is reported only once for each function it appears in
[6/12] Compiling C object nvidia_drv_video.so.p/src_h264.c.o
../src/h264.c: In function ‘computeH264CudaCodec’:
../src/h264.c:115:5: warning: ‘VAProfileH264Baseline’ is deprecated [-Wdeprecated-declarations]
115 | if (profile == VAProfileH264Baseline || profile == VAProfileH264ConstrainedBaseline || profile == VAProfileH264Main || profile == VAProfileH264High) {
| ^~
In file included from /usr/include/va/va_backend.h:32,
from ../src/vabackend.h:5,
from ../src/h264.c:1:
/usr/include/va/va.h:503:5: note: declared here
503 | VAProfileH264Baseline va_deprecated_enum = 5,
| ^~~~~~~~~~~~~~~~~~~~~
../src/h264.c: At top level:
../src/h264.c:127:5: warning: ‘VAProfileH264Baseline’ is deprecated [-Wdeprecated-declarations]
127 | VAProfileH264Baseline,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/va/va_backend.h:32,
from ../src/vabackend.h:5,
from ../src/h264.c:1:
/usr/include/va/va.h:503:5: note: declared here
503 | VAProfileH264Baseline va_deprecated_enum = 5,
| ^~~~~~~~~~~~~~~~~~~~~
[11/12] Compiling C object nvidia_drv_video.so.p/src_vabackend.c.o
../src/vabackend.c: In function ‘nvQueryConfigProfiles’:
../src/vabackend.c:303:9: warning: ‘VAProfileH264Baseline’ is deprecated [-Wdeprecated-declarations]
303 | profile_list[profiles++] = VAProfileH264Baseline;
| ^~~~~~~~~~~~
In file included from /usr/include/va/va_backend.h:32,
from ../src/vabackend.h:5,
from ../src/vabackend.c:3:
/usr/include/va/va.h:503:5: note: declared here
503 | VAProfileH264Baseline va_deprecated_enum = 5,
| ^~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Could not rebuild /home/besitzer/nvidia-vaapi-driver/build
It does not appear that you are building code fro this project, so I'm closing this issue. However, the likely fix is to download newer EGL headers from Khronos: https://khronos.org/registry/EGL/