Bitbake Yocto Morty的最新Gstreamer

Bitbake Yocto Morty的最新Gstreamer,gstreamer,yocto,bitbake,recipe,Gstreamer,Yocto,Bitbake,Recipe,我想在Yocto Morty中bitbake最新的Gstreamer,但出现了错误,无法实现Gstreamer 我在上找到了gstreamer 1.12.2配方。 因此,我将meta-gstreamer1.0目录放在sources目录中,并添加BBLAYERS+=“${BSPDIR}/sources/meta-gstreamer1.0”以构建_fb/BBLAYERS.conf。 然后,我对fsl图像gui进行了Bit烘焙,并出现以下错误 ERROR: /home/***/var-fslc

我想在Yocto Morty中bitbake最新的Gstreamer,但出现了错误,无法实现Gstreamer

我在上找到了gstreamer 1.12.2配方。 因此,我将meta-gstreamer1.0目录放在sources目录中,并添加BBLAYERS+=“${BSPDIR}/sources/meta-gstreamer1.0”以构建_fb/BBLAYERS.conf。 然后,我对fsl图像gui进行了Bit烘焙,并出现以下错误

    ERROR: /home/***/var-fslc-yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.12.2.bb: Error executing a python function in <code>:

    The stack trace of python calls that resulted in this exception/failure was:
    File: '<code>', lineno: 13, function: <module>
         0009:__anon_35__home_***_var_fslc_yocto_sources_poky_meta_classes_devshell_bbclass(d)
         0010:__anon_108__home_***_var_fslc_yocto_sources_poky_meta_classes_sstate_bbclass(d)
         0011:__anon_45__home_***_var_fslc_yocto_sources_poky_meta_classes_blacklist_bbclass(d)
         0012:__anon_158__home_***_var_fslc_yocto_sources_poky_meta_classes_siteinfo_bbclass(d)
     *** 0013:__anon_30__home_***_var_fslc_yocto_sources_meta_gstreamer1_0_recipes_multimedia_gstreamer_gstreamer1_0_omx_inc(d)
    File: '/home/***/var-fslc-yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-omx.inc', lineno: 22, function: __anon_30__home_***_var_fslc_yocto_sources_meta_gstreamer1_0_recipes_multimedia_gstreamer_gstreamer1_0_omx_inc
         0018:EXTRA_OECONF += "--disable-valgrind --with-omx-target=${GSTREAMER_1_0_OMX_TARGET}"
         0019:
         0020:python __anonymous () {
         0021:    omx_target = d.getVar("GSTREAMER_1_0_OMX_TARGET")
     *** 0022:    if omx_target in ['generic', 'bellagio']:
         0023:        # Bellagio headers are incomplete (they are missing the OMX_VERSION_MAJOR,#
         0024:        # OMX_VERSION_MINOR, OMX_VERSION_REVISION, and OMX_VERSION_STEP macros);
         0025:        # appending a directory path to gst-omx' internal OpenMAX IL headers fixes this
         0026:        d.appendVar("CFLAGS", " -I${S}/omx/openmax")
    Exception: TypeError: getVar() missing 1 required positional argument: 'expand'

    ERROR: ExpansionError during parsing /home/***/var-fslc-yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.2.bb
Traceback (most recent call last):
  File "/home/***/var-fslc-yocto/sources/poky/meta/classes/base.bbclass", line 375, in __anon_656__home_***_var_fslc_yocto_sources_poky_meta_classes_base_bbclass(d=<bb.data_smart.DataSmart object at 0x7fb7a8dcff98>):
             pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
    >        pn = d.getVar("PN", True)

  File "/home/***/var-fslc-yocto/sources/poky/bitbake/lib/bb/data_smart.py", line 569, in DataSmart.getVar(var='PACKAGECONFIG', expand=True, noweakdefault=False, parsing=False):
         def getVar(self, var, expand, noweakdefault=False, parsing=False):
    >        return self.getVarFlag(var, "_content", expand, noweakdefault, parsing)

  File "/home/***/var-fslc-yocto/sources/poky/bitbake/lib/bb/data_smart.py", line 737, in DataSmart.getVarFlag(var='PACKAGECONFIG', flag='_content', expand=True, noweakdefault=False, parsing=False):
                     cachename = var + "[" + flag + "]"
    >            value = self.expand(value, cachename)

  File "/home/***/var-fslc-yocto/sources/poky/bitbake/lib/bb/data_smart.py", line 410, in DataSmart.expand(s="     ${GSTREAMER_ORC}     ${PACKAGECONFIG_GL}     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}     ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan', d)}     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)}     bz2 curl dash dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp ", varname='PACKAGECONFIG'):
         def expand(self, s, varname = None):
    >        return self.expandWithRefs(s, varname).value

  File "/home/***/var-fslc-yocto/sources/poky/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s="     orc     gles2 egl     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}     ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan', d)}     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)}     bz2 curl dash dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp ", varname='PACKAGECONFIG'):
                 except Exception as exc:
    >                raise ExpansionError(varname, s, exc) from exc

bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG, expression was      orc     gles2 egl     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}     ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan', d)}     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland egl', '', d)}     bz2 curl dash dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp  which triggered exception AttributeError: module 'bb.utils' has no attribute 'filter'


Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
错误:/home/***/var fslc yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.12.2.bb:在
中执行python函数时出错:
导致此异常/失败的python调用的堆栈跟踪为:
文件:“
”,行号:13,函数:
0009:uuu anon_u35_uuhome_u***var_ufslc_uyocto_usources_upoky_umeta_uclasses_udevshell_ubbclass(d)
0010:uuu anon_u108_uuhome_u***u var_ufslc_uyocto_usources_upoky_umeta_uclasses_usstate_ubbclass(d)
0011:uuu anon u 45 uu home***u var fslc yocto u sources u poky u meta u classes o blacklist o bbclass(d)
0012:uuu anon_u158_uuhome_u***u var_fslc_yocto_usources_uupoky_umeta_uclasses_usiteinfo_ubbclass(d)
***0013:\uuuuuuu anon\uuuuu 30\uuuuuu home\uuuu var\ufslc\uyocto\uuu sources\umeta\ugstreamer1\u0\u0配方\uu multimedia\ugstreamer\ugstreamer1\u0\uOMX\uInc(d)
文件:'/home/***/var-fslc-yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-omx.inc',行号:22,功能:anon\u 30\uuuuuuuuuu-home\uu***var\ufslc\uYocto\uu-sources\uMeta\ugstreamer1\u0\u0\u多媒体\ugstreamer1\uu0\uuuOMx\u0\u0
0018:EXTRA_OECONF+=“--禁用valgrind--使用omx目标=${GSTREAMER_1_0_omx_目标}”
0019:
0020:python匿名(){
0021:omx\u target=d.getVar(“GSTREAMER\u 1\u 0\u omx\u target”)
***0022:如果omx_目标位于['generic','bellagio']:
0023:#Bellagio标头不完整(缺少OMX#U版本#U MAJOR、#
0024:#OMX#U VERSION#U MINOR、OMX#U VERSION#U REVISION和OMX#U VERSION#STEP宏);
0025:#将目录路径附加到gst omx的内部OpenMAX IL头可以修复此问题
0026:d.appendVar(“CFLAGS”,“-I${S}/omx/openmax”)
异常:TypeError:getVar()缺少1个必需的位置参数:“expand”
错误:解析期间ExpansionError/home/***/var fslc yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.2.bb
回溯(最近一次呼叫最后一次):
文件“/home/***/var-fslc-yocto/sources/poky/meta/classes/base.bbclass”,第375行,在home-var-fslc-yocto-sources-poky-meta-classes-base-bbclass(d=)中:
pkgconfig=(d.getVar('PACKAGECONFIG',True)或“”).split()
>pn=d.getVar(“pn”,真)
文件“/home/***/var fslc yocto/sources/poky/bitbake/lib/bb/data_smart.py”,第569行,在DataSmart.getVar(var='PACKAGECONFIG',expand=True,noweakdefault=False,parsing=False)中:
def getVar(self、var、expand、noweakdefault=False、parsing=False):
>返回self.getVarFlag(var,“\u content”,展开,noweakdefault,解析)
文件“/home/***/var fslc yocto/sources/poky/bitbake/lib/bb/data_smart.py”,第737行,位于DataSmart.getVarFlag(var='PACKAGECONFIG',flag=''content',expand=True,noweakdefault=False,parsing=False):
cachename=var+“[”+标志+“]”
>value=self.expand(值、缓存名)
文件“/home/***/var fslc yocto/sources/poky/bitbake/lib/bb/data_smart.py”,第410行,在DataSmart.expand(s=“${GSTREAMER_ORC}${PACKAGECONFIG_GL}${@bb.utils.contains('DISTRO_FEATURES',bluetooth',bluez',d)}${@bb utils.filter('DISTRO_FEATURES',directfb vulkan',d)}{@bb utils.contains.contains('DISTRO_FEATURES','wayland','wayland egl','',d)}bz2卷曲短程dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp',varname='PACKAGECONFIG'):
def扩展(self、s、varname=None):
>返回self.expandWithRefs(s,varname).value
文件“/home/***/var fslc yocto/sources/poky/bitbake/lib/bb/data_smart.py”,第400行,在DataSmart.expandWithRefs(s=“orc gles2 egl${@bb.utils.contains('DISTRO_FEATURES'、'bluetooth'、'bluez'、'',d)}${@bb utils.filter('DISTRO_FEATURES'、'directfb vulkan',d)}${@bb utils.contains.contains('DISTRO_FEATURES','wayland','wayland egl','',d)}bz2卷曲短程dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp',varname='PACKAGECONFIG'):
除作为exc的例外情况外:
>从exc引发ExpansionError(varname、s、exc)
bb.data_smart.ExpansionError:扩展变量PACKAGECONFIG失败,表达式为orc gles2 egl${@bb.utils.contains('DISTRO_FEATURES','bluetooth','bluez','''','',d)}${@bb.utils.contains('DISTRO_FEATURES','wayland bluez','d)}${@bb utils.filter('DISTRO_FEATURES','directfb vulkan','d)}${@bb utils.contains('wayland'bz2 curl dash dtls hls neon rsvg sbc smoothstreaming sndfile uvch264 webp触发异常属性错误:模块“bb.utils”没有属性“filter”
摘要:显示了2条错误消息,返回非零退出代码。
我发现Yocto 2.3(Pyro)中的错误“Exception:TypeError:getVar()缺少1个必需的位置参数:'expand'”已修复。 此外,YP core表示Yocto Morty的gstreamer版本为1.8.3(参见更新选项卡)

这些事情是否意味着我们无法在Yocto Morty中实现gstreamer 1.12.2或更高版本?有什么办法吗?如果我们想实现gstreamer 1.12,是否必须使用Yocto Pyro或更高版本

环境

约克托·莫蒂(2.2.1)

附言:

我重写了getVar和bitbake。但是我遇到了以下错误。有人能帮我吗

ERROR: gstreamer1.0-plugins-base-1.12.2-r0 do_populate_sysroot: The recipe gstreamer1.0-plugins-base is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /home/***/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart/usr/lib/gstreamer-1.0/libgstrawparse.la
 Matched in b'manifest-imx6ul-var-dart-gstreamer1.0-plugins-bad.populate_sysroot'
 /home/***/var-fslc-yocto/build_fb/tmp/sysroots/imx6ul-var-dart/usr/lib/gstreamer-1.0/libgstrawparse.so
 Matched in b'manifest-imx6ul-var-dart-gstreamer1.0-plugins-bad.populate_sysroot'
Please verify which recipe should provide the above files.
The build has stopped as continuing in this scenario WILL break things, if not now, possibly in the future (we've seen builds fail several months later). If the system knew how to recover from this automatically it would however there are several different scenarios which can result in this and we don't know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error however switching DISTRO_FEATURES on an existing build directory is not supported, you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.
ERROR: gstreamer1.0-plugins-base-1.12.2-r0 do_populate_sysroot: If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
ERROR: gstreamer1.0-plugins-base-1.12.2-r0 do_populate_sysroot: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/***/var-fslc-yocto/build_fb/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/gstreamer1.0-plugins-base/1.12.2-r0/temp/log.do_populate_sysroot.99466
ERROR: Task (/home/***/var-fslc-yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.2.bb:do_populate_sysroot) failed with exit code '1'
ERROR: gstreamer1.0-plugins-base-1.12.2-r0 do_package: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:split_gstreamer10_packages(d)
     0003:
File: '/home/***/var-fslc-yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gst-plugins-package.inc', lineno: 6, function: split_gstreamer10_packages
     0002:PACKAGESPLITFUNCS_append = " set_metapkg_rdepends "
     0003:
     0004:python split_gstreamer10_packages () {
     0005:    gst_libdir = d.expand('${libdir}/gstreamer-${LIBV}')
 *** 0006:    postinst = d.getVar('plugin_postinst')
     0007:    glibdir = d.getVar('libdir')
     0008:
     0009:    do_split_packages(d, glibdir, '^lib(.*)\.so\.*', 'lib%s', 'gstreamer %s library', extra_depends='', allow_links=True)
     0010:    do_split_packages(d, gst_libdir, 'libgst(.*)\.so$', d.expand('${PN}-%s'), 'GStreamer plugin for %s', postinst=postinst, extra_depends='')
Exception: TypeError: getVar() missing 1 required positional argument: 'expand'

ERROR: gstreamer1.0-plugins-base-1.12.2-r0 do_package: Function failed: split_gstreamer10_packages
ERROR: Logfile of failure stored in: /home/***/var-fslc-yocto/build_fb/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/gstreamer1.0-plugins-base/1.12.2-r0/temp/log.do_package.99465
ERROR: Task (/home/***/var-fslc-yocto/sources/meta-gstreamer1.0/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.12.2.bb:do_package) failed with exit code '1'
错误:gstreamer1.0-plugins-base-1.12.2-r0 do_populate_sysroot:配方gstreamer1.0-plugins-base正在尝试将文件安装到共享区域,而这些文件已经存在。这些文件及其清单位置为:
/home/***/var fslc yocto/build_fb/tmp/sysroot/imx6ul var dart/usr/lib/gstreamer-1.0/libgstrawparse。