Building Own Application for iMX6 Linux
Compile Tool Chain Preparations
For instructions how to install the toolchain please refer to the Yocto Project's Quickstart and Application Developer's Guide.
To add the header and lib directories to your path, you might have to call a script to set your environment variables:
This step is needed when you use our build-setup description.
cd /opt/poky/x.y.z (where x.y.z is your BSP version) sudo chmod +x environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi source environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
Should be done every new build (environment variables are valid per terminal session)
Generate Makefiles with CMake
For general information about CGI Studio Build System and CMake properties available to configure Candera applications refer to CGI Studio Build System.
CMAKE-GUI has to be run on same terminal after source command (step 1)
To configure and generate makefiles for compiling the Player for IMX6 Linux, follow below steps:
- Point CMake to source directory
- Folder containing top-level "CMakeLists.txt", e.g. \cmake\Candera\Player
- Point CMake to binary directory
- May not exist, create folder with CMake if necessary
- Root directory for generated makefiles / solutions
- Root directory for build artifacts
- Configure
- Specify Unix Makefiles as generator for the project
- Specify toolchain file for cross-compiling
- Select the toolchain file \cgi_studio_candera\cmake\toolchain-files\GCC-toolchain-iMX6-Linux-yocto.txt
- Press Finish
- Afterwards “Configure” has to be pressed as often as there is still some entry red or the necessary configuration (e.g. CANDERA_TEXTSHAPER = harfbuzz) is done.
- Press Generate
If the package supports "harfbuzz" as CANDERA_TEXTSHAPER please set this entry appropriately because by default it is set to "ComplexLib". Resume the configuration by pressing “Configure” again.
Configure COURIER_PLATFORM and COURIER_PLATFORM_CONFIG parameters
Building Application
After generating your CMake files, simply navigate to the specified build directory and type "make" with the terminal or console to start the build.
The output file can be found in your build directory's subfolder CGIApplication.
Copy the application to a dedicated folder in the NFS root and start it as described in the previous chapter.