Skip to content

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.

Native compilation

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:

  1. Clone the project
git clone https://github.com/TexasInstruments/edgeai-gst-plugins.git
cd edgeai-gst-plugins
  1. 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

Cross compilation

  1. Clone the project
git clone https://github.com/TexasInstruments/edgeai-gst-plugins.git
cd edgeai-gst-plugins
  1. Set the path to the SDK
PSDKR_PATH=<path-to-sdk>
  1. Create a build directory
mkdir build && cd build
  1. Create an environment
source ../crossbuild/environment  "${PWD}"/.. "${PWD}"  "${PSDKR_PATH}"
  1. 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/

Clone this wiki locally