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:
- Developing and debugging your application
- Building your application with Digi Embedded Yocto so it is included in your root file system
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 core-image-base image. You can use it to cross-compile applications to run on Digi embedded platforms.
- Download the toolchain from Digi's support page.
- Install the toolchain on your host PC.
chmod +x dey-glibc-x86_64-core-image-base-cortexa7hf-neon-toolchain-2.2-r3.sh
Build a C/C++ application using Makefiles
- Set up the build environment.
- Build the source using 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.