nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
519 stars 25 forks source link

compilation issue on Fedora 36: libdrm/drm_fourcc.h no such file #89

Closed Chevek closed 2 years ago

Chevek commented 2 years ago

Hi, I'm trying to compile and I run into this:

$ LC_ALL=C make
[  7%] Building C object CMakeFiles/linux-vkcapture.dir/src/wlcursor.c.o
/home/steam/Téléchargements/obs-vkcapture-1.1.6/src/wlcursor.c:25:10: fatal error: libdrm/drm_fourcc.h: No such file or directory
   25 | #include <libdrm/drm_fourcc.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/linux-vkcapture.dir/build.make:104: CMakeFiles/linux-vkcapture.dir/src/wlcursor.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/linux-vkcapture.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

It seems, on Fedora, the location is a bit different:

$ find /usr -type f -name 'drm_fourcc.h' 2>/dev/null
/usr/include/drm/drm_fourcc.h

[...]

Best regards