3-4 Preparing GStreamer Plugins for Yocto Compilation
This tutorial will guide you through cloning and modifying the gst-plugins-bad
repository for a custom project.
Step 1: Clone the Project
To clone the project, run the following command:
git clone https://github.com/yourskc/gst-plugins-bad.git
If you intend to modify the repository as your own copy, fork it first. Remember to set the commit ID corresponding to your copy before proceeding with the Yocto build.
Step 2: Check Out the Appropriate Branch
Switch to the desired branch:
git checkout RCAR-GEN3e/1.16.3
git branch
The cloned repository is ready for the Yocto build described in the next section. If you only want to use the prebuilt repository, you can skip the remaining steps and proceed to the next section.
Step 3: Modify Source Code
Copy gstequirectangular.c
and gstequirectangular.h
from the gst/geometrictransform/
directory of the development project gst-plugins-bad-dev
into the corresponding directory in the main project gst-plugins-bad
.
Next, Uncomment the following line in the source code:
#define GST_RENESAS
Commit and push your changes:
git commit -m "comment"
git push
Get the commit ID from the .git
folder:
cat .git/refs/heads/RCAR-GEN3e/1.16.3
OR
Visit the repository branch on GitHub, and in the upper-right corner of the file list, click the "Commits" link to view commit details. Find your commit and copy the commit ID.
Step 4: Build the Project
You can skip the build process if you’ve already verified the correctness of the programs in the previous sections. However, if you wish to add new functionalities, ensure you modify the corresponding files and rebuild the project.
Unlike the gst-plugins-bad-dev
project, which uses Meson for building, this project uses GNU Automake.
To build it, run:
./autogen.sh
make
If you are building the project, it is recommended to use Ubuntu 20.04 as your development environment.