DRM Kernel Headers seem to be missing

The directory /usr/include/drm doesn't exist. As such,

#include <drm/drm.h>
#include <drm/drm_mode.h>

Fails.

I have installed the kernel headers linux57-headers-5.7.0-3

Are the headers installed into a different location? Do I need a different package? How do I fix this?

What about

libdrm/drm.h
libdrm/drm_mode.h

They belong to package libdrm 2.4.102-1

I just ran a diff on my Gentoo system which has both. It seems that drm.h is exactly the same between the version provided by libdrm and that by the kernel. drm_mode.h is very slightly different. It looks like it's just a different version. I should be able to use those headers instead without any changes to my code(#includes notwithstanding). Since they are so similar, that would explain why Manjaro didn't bother including them both. Thanks for the help.

This topic was automatically closed after 180 days. New replies are no longer allowed.

Forum kindly sponsored by