[Libva] [patch intel-driver 2/2] Fix various wayland-related compile errors

Bernd Kuhls bernd.kuhls at t-online.de
Sat Jul 19 03:30:49 PDT 2014


i965_output_wayland.c:31:41: fatal error: wayland-drm-client-protocol.h:
 No such file or directory

i965_output_wayland.h:31:26: error: unknown type name 'VADriverContextP'

make[4]: *** No rule to make target `wayland-drm-client-protocol.h', needed by
 `i965_output_wayland.c'.  Stop.

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 src/Makefile.am           |    2 +-
 src/i965_output_wayland.c |    2 +-
 src/i965_output_wayland.h |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index b35d1ac..f315cbd 100755
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -146,7 +146,7 @@ driver_cflags			+= $(WAYLAND_CFLAGS)
 endif
 
 # Wayland protocol
-protocol_source_h = wayland-drm-client-protocol.h
+#protocol_source_h = wayland-drm-client-protocol.h
 i965_output_wayland.c: $(protocol_source_h)
 @wayland_scanner_rules@
 
diff --git a/src/i965_output_wayland.c b/src/i965_output_wayland.c
index 5a75397..985444b 100644
--- a/src/i965_output_wayland.c
+++ b/src/i965_output_wayland.c
@@ -28,7 +28,7 @@
 #include <va/va_backend.h>
 #include <va/va_backend_wayland.h>
 #include <wayland-client.h>
-#include <wayland-drm-client-protocol.h>
+#include <va/wayland-drm-client-protocol.h>
 #include "intel_driver.h"
 #include "i965_output_wayland.h"
 #include "i965_drv_video.h"
diff --git a/src/i965_output_wayland.h b/src/i965_output_wayland.h
index 61ca39f..acea8d9 100644
--- a/src/i965_output_wayland.h
+++ b/src/i965_output_wayland.h
@@ -26,6 +26,7 @@
 #define I965_OUTPUT_WAYLAND_H
 
 #include <stdbool.h>
+#include <va/va_backend.h>
 
 bool
 i965_output_wayland_init(VADriverContextP ctx);
-- 
1.7.10.4



More information about the Libva mailing list