Search code examples
linuxdrm

which libs are a header file belongs to


OS:Debian9 Linux4.4 
Hardware:ARMv9

How do i know which libs is a header file in /usr/include/ belongs to?

for example, there is an error when I build camera-app-gstreamer:

camera-app-gstreamer/xcore'
drm_display.h:30:17: fatal error: drm.h: No such file or directory
 #include <drm.h>**

I fixed it by apt install libdrm-dev, after installing libdrm-dev, header files named drm.h, drm*.h appears in /usr/include.

now, I have Make problem , it shows:

conftest.c:29:41: fatal error: linux/atomisp.h: No such file or directory
#include <linux/atomisp.h> 

and how can I find which lib it belongs to ?

Thank you.


Solution

  • Use the package content search of your distribution, in this case you can find it here.

    If you cannot find the filename through that search, it means there is no debian package providing it.