使用Yocto建立gstreamer

问题描述 投票:3回答:3

我正在尝试为IMX53 Evk板构建gstreamer。我从http://freescale.github.io/#download下载了Yocto并运行以下命令。

#MACHINE=imx53qsb
#source setup-environment build
#bitbake core-image-minimal

它构建了u-boot,内核和文件系统。文件系统没有gstreamer。我也想建立gstreamer。

根据我的理解,现在有两种方法来构建gstreamer。

方法1.修改distro.conf文件以构建gstreamer。我不知道如何在distro.conf中添加gstreamer条目。分布是分布式的。

方法2.使用gstreamer条目添加IMAGE_INSTALL_append。我怀疑的是我们必须在IMAGE_INSTALL_append中添加什么名称。

我可以看到以下与gstreamer相关的bb文件。你可以帮助我在local.conf中的IMAGE_INSTALL_append中添加我必须添加的字符串。

./meta-fsl-arm/recipes-multimedia/gstreamer/gst-fsl-plugin_4.0.3.bb
./meta-fsl-arm/recipes-multimedia/gstreamer/gst1.0-fsl-plugin_4.0.3.bb
./meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-imx_0.11.1.bb
./poky/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb
./poky/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0_git.bb
./poky/meta/recipes-multimedia/gstreamer/gst-fluendo-mp3_0.10.31.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_1.4.5.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-meta-base.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.4.5.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_git.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer_0.10.36.bb
./poky/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.1.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_git.bb
./poky/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.19.bb
./poky/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb
./poky/meta/recipes-multimedia/gstreamer/gst-player_git.bb
./poky/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb
./poky/meta/recipes-multimedia/gstreamer/gst-plugins-gl_0.10.3.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.4.5.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.4.5.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.4.5.bb
./poky/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.4.5.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_git.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-omx_1.2.0.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-ugly_git.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server_1.4.5.bb
./poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_git.bb
./poky/meta/recipes-multimedia/gstreamer/gst-fluendo-mpegdemux_0.10.85.bb
./poky/meta/recipes-connectivity/bluez/gst-plugin-bluetooth_4.101.bb
./meta-fsl-demos/recipes-fsl/packagegroups/packagegroup-fsl-gstreamer.bb
./meta-fsl-demos/recipes-fsl/packagegroups/packagegroup-fsl-gstreamer-full.bb
./meta-fsl-demos/recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0-full.bb
./meta-fsl-demos/recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0-commercial.bb
./meta-fsl-demos/recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0.bb
./meta-openembedded/meta-multimedia/recipes-multimedia/gstreamer/gst-rtsp_0.10.8.bb
./meta-openembedded/meta-multimedia/recipes-multimedia/nonworking/gstreamer/gst123_0.3.1.bb
yocto
3个回答
5
投票

你可以添加

IMAGE_INSTALL_append += "gstreamer"

答案很长,你应该添加通常存储在PN配方变量中的包名。你可能会读到有关PN变量here的信息。包名称也可以使用PACKAGES variable进行管理。


1
投票

你要么使用IMAGE_INSTALL_append = " gstreamer" 或者IMAGE_INSTALL += " gstreamer"

他们做同样的事情,但IMAGE_INSTALL_append最适合使用这个变量。

gstreamer前面的空间非常重要,因为。让我们说IMAGE_INSTALL是一个字符串:"opkg qtbase" 如果我们不在前面添加一个空格。 IMAGE_INSTALL将是这样的:"opkg qtbasegstreamer"将导致错误。


0
投票

获取包名称的建议是正确的。首先找到食谱。 bitbake-layers对此很有用。然后检查PN和PACKAGES变量是否未设置,如果它们变得棘手的话。对于gstreamer他们不是

如果你是Yocto的新手,我会在local.conf中添加包。输入应该是IMAGE_INSTALL_append + =“gstreamer”。 gstreamer之前的空间很重要。

热门问题
推荐问题
最新问题