intel / gstreamer-media-SDK

GNU Lesser General Public License v2.1
90 stars 49 forks source link

Problem to build mfx gstreamer plugins #181

Open jbolduc01 opened 4 years ago

jbolduc01 commented 4 years ago

I have an UpSquared board using latest Ubuntu 18.04 and I have some problems to build it. Linux up 5.3.0-42-generic #34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux When I do cmake ..

-- MediaSDK distribution found in /opt/intel/mediasdk
-- MediaSDK include directory: /opt/intel/mediasdk/include
-- MediaSDK library directory: /opt/intel/mediasdk/lib/lin_x64/libmfx.a
Build: release
-- Configuring done
-- Generating done
-- Build files have been written to: /home/up/gstreamer-media-SDK/build

When I try make, I have the following output:

[  1%] Building C object CMakeFiles/gstmfx.dir/gst/mfx/gstmfx.c.o
In file included from /home/up/gstreamer-media-SDK/gst-libs/mfx/gstmfxtaskaggregator.h:24:0,
                 from /home/up/gstreamer-media-SDK/gst/mfx/gstmfxpluginbase.h:31,
                 from /home/up/gstreamer-media-SDK/gst/mfx/gstmfxdec.h:24,
                 from /home/up/gstreamer-media-SDK/gst/mfx/gstmfx.c:24:
/home/up/gstreamer-media-SDK/gst-libs/mfx/sysdeps.h:34:10: fatal error: mfxvideo.h: No such file or directory
 #include <mfxvideo.h>
          ^~~~~~~~~~~~
compilation terminated.
CMakeFiles/gstmfx.dir/build.make:62: recipe for target 'CMakeFiles/gstmfx.dir/gst/mfx/gstmfx.c.o' failed
make[2]: *** [CMakeFiles/gstmfx.dir/gst/mfx/gstmfx.c.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/gstmfx.dir/all' failed
make[1]: *** [CMakeFiles/gstmfx.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

It seems there is an issue similar to this actually but it does help. Do you know what this could be? Regards, Jérôme

jbolduc01 commented 4 years ago

I tried to do export PKG_CONFIG_PATH=/opt/intel/mediasdk/lib/pkgconfig/ and then cmake .. & make Here is what I get after make: [ 1%] Built target gstmfx Result of sudo make install:

[100%] Built target gstmfx
Install the project...
-- Install configuration: "release"
-- Installing: /usr/local/gstreamer-1.0/libgstmfx.so
-- Set runtime path of "/usr/local/gstreamer-1.0/libgstmfx.so" to "/opt/intel/mediasdk/lib"

using gst-inspect-1.0:

up@up:~/gstreamer-media-SDK/build$ gst-inspect-1.0 mfxvpp
No such element or plugin 'mfxvpp'

Any ideas?

ishmael1985 commented 4 years ago

can you try the topic_linux_and_window branch instead?