使用Yocto建立gstreamer

时间:2015-10-06 07:35:59

标签: yocto

我正在尝试为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

3 个答案:

答案 0 :(得分:5)

您可以添加

IMAGE_INSTALL_append += "gstreamer"

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

答案 1 :(得分:1)

你要么用 IMAGE_INSTALL_append = " gstreamer"
要么 IMAGE_INSTALL += " gstreamer"

他们做同样的事情,但使用此变量时IMAGE_INSTALL_append最好。

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

答案 2 :(得分:0)

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

如果您是Yocto的新手,我可以在local.conf中添加软件包。输入应该是IMAGE_INSTALL_append + =" gstreamer的&#34 ;. gstreamer之前的空间很重要。