Skip to main content
This section explains how to compile QIMSDK plugins for Ubuntu platform.
This section explains how to compile QIMSDK plugins directly on the target device running Ubuntu.

Prerequisites

Before you begin, ensure the following:
  • You have access to a Qualcomm development kit running Ubuntu Linux.
  • You have administrative privileges (sudo access) for installing packages.
  • Internet connectivity for downloading packages and source code.

Steps to Compile and Install

To download the source code and compile the sample applications, run the following commands on the Qualcomm development kit.
1

Update user permissions for your session

sudo su
2

Configure Ubuntu package manager to download source code

apt-add-repository -s ppa:ubuntu-qcom-iot/qcom-ppa
3

Build the dependencies

apt build-dep gst-plugins-qti-oss
4

Change directory to home folder

cd /home/ubuntu
5

Download the sources of the QIM Package

apt source gst-plugins-qti-oss
6

Go to QIM root folder

For example:
cd gst-plugins-qti-oss-1.8.1+ubuntu3
7

Run CMake to build and install

cmake -B build -S . \
   -DCMAKE_INSTALL_PREFIX=/usr \
   -DCMAKE_INSTALL_INCLUDEDIR=include \
   -DENABLE_GST_PLUGIN_BASE=1 \
   -DENABLE_GST_IMSDK_PLUGINS=1 \
   -DENABLE_GST_PLUGIN_QMMFSRC=1 \
   -DENABLE_GST_PYTHON_EXAMPLES=1 \
   -DENABLE_GST_SAMPLE_APPS=1 \
   -DENABLE_GST_TEST_FRAMEWORK=1 \
   -DENABLE_GST_PLUGIN_TOOLS=1 \
   -DENABLE_GST_PLUGIN_MLACLASSIFICATION=1 \
   -DENABLE_GST_PLUGIN_MLVCLASSIFICATION=1 \
   -DENABLE_GST_PLUGIN_MLVDETECTION=1 \
   -DENABLE_GST_PLUGIN_MLVPOSE=1 \
   -DENABLE_GST_PLUGIN_MLVSEGMENTATION=1 \
   -DENABLE_GST_PLUGIN_MLVSUPERRESOLUTION=1 \
&& cmake --build build \
&& cmake --install build
After modifying any part of the source code, re-run step 7 to rebuild and reinstall your changes.

Steps to build custom application

Go through the prerequisites and Steps to Compile and Install section before starting this.
1

Create a subdirectory in gst-sample-apps

cd gst-plugins-qti-oss-1.8.1+ubuntu3/gst-sample-apps && mkdir gst-<your_sample_app>