05-30-2018 09:03 PM
06-04-2018 01:31 PM
Can you share your recipe which you used for gstreamer application?
06-04-2018 07:18 PM
hi, thank you for your reply . what do you mean"recipes"? I just compiled my application on board. I don't know how to compile the application (with Gstreamer supported) by petalinux.
06-04-2018 07:51 PM
Refer UG1144 petalinux docs.
In Yocto(https://www.yoctoproject.org/) a recipe is a metadata file containing directives for Bitbake on how to build a particular software package or application or libraries.
I have created a yocto recipe using your application take a look and follow below instruction to add your application to rootfs image.
Note: I haven't verified your application code.
$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-multimedia $ cp -r gst-stream-app <plnx-proj-root>/project-spec/meta-user/recipes-multimedia $ vim <plnx-proj-root>/project-spec/meta-user/recipes-core/images/petalinux-image.bbappend #Note: Mention Each package in individual line # cascaded representation with line breaks are not valid in this file. IMAGE_INSTALL_append = " peekpoke" IMAGE_INSTALL_append = " gpio-demo" IMAGE_INSTALL_append = " gst-stream-app" $ petalinux-config -c rootfs apps ---> [*] gst-stream-app $ petalinux-build
06-07-2018 01:51 AM
hi, thanks a lot.
1、how to create a recipe by yocto?
2、is this same with the recipes in $PETALINUX/component/yocto/source/aarch64/layers/ ?
06-07-2018 06:45 PM - edited 06-07-2018 06:46 PM
Are you using petalinux or yocto. If you are using yocto then use recipetool command.
I created recipes using the command below which will create a template recipe. Refer UG1144 for more details.
$ petalinux-create -t apps --name <recipe_name>
06-07-2018 06:52 PM
hi, thanks for your reply
1、I use the petalinux tool
2、According the ug1144, I have tried the command
$petalinux-create -t apps -n myapp
I just got file structure in the <plnx_proj_root>/project-spec/meta-user/recipes-app/myapp
files / Makefile myapp.c
But the the zip file you offered to me have so many other file.
How to generate these files?
thanks a lot
06-07-2018 07:03 PM
PetaLinux generates generic C/C++ template default is C.
GStreamer requires additional plumbing or else it doesn't build.
06-07-2018 07:07 PM
06-07-2018 08:01 PM
It's hard to find good examples. Refer this AJA examples https://gitlab.aja.com/ntv2/gst/tree/master/gst-plugin to build gst application manually
06-07-2018 09:42 PM
06-08-2018 02:12 PM
The examples I provide is just for your reference how the files and directory structure you need to have before you build using recipes.
We don't have any docs to build gstreamer manually for ZCU104. You can use the recipes which I provided.