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 driver compilation fails with- "fatal error: va/va_dricommon.h: No such file or directory" #405

Closed
ajitkumarkp opened this issue Nov 5, 2018 · 8 comments
Labels
In Progress PR: still under discussion

Comments

@ajitkumarkp
Copy link

Hi,
I have successfully installed gmmlib and libva. But when it comes to the media-driver, the installation fails with the below error messages. Please help to resolve. Let me know if/what additional info is needed from my side. Tx.

[ 30%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/libdrm/xf86drmHash.c.o
[ 30%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/libdrm/xf86drmMode.c.o
[ 31%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/libdrm/mos_bufmgr.c.o
[ 31%] Building CXX object media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/os/libdrm/mos_bufmgr_api.c.o
In file included from /home/intelpae/Desktop/MediaStack/media-driver/media_driver/linux/common/ddi/media_libva_putsurface_linux.cpp:46:0:
/home/intelpae/Desktop/MediaStack/media-driver/media_driver/linux/common/ddi/media_libva_putsurface_linux.h:31:10: fatal error: va/va_dricommon.h: No such file or directory
#include <va/va_dricommon.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/build.make:10526: recipe for target 'media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_putsurface_linux.cpp.o' failed
make[2]: *** [media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva_putsurface_linux.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/intelpae/Desktop/MediaStack/media-driver/media_driver/linux/common/ddi/media_libva.cpp:45:0:
/home/intelpae/Desktop/MediaStack/media-driver/media_driver/linux/common/ddi/media_libva_putsurface_linux.h:31:10: fatal error: va/va_dricommon.h: No such file or directory
#include <va/va_dricommon.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.

media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/build.make:10430: recipe for target 'media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva.cpp.o' failed
make[2]: *** [media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/linux/common/ddi/media_libva.cpp.o] Error 1
CMakeFiles/Makefile2:167: recipe for target 'media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/all' failed
make[1]: *** [media_driver/CMakeFiles/iHD_drv_video_OBJ.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

@XinfengZhang
Copy link
Contributor

hi , could you help to check is va_dricommon.h is exist in your installed libva include folder?

@XinfengZhang XinfengZhang added the In Progress PR: still under discussion label Nov 8, 2018
@ajitkumarkp
Copy link
Author

Hi, Yes va_dricommon.h exists in /libva/va folder.
Here's my tree:

├── build_media
├── gmmlib
├── libva
├── libva-utils
└── media-driver

@eero-t
Copy link

eero-t commented Nov 16, 2018

Do you have libva-dev package installed on your distribution? If yes, check that media driver didn't find that instead of the one you built from your CMake configuration (if that's the issue, you didn't tell media driver where to find the installed config files for the sources you built).

@ajitkumarkp
Copy link
Author

Sry for the delayed response! I checked, I dont have libva-dev pkg. btw im using Ubuntu 17.10.

@ajitkumarkp
Copy link
Author

The problem was with my libva installation path. Did the whole thing from scratch and its working this time. Closing the issue, Thanks!

@okias
Copy link

okias commented Apr 9, 2020

Got the same error, when libva is compiled without X support (running stack on wayland). Is this header also required for wayland build?

@okias
Copy link

okias commented Sep 19, 2020

Issue is still valid on 20.2.0 .

@XinfengZhang
Copy link
Contributor

same as #308 (comment)

XinfengZhang added a commit to XinfengZhang/media-driver that referenced this issue Jul 14, 2021
Fixes intel#308 intel#405

Signed-off-by: XinfengZhang <carl.zhang@intel.com>
intel-mediadev pushed a commit that referenced this issue Oct 27, 2021
Fixes #308 #405

Signed-off-by: XinfengZhang <carl.zhang@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Progress PR: still under discussion
Projects
None yet
Development

No branches or pull requests

5 participants
@okias @eero-t @ajitkumarkp @XinfengZhang and others