-
Notifications
You must be signed in to change notification settings - Fork 9
Build instructions
Marco Herrera edited this page Jul 14, 2021
·
7 revisions
This project can be compiled natively on the board as well as cross-compiled from a host device. Find both sections explained below.
This approach allows you to build the project directly onto the target board, without the need for a host device; the steps to follow in order to compile natively are:
- Clone the project
git clone https://github.com/TexasInstruments/edgeai-gst-plugins.git
cd edgeai-gst-plugins
- Configure, build and install the project
meson build --prefix=/usr -Dpkg_config_path=pkgconfig
ninja -C build install
For different configurations refer to the following table:
| Configuration Option | Description |
|---|---|
| --prefix <path> | Set the installation path |
| -Dpkg_config_path=<path> | Set the pkg config path |
| -Dtests=true | Build tests |
| -Dexamples=true | Build examples |
| -Ddoc=true | Enable hotdoc documentation |
| -Dprofiling=true | Enable profiling building |
- Clone the project
git clone https://github.com/TexasInstruments/edgeai-gst-plugins.git
cd edgeai-gst-plugins
- Set the path to the SDK
PSDKR_PATH=<path-to-sdk>
- Create a build directory
mkdir build && cd build
- Create an environment
source ../crossbuild/environment "${PWD}"/.. "${PWD}" "${PSDKR_PATH}"
- Build the project
meson .. --prefix=$PWD/deploy/gst-tiovx --cross-file crossbuild/aarch64.ini --cross-file ../crossbuild/crosscompile.txt
ninja
ninja install
This will generate all the required libraries, they can be manually copied to the board or they can be packaged into a deb file for easier installation like so:
ninja debfile
Once the .deb file is generated, it can be copied to the board and installed there or it can be added to the target filesystem before flashing like so:
dpkg -x deploy/gst-tiovx.deb $PSDKR_PATH/targetfs/usr/