Skip to contentSkip to conversation

xf86drm.h:40:17: error: drm.h: No such file or directory

Bug 99972 [email protected] 1 participant 4 messages Feb 26, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=99972

            Bug ID: 99972
           Summary: xf86drm.h:40:17: error: drm.h: No such file or
                    directory
           Product: DRI
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: libdrm
          Assignee: [email protected]
          Reporter: [email protected]

In libdrm-2.4.75, xf86drm.h and xf86drmMode.h include drm.h, which doesn't exist.
drm.h and friends are installed in /usr/local/include/libdrm.

When compiling a C program that includes xf86dri.h with GCC, the following error message appears:

/usr/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory

   #include <drm.h>
                   ^
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=99972

--- Comment #1 from Emil Velikov <[email protected]> --- Me again ...

There is some contradiction in your statement - "drm.h" doesn't exist. "drm.h" does exist in X :-P

But seriously, sounds like want to read-up on pkg-config [1].

In a nut-shell: gcc pkg-config --cflags --libs libdrm foo.c bar.c -o binary

[1] https://people.freedesktop.org/~dbn/pkg-config-guide.html

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99972

Joaquín Montero Salinas <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |NOTABUG
             Status|NEW                         |RESOLVED

--- Comment #2 from Joaquín Montero Salinas <[email protected]> --- (In reply to Emil Velikov from comment #1)

Quoted 11 lines

Me again ...

There is some contradiction in your statement - "drm.h" doesn't exist. "drm.h" does exist in X :-P

But seriously, sounds like want to read-up on pkg-config [1].

In a nut-shell: gcc pkg-config --cflags --libs libdrm foo.c bar.c -o binary

[1] https://people.freedesktop.org/~dbn/pkg-config-guide.html

Me again...

Totally forgot about pkg-config, thought I could get away with just tacking a -ldrm at the end of my compilation line.

Sorry for wasting your time, again :-P

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99972

Christian König <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel