samples
samples copied to clipboard
Compile issue, ubuntu, /usr/local/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
[ 1%] Building CXX object sample_common/CMakeFiles/sample_common.dir/src/general_allocator.cpp.o
cd /opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/__cmake/intel64.make.release/sample_common && /usr/bin/c++ -DLINUX -DLINUX32 -DLINUX64 -DMFX_FILE_VERSION=\"0.17.4.18\" -DMFX_PRODUCT_VERSION=\"0.0.000.0000\" -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -I/opt/intel/mediasdk/include -I/opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/sample_common/include -I/opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/sample_misc/wayland/include -m64 -msse4.2 -pipe -fPIC -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wall -Wno-unknown-pragmas -Wno-unused -DNDEBUG -I/usr/local/include -I/usr/include/libdrm -DLIBVA_SUPPORT -DLIBVA_DRM_SUPPORT -DLIBVA_X11_SUPPORT -o CMakeFiles/sample_common.dir/src/general_allocator.cpp.o -c /opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/sample_common/src/general_allocator.cpp
In file included from /opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/sample_common/include/vaapi_utils.h:29:0,
from /opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/sample_common/include/vaapi_allocator.h:30,
from /opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/sample_common/src/general_allocator.cpp:29:
/usr/local/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
compilation terminated.
make[2]: *** [sample_common/CMakeFiles/sample_common.dir/src/general_allocator.cpp.o] Error 1
sample_common/CMakeFiles/sample_common.dir/build.make:401: recipe for target 'sample_common/CMakeFiles/sample_common.dir/src/general_allocator.cpp.o' failed
make[2]: Leaving directory '/opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/__cmake/intel64.make.release'
make[1]: *** [sample_common/CMakeFiles/sample_common.dir/all] Error 2
CMakeFiles/Makefile2:327: recipe for target 'sample_common/CMakeFiles/sample_common.dir/all' failed
make[1]: Leaving directory '/opt/MediaServerStudioEssentials2017R2/MediaSamples_Linux_2017R2_b634/samples/__cmake/intel64.make.release'
make: *** [all] Error 2
Makefile:130: recipe for target 'all' failed
[ intel64.make.release State: FAIL ]
possibly related to this issue: https://bugs.freedesktop.org/show_bug.cgi?id=9997
I am unsure how to modify the cmake config in order for libdrm to be referenced properly
Please try to reproduce with actual codebase https://github.com/Intel-Media-SDK/MediaSDK/tree/master/samples and/or move issue to https://github.com/Intel-Media-SDK/MediaSDK. This repo would be archived.