intel / libyami

Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.
Apache License 2.0
146 stars 106 forks source link

wayland headers in "custom" include dir make build fail #853

Open zaitor opened 6 years ago

zaitor commented 6 years ago

In opensuse wayland is built with headers placed in %_includedir/wayland/ - this makes the build fail with the following error:

[ 89s] Making all in v4l2 [ 89s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/libyami-libyami-1.3.0/v4l2' [ 89s] CXX libyamiv4l2_la-v4l2_codecbase.lo [ 89s] CXX libyamiv4l2_la-v4l2_decode.lo [ 89s] CXX libyamiv4l2_la-v4l2_wrapper.lo [ 89s] CXX libyamiv4l2_la-v4l2_encode.lo [ 89s] CC ../egl/libyamiv4l2_la-egl_util.lo [ 89s] CXX ../egl/libyamiv4l2_la-egl_vaapi_image.lo [ 90s] In file included from v4l2_codecbase.cpp:38:0: [ 90s] /usr/include/va/va_wayland.h:31:10: fatal error: wayland-client.h: No such file or directory [ 90s] #include [ 90s] ^~~~~~ [ 90s] In file included from v4l2_decode.cpp:36:0: [ 90s] /usr/include/va/va_wayland.h:31:10: fatal error: wayland-client.h: No such file or directory [ 90s] #include [ 90s] ^~~~~~ [ 90s] compilation terminated. [ 90s] compilation terminated. [ 90s] make[2]: [Makefile:583: libyamiv4l2_la-v4l2_decode.lo] Error 1 [ 90s] make[2]: Waiting for unfinished jobs.... [ 90s] make[2]: *** [Makefile:576: libyamiv4l2_la-v4l2_codecbase.lo] Error 1

Rebuilding wayland with headers in standard include dir makes the build of libyami complete ok.

xuguangxin commented 6 years ago

Hi @zaitor , this means opensuse puts wayland headers in wayland/ but it did not add wayland/ to includes? seems a opensuse issue...:)