ishmael1985 / gstreamer-media-SDK

GNU Lesser General Public License v2.1
14 stars 5 forks source link

MFX dependency not detected despite Intel Media SDK Installation during Meson build #34

Open skyline220 opened 5 years ago

skyline220 commented 5 years ago

Hi,

Hardware: Kaby Lake i5-7260U Platform: Ubuntu 16.04.04 LTS with kernel 4.14.16

The MFX dependency is not detected during the Meson build and I am therefore unable to complete the install of the plugins. It worked successfully a few months ago when I tried it but now it isn't. I made sure to check the README and the following files are in /opt/intel/mediasdk/lib/pkgconfig after building Intel MediaSDK and following these instructions: https://software.intel.com/en-us/articles/build-and-debug-open-source-media-stack

test@test:/opt/intel/mediasdk/lib/pkgconfig$ ls libmfxhw64.pc libmfx.pc mfx.pc

I first exported the environment variable then:

test@test:~/working_dir/gstreamer-media-SDK$ export PKG_CONFIG_PATH=/opt/intel/mediasdk/lib/pkgconfig

test@test:~/working_dir/gstreamer-media-SDK$ ls AUTHORS gst meson.build NEWS README.USAGE COPYING.LIB gst-libs meson_options.txt README.md version.h.in

test@test:~/working_dir/gstreamer-media-SDK$ sudo meson ../gst-mfx-build_release --prefix=/usr --libdir=lib/x86_64-linux-gnu --buildtype=release The Meson build system Version: 0.49.2 Source dir: /home/test/working_dir/gstreamer-media-SDK Build dir: /home/test/working_dir/gst-mfx-build_release Build type: native build Project name: gst_mfx Project version: 2.1.1 Native C compiler: cc (gcc 5.4.0 "cc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609") Native C++ compiler: c++ (gcc 5.4.0 "c++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609") Build machine cpu family: x86_64 Build machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (0.29.1) Dependency glib-2.0 found: YES 2.48.2 Dependency gobject-2.0 found: YES 2.48.2 Dependency gio-2.0 found: YES 2.48.2 Dependency gmodule-2.0 found: YES 2.48.2 Dependency gstreamer-1.0 found: YES 1.8.3 Dependency gstreamer-base-1.0 found: YES 1.8.3 Dependency gstreamer-video-1.0 found: YES 1.8.3 Dependency gstreamer-allocators-1.0 found: YES 1.8.3 Dependency gstreamer-pbutils-1.0 found: YES 1.8.3 Found CMake: /usr/local/bin/cmake (3.13.4) Dependency mfx found: NO (tried pkgconfig and cmake) DEPRECATION: Project targetting '>= 0.36.0' but tried to use feature deprecated since '0.48.0': python3 module Dependency libva found: YES 1.5.0 Dependency libdrm found: YES 2.4.83 Dependency libdrm_intel found: YES 2.4.83 Dependency libva-drm found: YES 1.5.0 Dependency libudev found: YES 229 Library stdc++ found: YES Library dl found: YES Dependency gstreamer-gl-1.0 found: YES 1.8.3 Dependency gl found: YES 18.0.5 Dependency egl found: YES 17.2.8 Dependency wayland-client found: YES 1.12.0 Dependency x11 found: YES 1.6.3 Dependency x11-xcb found: YES 1.6.3 Dependency xcb-dri3 found: YES 1.11.1 Dependency xrender found: YES 0.9.9 Dependency xkbcommon found: YES 0.5.0 Dependency xrandr found: YES 1.5.0 Configuring version.h using configuration Build targets in project: 2 WARNING: Deprecated features used:

The make step then fails accordingly with:

test@test:~/working_dir/gst-mfx-build_release$ sudo ninja [1/47] Compiling C object 'gst-libs/mf...be@@gstmfx-1.0@sta/gstmfxcontext.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxdisplay.h:28:0, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.h:25, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.c:21: ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtypes.h:29:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [2/47] Compiling C object 'gst-libs/mf...mfx-1.0@sta/gstmfxtaskaggregator.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtaskaggregator.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxdisplay.h:28:0, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.h:25, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtask.h:24, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtaskaggregator.h:24, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtaskaggregator.c:21: ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtypes.h:29:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [3/47] Compiling C object 'gst-libs/mf...be@@gstmfx-1.0@sta/gstmfxsurface.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurface.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurface.h:24:0, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurface.c:21: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [4/47] Compiling C object 'gst-libs/mf...be@@gstmfx-1.0@sta/gstmfxprofile.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxprofile.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxprofile.c:23:0: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [5/47] Compiling C object 'gst-libs/mf...3be@@gstmfx-1.0@sta/gstmfxfilter.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxfilter.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxfilter.c:22:0: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [6/47] Compiling C object 'gst-libs/mf...gstmfx-1.0@sta/gstmfxsurfacepool.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurfacepool.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurfacepool.c:21:0: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. ninja: build stopped: subcommand failed.

Please advise on how to fix.

Thanks

ishmael1985 commented 5 years ago

I noticed you've got multiple .pc files. You should delete those that don't match the msdk installation path.

skyline220 commented 5 years ago

Hi Ishmael,

Thanks for your response and building this library. I looked through the pkgconfig files and they all appear to have the same paths (which appear correct):

libmfx.pc:

Name: mfx Description: Intel(R) Media SDK Dispatcher Version: 1.28

prefix=/opt/intel/mediasdk libdir=/opt/intel/mediasdk/lib includedir=/opt/intel/mediasdk/include Libs: -L${libdir} -lmfx -lstdc++ -ldl Cflags: -I${includedir} -I${includedir}/mfx

libmfxhw64.pc:

Name: mediasdk Description: Intel(R) Media SDK Version: 1.28

prefix=/opt/intel/mediasdk libdir=/opt/intel/mediasdk/lib includedir=/opt/intel/mediasdk/include Libs: -L${libdir} -lmfxhw64 Cflags: -I${includedir} -I${includedir}/mfx

mfx.pc:

Name: mfx Description: Intel(R) Media SDK Dispatcher Version: 1.28

prefix=/opt/intel/mediasdk libdir=/opt/intel/mediasdk/lib includedir=/opt/intel/mediasdk/include Libs: -L${libdir} -lmfx -lstdc++ -ldl Cflags: -I${includedir} -I${includedir}/mfx

I tried removing all but the mfx.pc but the same issue appears where the mfx dependency isn't found. Do you have any thoughts?

ishmael1985 commented 5 years ago

@skyline220 did you resolve this yet? Can you provide the output of the following command? pkg-config --libs mfx

skyline220 commented 5 years ago

@ishmael1985 Thanks for your response, I am still having the same issue. Here is the output of pkg-config --libs mfx

test@test:~/working_dir/gstreamer-media-SDK$ export PKG_CONFIG_PATH=/opt/intel/mediasdk/lib/pkgconfig test@test:~/working_dir/gstreamer-media-SDK$ pkg-config --libs mfx -L/opt/intel/mediasdk/lib -lmfx -lstdc++ -ldl

ishmael1985 commented 5 years ago

Can you ls -al /opt/intel/mediasdk/lib and prove to me the header files are there? This looks like an issue with your MSDK installation. Follow the Intel MSDK installation steps from their official report here - https://github.com/Intel-Media-SDK/MediaSDK/wiki/Build-Media-SDK-on-Ubuntu

ishmael1985 commented 5 years ago

@skyline220 you need to confirm after setting up MSDK where the header files are located.

ishmael1985 commented 5 years ago

@skyline220 one more thing, please do a clean installation, so you have to delete your current MSDK installation using the command rm -rf /opt/intel/mediasdk and delete any ld.so.conf files that may possibly reference this path.

skyline220 commented 5 years ago

Hi Ishmael,

Thanks for your responses, I deleted the current MSDK installation using the command rm -rf /opt/intel/mediasdk and checked and also did not come across any ld.so.conf files that references that path.

I deleted all libraries and started from scratch, following the new instruction link you posted and I am getting this same error:

test@test:~/working_dir/gstreamer-media-SDK$ sudo meson ../gst-mfx-build_release --prefix=/usr --libdir=lib/x86_64-linux-gnu --buildtype=release The Meson build system Version: 0.50.0 Source dir: /home/test/working_dir/gstreamer-media-SDK Build dir: /home/test/working_dir/gst-mfx-build_release Build type: native build Project name: gst_mfx Project version: 2.1.1 Native C compiler: cc (gcc 5.4.0 "cc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609") Native C++ compiler: c++ (gcc 5.4.0 "c++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609") Build machine cpu family: x86_64 Build machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (0.29.1) Dependency glib-2.0 found: YES 2.48.2 Dependency gobject-2.0 found: YES 2.48.2 Dependency gio-2.0 found: YES 2.48.2 Dependency gmodule-2.0 found: YES 2.48.2 Dependency gstreamer-1.0 found: YES 1.8.3 Dependency gstreamer-base-1.0 found: YES 1.8.3 Dependency gstreamer-video-1.0 found: YES 1.8.3 Dependency gstreamer-allocators-1.0 found: YES 1.8.3 Dependency gstreamer-pbutils-1.0 found: YES 1.8.3 Found CMake: /usr/local/bin/cmake (3.13.4) Dependency mfx found: NO (tried pkgconfig and cmake) DEPRECATION: Project targetting '>= 0.36.0' but tried to use feature deprecated since '0.48.0': python3 module Dependency libva found: YES 1.1.0 Dependency libdrm found: YES 2.4.91 Dependency libdrm_intel found: YES 2.4.91 Dependency libva-drm found: YES 1.1.0 Dependency libudev found: YES 229 Library stdc++ found: YES Library dl found: YES Dependency gstreamer-gl-1.0 found: YES 1.8.3 Dependency gl found: YES 18.0.5 Dependency egl found: YES 17.2.8 Dependency wayland-client found: YES 1.8.93 Dependency x11 found: YES 1.6.3 Dependency x11-xcb found: YES 1.6.3 Dependency xcb-dri3 found: YES 1.11.1 Dependency xrender found: YES 0.9.9 Dependency xkbcommon found: YES 0.5.0 Dependency xrandr found: YES 1.5.0 Configuring version.h using configuration Build targets in project: 2 WARNING: Deprecated features used:

The error then occurs during the ninja build:

test@test:~/working_dir/gst-mfx-build_release$ sudo ninja [1/47] Compiling C object 'gst-libs/mf...be@@gstmfx-1.0@sta/gstmfxprofile.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxprofile.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxprofile.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxprofile.c:23:0: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [2/47] Compiling C object 'gst-libs/mf...3be@@gstmfx-1.0@sta/gstmfxfilter.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxfilter.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxfilter.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxfilter.c:22:0: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [3/47] Compiling C object 'gst-libs/mf...be@@gstmfx-1.0@sta/gstmfxcontext.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxcontext.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxdisplay.h:28:0, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.h:25, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.c:21: ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtypes.h:29:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [4/47] Compiling C object 'gst-libs/mf...mfx-1.0@sta/gstmfxtaskaggregator.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxtaskaggregator.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtaskaggregator.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxdisplay.h:28:0, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxcontext.h:25, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtask.h:24, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtaskaggregator.h:24, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtaskaggregator.c:21: ../gstreamer-media-SDK/gst-libs/mfx/gstmfxtypes.h:29:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [5/47] Compiling C object 'gst-libs/mf...gstmfx-1.0@sta/gstmfxsurfacepool.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurfacepool.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurfacepool.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurfacepool.c:21:0: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. [6/47] Compiling C object 'gst-libs/mf...be@@gstmfx-1.0@sta/gstmfxsurface.c.o'. FAILED: gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o cc -Igst-libs/mfx/17ed3be@@gstmfx-1.0@sta -Igst-libs/mfx -I../gstreamer-media-SDK/gst-libs/mfx -I. -I../gstreamer-media-SDK/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-1.0 -I/usr/lib/x86_64-linux-gnu/gstreamer-1.0/include -I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fPIC -pthread -DWITH_LIBVA_BACKEND -DHAVE_GST_GL_LIBS -DGST_USE_UNSTABLE_API -DMFX_DECODER -DMFX_VPP -DUSE_WAYLAND -DUSE_DRI3 -DHAVE_XKBLIB -DHAVE_XRANDR -DMFX_SINK -DMFX_H264_ENCODER -DMFX_MPEG2_ENCODER -DMFX_JPEG_ENCODER -MD -MQ 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o' -MF 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o.d' -o 'gst-libs/mfx/17ed3be@@gstmfx-1.0@sta/gstmfxsurface.c.o' -c ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurface.c In file included from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurface.h:24:0, from ../gstreamer-media-SDK/gst-libs/mfx/gstmfxsurface.c:21: ../gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:48:22: fatal error: mfxvideo.h: No such file or directory compilation terminated. ninja: build stopped: subcommand failed.

Here are the header files:

test@test:~/working_dir/gst-mfx-build_release$ ls -al /opt/intel/mediasdk/lib total 42556 drwxr-xr-x 4 root root 4096 Apr 10 17:57 . drwxr-xr-x 5 root root 4096 Apr 10 17:57 .. lrwxrwxrwx 1 root root 15 Apr 10 17:57 libmfxhw64.so -> libmfxhw64.so.1 lrwxrwxrwx 1 root root 18 Apr 10 17:57 libmfxhw64.so.1 -> libmfxhw64.so.1.29 -rw-r--r-- 1 root root 43074400 Apr 10 17:56 libmfxhw64.so.1.29 lrwxrwxrwx 1 root root 11 Apr 10 17:57 libmfx.so -> libmfx.so.1 lrwxrwxrwx 1 root root 14 Apr 10 17:57 libmfx.so.1 -> libmfx.so.1.29 -rw-r--r-- 1 root root 481504 Apr 10 17:54 libmfx.so.1.29 drwxr-xr-x 2 root root 4096 Apr 10 17:57 mfx drwxr-xr-x 2 root root 4096 Apr 10 17:57 pkgconfig

Also:

test@test:~/working_dir/gst-mfx-build_release$ pkg-config --libs mfx -L/opt/intel/mediasdk/lib -lmfx -lstdc++ -ldl

Any thoughts on how to resolve this?

Thanks

skyline220 commented 5 years ago

Hi, just was wondering if there are ideas on how to resolve this?

Thanks

skyline220 commented 5 years ago

Any thoughts on how to resolve this?

Thanks