Bug 98737

Summary: Build of gst-vaapi fails when wayland, and hence libva is built with custom include dir
Product: libva Reporter: Bjørn Lie <bjorn.lie>
Component: coreAssignee: haihao <haihao.xiang>
Status: CLOSED NOTOURBUG QA Contact: Sean V Kelley <seanvk>
Severity: normal    
Priority: medium CC: bjorn.lie
Version: unspecified   
Hardware: Other   
OS: All   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=773946
Whiteboard:
i915 platform: i915 features:

Description Bjørn Lie 2016-11-15 13:22:17 UTC
Please see https://bugzilla.gnome.org/show_bug.cgi?id=773946

From "downstream" bug:

On openSUSE wayland is built with a custom includedir (upstream supported option)

aka /usr/include/wayland/*

When trying to build new 1.10.0 gstreamer-vaapi, compilation fails as it does not find wayland header files.

[  233s]   CC       libgstvaapi_glx_la-gstvaapidisplay_glx.lo
[  233s]   CC       libgstvaapi_glx_la-gstvaapitexture_glx.lo
[  234s]   CC       libgstvaapi_glx_la-gstvaapiutils_glx.lo
[  235s]   CC       libgstvaapi_glx_la-gstvaapiwindow_glx.lo
[  235s]   CC       libgstvaapi_egl_la-gstvaapidisplay_egl.lo
[  236s]   CC       libgstvaapi_egl_la-gstvaapisurface_egl.lo
[  237s] In file included from gstvaapidisplay_wayland.h:27:0,
[  237s]                  from gstvaapidisplay_egl.c:35:
[  237s] /usr/include/va/va_wayland.h:31:28: fatal error: wayland-client.h: No such file or directory
[  237s]  #include <wayland-client.h>
[  237s]                             ^
[  237s] compilation terminated.
[  237s] make[5]: *** [Makefile:1256: libgstvaapi_egl_la-gstvaapidisplay_egl.lo] Error 1
[  237s] make[5]: *** Waiting for unfinished jobs....
[  238s] make[5]: Leaving directory '/home/abuild/rpmbuild/BUILD/gstreamer-vaapi-1.10.0/gst-libs/gst/vaapi'
[  238s] make[4]: *** [Makefile:1073: all] Error 2
[  238s] make[4]: Leaving directory '/home/abuild/rpmbuild/BUILD/gstreamer-vaapi-1.10.0/gst-libs/gst/vaapi'
[  238s] make[3]: *** [Makefile:469: all-recursive] Error 1
[  238s] make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/gstreamer-vaapi-1.10.0/gst-libs/gst'

Looks like gst-vaapi does not actually read the .pc file

From the logfile, it might be that the fault is really inside libva, but filing bug here since this is where the problem manifested itself.

From gst-vaapi maintainers:

Hi, 

I agree on this is a bug related with libva, not gstreamer-vaapi, as you said.

Did you open a bug there in libva's tracker?
Comment 1 Dominique Leuenberger 2016-11-25 09:17:15 UTC
The issue had been analyzed and been pinned down to be in gstreamer-vaapi directly.

Fix has been commited in git:
https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi/commit/?id=8effd68975d04a24ed50802fb3a81d56a0047b99

=> Not our bug

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.