Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Media Common] Fix non-X11 build #1214

Merged
merged 1 commit into from Aug 18, 2021
Merged

[Media Common] Fix non-X11 build #1214

merged 1 commit into from Aug 18, 2021

Conversation

bkuhls
Copy link
Contributor

@bkuhls bkuhls commented Jun 30, 2021

media_libva_putsurface_linux.h is already included in
https://github.com/intel/media-driver/blob/master/media_softlet/linux/common/ddi/media_libva_interface_next.cpp#L29

which is guarded by defined(X11_FOUND).

Removing this superflous line fixed non-X11 builds:

In file included from intel-mediadriver-6c183bf8d5c002549a486e4730bbafec04fc1fc8/media_softlet/linux/common/ddi/media_libva_interface_next.cpp:38:0:
intel-mediadriver-6c183bf8d5c002549a486e4730bbafec04fc1fc8/media_driver/linux/common/ddi/media_libva_putsurface_linux.h:31:29: fatal error: va/va_dricommon.h: No such file or directory
#include <va/va_dricommon.h>

because va/va_dricommon.h is only present when libva was built with X11
support:
https://github.com/intel/libva/blob/master/va/x11/Makefile.am#L41

media_libva_putsurface_linux.h is already included in
https://github.com/intel/media-driver/blob/master/media_softlet/linux/common/ddi/media_libva_interface_next.cpp#L29

which is guarded by defined(X11_FOUND).

Removing this superflous line fixed non-X11 builds:

In file included from intel-mediadriver-6c183bf8d5c002549a486e4730bbafec04fc1fc8/media_softlet/linux/common/ddi/media_libva_interface_next.cpp:38:0:
intel-mediadriver-6c183bf8d5c002549a486e4730bbafec04fc1fc8/media_driver/linux/common/ddi/media_libva_putsurface_linux.h:31:29: fatal error: va/va_dricommon.h: No such file or directory
 #include <va/va_dricommon.h>

because va/va_dricommon.h is only present when libva was built with X11
support:
https://github.com/intel/libva/blob/master/va/x11/Makefile.am#L41
@edwarddavidbaker
Copy link
Contributor

Hi @peiranzh can you take a look at this?

@XinfengZhang XinfengZhang added the verifying PR: fix ready and verifying with build/test label Aug 12, 2021
@intel-mediadev intel-mediadev merged commit 9761ab9 into intel:master Aug 18, 2021
@edwarddavidbaker
Copy link
Contributor

Thanks for the help everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verifying PR: fix ready and verifying with build/test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants