petalinux 加入gstreamer应用程序

petalinux-create -t apps -n myapp --enable

修改/home/xilinx/prj/project-spec/meta-user/recipes-apps/myapp/myapp.bb

#
# This file is the myapp recipe.
#

SUMMARY = "Simple myapp application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://myapp.c "
#   file://Makefile \
#  "

S = "${WORKDIR}"

DEPENDS = "glib-2.0 gstreamer1.0"
RDEPENDS_${PN} = "gstreamer1.0-plugins-base gstreamer1.0-plugins-good"

inherit pkgconfig

do_compile() {
 ${CC} ${WORKDIR}/myapp.c -o myapp ${CFLAGS} ${LDFLAGS} `pkg-config --cflags --libs gstreamer-1.0`
}

do_install() {
 install -d ${D}${bindir}
 install -m 0755 myapp ${D}${bindir}
}

petalinux-build -c myapp

ref:

https://stackoverflow.com/questions/59936359/error-compiling-gstreamer-app-in-petalinux

https://download.csdn.net/download/weixin_47224686/89729135

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值