我想获得Gstreamer的x264enc元素”。该元素包含在gstreamer1.0-plugins-ugly中,因此我添加了
IMAGE_INSTALL_append = " gstreamer1.0-plugins-ugly"
到我的conf/local.conf
文件。
[我再次烘烤了食谱,并在板上刷新了新图像,但是当我运行gst-inspect-1.0
命令以验证所需的插件和元素是否可用时,它们不在列表中。
我是Yocto的新手,我错过了一些步骤吗?
谢谢。
编辑1“烘焙我的食谱”是指我:
bitbake myrecipe
创建图像conf/local.conf
文件编辑bitbake myrecipe
以使用新软件包构建映像这是日志的摘录,使用'ugly'关键字过滤
./20200608131143.log:121:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_fetch: Started
./20200608131143.log:122:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_fetch: Succeeded
./20200608131143.log:154:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_unpack: Started
./20200608131143.log:155:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_unpack: Succeeded
./20200608131143.log:157:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_patch: Started
./20200608131143.log:158:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_patch: Succeeded
./20200608131143.log:169:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_prepare_recipe_sysroot: Started
./20200608131143.log:170:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_prepare_recipe_sysroot: Succeeded
./20200608131143.log:172:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_configure: Started
./20200608131143.log:226:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_populate_lic: Started
./20200608131143.log:227:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_populate_lic: Succeeded
./20200608131143.log:249:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_configure: Succeeded
./20200608131143.log:254:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_compile: Started
./20200608131143.log:263:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_compile: Succeeded
./20200608131143.log:265:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_install: Started
./20200608131143.log:266:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_install: Succeeded
./20200608131143.log:269:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_populate_sysroot: Started
./20200608131143.log:270:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_package: Started
./20200608131143.log:271:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_populate_sysroot: Succeeded
./20200608131143.log:275:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_package: Succeeded
./20200608131143.log:277:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_packagedata: Started
./20200608131143.log:279:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_packagedata: Succeeded
./20200608131143.log:284:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_package_write_rpm: Started
./20200608131143.log:285:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_package_qa: Started
./20200608131143.log:293:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_package_qa: Succeeded
./20200608131143.log:296:NOTE: recipe gstreamer1.0-plugins-ugly-1.14.4-r0: task do_package_write_rpm: Succeeded
并且这是图像清单文件的摘录,也使用'ugly'关键字进行了过滤:
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:292:gstreamer1.0-plugins-ugly armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:293:gstreamer1.0-plugins-ugly-a52dec armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:294:gstreamer1.0-plugins-ugly-asf armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:295:gstreamer1.0-plugins-ugly-dvdlpcmdec armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:296:gstreamer1.0-plugins-ugly-dvdsub armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:297:gstreamer1.0-plugins-ugly-locale-en-gb armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:298:gstreamer1.0-plugins-ugly-meta armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:299:gstreamer1.0-plugins-ugly-mpeg2dec armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:300:gstreamer1.0-plugins-ugly-realmedia armv7at2hf_neon 1.14.4
./fsl-image-qt5-var-som-mx6-20200610142415.rootfs.manifest:301:gstreamer1.0-plugins-ugly-xingmux armv7at2hf_neon 1.14.4
为了解决许可证错误,我也添加了
[LICENSE_FLAGS_WHITELIST += " commercial"
至conf/local.conf
文件
您的图像清单显示包含丑陋的插件就可以了,但是x264插件不存在。如果您查看食谱,则会看到默认的PACKAGECONFIG不包含x264,则必须进行更改。
您可以在bbappend中执行此操作:
PACKAGECONFIG_append = " x264"
或在本地或发行版配置中:
PACKAGECONFIG_append_pn-gstreamer1.0-plugins-ugly = " x264"