Building Own Application for QnxScreen
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.
To configure and generate makefiles for compiling the CGI Player, follow below steps:
Open
a
buildbinary directory
call C:\Users\<username>\qnx<version>\<version>\qnxsdp-env.bat
From this console open CMake.
Point CMake to source directory- Folder containing top-level "CMakeLists.txt", e.g.
/cmake/Candera/Player
- May not exist, create folder with CMake if necessary
- Root directory for generated makefiles / solutions
- Root directory for build artifacts

- Specify Ninja Makefiles as generator for the project
- Specify tool-chain file for cross-compiling

-
/cgi_studio_devices/src/QnxScreen/ToolchainFiles/GCC-toolchain-<board>-QnxScreen-QNX.txt
- CMAKE_BUILD_TYPE-> Debug or Release
- Press Configure
Press Generate
Building Application
-
Use same Command Prompt window for all steps.
- QNX environment variables first have to be set with qnxsdp-env.bat (QNX70\).
- Open CMake GUI and configure the project (e.g Player, CourierSampleApp, CitDemoApp) according to Generate Makefiles with CMake
- After generating your cmake files, simply navigate to the specified build directory (binary directory created in CMake GUI) and type "ninja" to start the build.