Build Tools
The cube:evk provides a development environment for compiling, testing, and deploying applications. Software can be built directly on the device or cross-compiled on a host system using the provided SDK.
1. On-Device Development
The cube:evk ships with a Linux development environment. Software can be compiled directly on the board without any host setup.
Preinstalled Tools
The standard development packages are available:
gcc/g++: GNU C and C++ compilerscmake: build configuration and project managementmake: build automation toolgit: version control systembuild-essential: common build dependencies and libraries
You can verify the toolchain by running:
cube:~$ gcc --versioncube:~$ cmake --versioncube:~$ git --versionThis setup supports development and testing directly on the EVK, suitable for smaller projects, proof-of-concepts, and quick prototyping.
Example: Building a Simple Application
cube:~$ git clone https://github.com/example/myapp.gitcube:~$ cd myappcube:~/myapp$ mkdir build && cd buildcube:~/myapp/build$ cmake ..cube:~/myapp/build$ makecube:~/myapp/build$ ./myapp2. Cross-Compilation on the Host
For larger projects or faster builds, applications can be compiled on a host PC using a cross-compilation SDK. This reduces build times and lets developers use their host IDE or CI/CD environment.
SDK Overview
The cube:evk SDK provides:
- Cross-compilation toolchains targeting the i.MX8MP architecture
- Preconfigured environment setup scripts
- Header files and libraries matching the cube:evk's system image
- CMake toolchain files for integration
Once configured, developers can build applications on their host just as they would for a native Linux target, and then transfer the compiled binaries to the EVK via ssh or scp.
Example:
host:~/app$ mkdir build && cd buildhost:~/app/build$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/cube-sdk/cmake/toolchain.cmake ..host:~/app/build$ makehost:~/app/build$ scp myapp cube@<evk-ip>:/home/cube/On the EVK:
cube:~$ ./myappObtaining the SDK
The SDK is provided on request. Contact us if you need the cross-compilation toolkit for your build environment.
3. Development Workflow Comparison
| Method | Environment | Advantages | When to Use |
|---|---|---|---|
| On-Device Build | Directly on the cube:evk | Simple setup, no external dependencies | Small projects, quick tests |
| Cross-Compilation | Host PC with cube SDK | Fast build times, desktop IDE integration | Larger projects, automation, CI/CD |
Choose your Method
Use on-board development for convenience or cross-compilation for build performance. Both workflows are supported and compatible with the cube:evk software stack.

