Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Problem to build mfx gstreamer plugins #181

Open
jbolduc01 opened this issue Mar 24, 2020 · 2 comments
Open

Problem to build mfx gstreamer plugins #181

jbolduc01 opened this issue Mar 24, 2020 · 2 comments

Comments

@jbolduc01
Copy link

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
Copy link
Author

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
Copy link
Contributor

can you try the topic_linux_and_window branch instead?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants