Developing Standalone Royale Client Application |
Development of Royale client applications for Linux relies on the ARM GCC toolchain and Royale API libraries, included in the Yocto SDK. The SDK is built as part of the Yocto Linux build procedure, and is packaged into a self-installing archive with the following name: A archive with prebuilt Yocto SDK can be downloaded from the following link: Yocto SDK. Being on your Linux cross-development host, go through the steps described below to install the C/C++ SDK and develop Royale client Linux applications (those built outside of the Yocto build).
The Yocto SDK is installed on the Linux development host using the following command: [user@localhost ~]$ chmod 755 fsl-imx-wayland-glibc-x86_64-image-pmd-debug-aarch64-toolchain-5.4-zeus.sh After installation, the Yocto SDK environment needs to be activated. The activation process configures paths to the SDK tools and sets up various environment variables, required by the SDK. The environment activation can be done using the following command (which needs to be performed every time a new instance of shell is opened): [user@localhost ~]$ source /opt/fsl-imx-wayland/5.4-zeus/environment-setup-aarch64-poky-linux
Along with Royale libraries and headers, the Yocto SDK includes several Royale client sample applications. The applications are located at the following path: Royale sample applications use CMake build system for compiling binaries. And it is recommended to use CMake configuration files from these applications as a base for developing a custom Royale client application. Follow the below steps for compiling Royale sample applications from console:
[user@localhost ~]$ mkdir build [user@localhost ~]$ cmake /opt/fsl-imx-wayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/share/royale/samples/ [user@localhost ~]$ make
The instructions below describe how to setup the Eclipse IDE for compiling the sampleCameraInfo application using the Eclipse internal builder:
cp /opt/fsl-imx-wayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/share/royale/samples/cpp/sampleCameraInfo/sampleCameraInfo.cpp ~/workspace/sampleCameraInfo When the above steps are completed, the sampleCameraInfo project is ready for build. Press the Build button and verify that the build process finishes without errors. |