Application development

C/C++ application development

Application development is only supported for Linux development machines. Digi recommends you use a PC running a recent Ubuntu distribution.

Application development has two distinctive phases:

For application development and debugging, you do not need to build the Digi Embedded Yocto distribution from source as developers can use the pre-compiled images to run and debug applications. However, integrating the application into Digi Embedded Yocto requires you to build the whole Digi Embedded Yocto distribution as explained in System development, and also to develop Yocto recipes to build your specific application. See System development.

Application development and debugging

Digi Embedded Yocto provides a pre-compiled C/C++ toolchain that matches the default dey-image-qt image. You can use it to cross-compile applications to run on Digi embedded platforms, including graphical GTK or QT5 applications.

Install the pre-compiled toolchain

  1. Download the toolchain from Digi's support page.
wget ftp://ftp1.digi.com/support/digiembeddedyocto/2.2/r3/sdk/ccimx6sbc/x11/dey-glibc-x86_64-dey-image-qt-x11-cortexa9hf-neon-toolchain-2.2-r3.sh
  1. Install the toolchain on your host PC.
chmod +x dey-glibc-x86_64-dey-image-qt-x11-cortexa9hf-neon-toolchain-2.2-r3.sh
./dey-glibc-x86_64-dey-image-qt-x11-cortexa9hf-neon-toolchain-2.2-r3.sh

Build a C/C++ application using Makefiles

  1. Set up the build environment.
source /opt/dey/2.2-r3/environment-setup-cortexa9hf-neon-dey-linux-gnueabi
  1. Optionally, run qmake if you are building a QT application.
qmake
  1. Build the source using make.
make

This document does not cover application development, debugging and tracing, and how to integrate your application into Digi Embedded Yocto. You can find references on these topics as well as other common tasks such as setting up development environments like Eclipse and QT creator, in the References page.