[Mesa-dev] [PATCH 3/4] st/mesa: automake: honour the vdpau header install location

Emil Velikov emil.l.velikov at gmail.com
Tue Apr 18 18:46:13 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

If VDPAU is installed in the non-default location, we'll fail to find
the headers and error at build time.

../../src/gallium/include/state_tracker/vdpau_dmabuf.h:37:25: fatal error: vdpau/vdpau.h: No such file or directory
 #include <vdpau/vdpau.h>
                         ^

Fixes: faba96bc60b ("st/vdpau: add new interop interface")
Cc: Christian König <christian.koenig at amd.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
Unrelated: I'm itching to fold the three interop headers, but that will
follow at a later stage.
---
 src/mesa/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am
index 9710c7f0941..53f311d2a97 100644
--- a/src/mesa/Makefile.am
+++ b/src/mesa/Makefile.am
@@ -96,6 +96,7 @@ endif
 
 AM_CPPFLAGS = $(DEFINES) $(INCLUDE_DIRS)
 AM_CFLAGS = \
+	$(VDPAU_CFLAGS) \
 	$(LLVM_CFLAGS) \
 	$(VISIBILITY_CFLAGS) \
 	$(MSVC2013_COMPAT_CFLAGS)
-- 
2.12.2



More information about the mesa-dev mailing list