AW: Enable msdk plugins while building gstreamer-1.0 from source

Thornton, Keith keith.thornton at zeiss.com
Wed Feb 6 14:05:46 UTC 2019


I Think you will need at least the 1.15 build ( I haven’t tried it myself) A lot of the stuff needed to build msdk for windows is scheduled for the 1.16 release

Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von Saurabh Bora
Gesendet: Mittwoch, 6. Februar 2019 14:33
An: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Betreff: Re: Enable msdk plugins while building gstreamer-1.0 from source

Hi Keith,

I am using windows and I have visual studio 2015 installed on my machine. I believe, in my current repository,  the cerbero build recipe does not using meson for building for gst-plugins-bad-1.0.

Hence, I have tried cloning a new repository which uses meson build system for gstreamer-1.0
Step1)  git clone -b meson-1.14 https://github.com/centricular/cerbero

Step2) I tried building gstreamer-1.0 using following command, but build fails
cerbero -c config/win64-msvc-shell.cbc build gstreamer-1.0

Please take a look at output below which was printed on console window.
-------------------------------------------------------------------------------------
212730892 at GBX8JPQ2E ~/cerbero
$ cerbero -c config/win64-msvc-shell.cbc build gstreamer-1.0
WARNING: Using default configuration because C:/MinGW/msys/1.0/home/212730892/.cerbero/cerbero.cbc is missing
Building the following recipes: mingw-runtime libffi zlib proxy-libintl glib gtk-doc-lite gstreamer-1.0
[(1/7) mingw-runtime -> already built ]
[(2/7) libffi -> already built ]
[(3/7) zlib -> already built ]
[(4/7) proxy-libintl -> already built ]
[(5/7) glib -> already built ]
[(6/7) gtk-doc-lite -> already built ]
[(7/7) gstreamer-1.0 -> fetch ]
[(7/7) gstreamer-1.0 -> extract ]
[(7/7) gstreamer-1.0 -> configure ]
[(7/7) gstreamer-1.0 -> compile ]
Running command 'ninja -v'
[1/563] cl @gst/printf/gst at printf@@gstprintf at sta/printf.c.obj.rsp
[2/563] cl @gst/printf/gst at printf@@gstprintf at sta/asnprintf.c.obj.rsp
[3/563] cl @gst/printf/gst at printf@@gstprintf at sta/printf-args.c.obj.rsp
[4/563] cl @gst/printf/gst at printf@@gstprintf at sta/printf-parse.c.obj.rsp
[5/563] "c:/ProgramData/Anaconda3/python3.exe" "gst/parse/gen_lex.py" "gst/parse/lex.priv_gst_parse_yy.c" "gst/parse/parse_lex.h" "../gst/parse/parse.l" "DUMMY"
[6/563] cl @gst/printf/gst at printf@@gstprintf at sta/printf-extension.c.obj.rsp
[7/563] cl @gst/printf/gst at printf@@gstprintf at sta/vasnprintf.c.obj.rsp
[8/563] "c:/ProgramData/Anaconda3/python3.exe" "gst/parse/gen_grammar.py" "gst/parse/grammar.tab.c" "gst/parse/grammar.tab.h" "../gst/parse/grammar.y"
[9/563] lib "/NOLOGO" /OUT:gst/printf/libgstprintf.a @gst/printf/libgstprintf.a.rsp
[10/563] "c:/ProgramData/Anaconda3/python3.exe" "C:/MinGW/msys/1.0/home/212730892/cerbero/build/build-tools/Scripts/meson.py" "--internal" "exe" "C:/MinGW/msys/1.0/home/212730892/cerbero/build/sources/windows_x86_64/gstreamer-1.0-1.14.2/_builddir/meson-private/meson_exe_python_0b9fe3c50a1ef77ac08bda4a61c7770e0a1b4a05.dat"
FAILED: gst/gstenumtypes.h
"c:/ProgramData/Anaconda3/python3.exe" "C:/MinGW/msys/1.0/home/212730892/cerbero/build/build-tools/Scripts/meson.py" "--internal" "exe" "C:/MinGW/msys/1.0/home/212730892/cerbero/build/sources/windows_x86_64/gstreamer-1.0-1.14.2/_builddir/meson-private/meson_exe_python_0b9fe3c50a1ef77ac08bda4a61c7770e0a1b4a05.dat"
Traceback (most recent call last):
  File "C:/MinGW/msys/1.0/home/212730892/cerbero/build/build-tools/Scripts/meson.py", line 4, in <module>
    __import__('pkg_resources').run_script('meson==0.47.2', 'meson.py')
  File "c:\ProgramData\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 664, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "c:\ProgramData\Anaconda3\lib\site-packages\pkg_resources\__init__.py", line 1444, in run_script
    exec(code, namespace, namespace)
  File "c:\mingw\msys\1.0\home\212730892\cerbero\build\build-tools\lib\site-packages\meson-0.47.2-py3.7.egg\EGG-INFO\scripts\meson.py", line 29, in <module>
    sys.exit(mesonmain.main())
  File "C:\MinGW\msys\1.0\home\212730892\cerbero\build\build-tools\Lib\site-packages\meson-0.47.2-py3.7.egg\mesonbuild\mesonmain.py", line 379, in main
    return run(sys.argv[1:], launcher)
  File "C:\MinGW\msys\1.0\home\212730892\cerbero\build\build-tools\Lib\site-packages\meson-0.47.2-py3.7.egg\mesonbuild\mesonmain.py", line 316, in run
    sys.exit(run_script_command(args[1:]))
  File "C:\MinGW\msys\1.0\home\212730892\cerbero\build\build-tools\Lib\site-packages\meson-0.47.2-py3.7.egg\mesonbuild\mesonmain.py", line 232, in run_script_command
    return cmdfunc(cmdargs)
  File "C:\MinGW\msys\1.0\home\212730892\cerbero\build\build-tools\Lib\site-packages\meson-0.47.2-py3.7.egg\mesonbuild\scripts\meson_exe.py", line 91, in run
    return run_exe(exe)
  File "C:\MinGW\msys\1.0\home\212730892\cerbero\build\build-tools\Lib\site-packages\meson-0.47.2-py3.7.egg\mesonbuild\scripts\meson_exe.py", line 73, in run_exe
    stderr=subprocess.PIPE)
  File "c:\ProgramData\Anaconda3\lib\subprocess.py", line 769, in __init__
    restore_signals, start_new_session)
  File "c:\ProgramData\Anaconda3\lib\subprocess.py", line 1172, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
[11/563] cl @libs/gst/check/libcheck/libs at gst@check at libcheck@@check at sta/libcompat_timer_create.c.obj.rsp
[12/563] cl @libs/gst/check/libcheck/libs at gst@check at libcheck@@check at sta/libcompat_timer_settime.c.obj.rsp
[13/563] cl @libs/gst/check/libcheck/libs at gst@check at libcheck@@check at sta/libcompat_timer_delete.c.obj.rsp
[14/563] cl @libs/gst/check/libcheck/libs at gst@check at libcheck@@check at sta/libcompat_strsignal.c.obj.rsp
[15/563] cl @libs/gst/check/libcheck/libs at gst@check at libcheck@@check at sta/libcompat_getline.c.obj.rsp
ninja: build stopped: subcommand failed.

Recipe 'gstreamer-1.0' failed at the build step 'compile'
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
---------------------------------------------------------------

Please note that, I have also tried updating the gst/meson.build file. Modified to include statement- sources : [gst_gen_sources, gstenum_h],
Still gstreamer-1.0 does not compile. Could you please help me understand what is wrong?

Also, I am unable to generate visual studio solution using the command: cerbero -c config/win64-msvc-shell.cbc genvssln glib
It seems like Cerbero is not able to identify genvssln as an option and it prompts on cmd that add-package, genvsprops and other options are available. It would be a great help if anyone could point me in the right direction to build gstreamer-1.0 on windows environment.

Thanks and Regards,
Saurabh Bora

On Wed, Feb 6, 2019 at 12:43 PM Thornton, Keith <keith.thornton at zeiss.com<mailto:keith.thornton at zeiss.com>> wrote:
Hi,
what operating system are you using.
Under Windows, msdk will only get built when you use the new meson build because it uses VisualStudio.


Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org<mailto:gstreamer-devel-bounces at lists.freedesktop.org>] Im Auftrag von Saurabh Bora
Gesendet: Dienstag, 5. Februar 2019 15:09
An: gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
Betreff: Enable msdk plugins while building gstreamer-1.0 from source

Hello Experts!,

I am working on a project which follows following steps: input feed is taken from camera, encoding (vp8 encoder used) is done, transferring over web, decoding feed (vp8 decoder used) and stream it on a web browser.

I wish to use hardware accelerated vp8 encoder and decoder for this purpose along with gstreamer-1.0 framework on windows environment.

As a result, I installed Intel media SDK 2018 R2(msdk) and built gst-plugins-bad-1.0 from source using cerbero build system. But, msdk plugins did not get built. Below statements were found in gst-plugins-1.0-configure.log

configure: *** checking feature: Intel MediaSDK ***

configure: *** for plug-ins: msdk ***

checking for G_UDEV... no

checking for LIBMFX... no

checking mfxdefs.h usability... no

checking mfxdefs.h presence... no

checking for mfxdefs.h... no

checking for MFXInit in -lmfx... no

checking for LIBVA_DRM... no

configure: *** These plugins will not be built: msdk



Can anyone please help me understand why msdk plugins are not getting built? OR

what needs to be done to enable building msdk plugins?



Hardware Specifications:

1) MIO-2360N-S2A1E

2) Intel Pentium N4200 CPU (Kaby Lake)

    -4c/4t @1.1GHz-2.5GHz

    -Intel HD Graphics 505 (Apollo Lake) - 18 execution units

3) 8GB RAM



Thanks and Regards,

Saurabh Bora


--
Thanks and Regards,
Saurabh Bora

PH NO : 7038166900
EMAIL : saurabh9bora at gmail.com<mailto:saurabh9bora at gmail.com>
             saurabh9bora at outlook.com<mailto:saurabh9bora at outlook.com>
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
Thanks and Regards,
Saurabh Bora

PH NO : 7038166900
EMAIL : saurabh9bora at gmail.com<mailto:saurabh9bora at gmail.com>
             saurabh9bora at outlook.com<mailto:saurabh9bora at outlook.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190206/2227e35d/attachment-0001.html>


More information about the gstreamer-devel mailing list