- On-device Compilation
- On-host Compilation
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
2
Configure Ubuntu package manager to download source code
3
Build the dependencies
4
Install the base development package
5
Change directory to home folder
6
Download the sources of the QIM Package
7
Go to QIM root folder
For example:
8
Create and go to the build directory
9
Run CMake to generate the Makefile
10
Build and install sample-app-utils
11
Build and install plugins and sample-apps
After modifying any part of the source code, re-run step 11 to rebuild and reinstall your changes.
Steps to build custom application
Go through the steps in Steps to Compile and Install section before starting this.1
Create a subdirectory in gst-sample-apps
2
Update CMakeLists.txt in gst-sample-apps
3
Generate Makefile for the application
Goto Steps to Compile and Install section and follow step 9: “Run CMake to generate the Makefile”
4
Build and install the application

