Skip to main content

Building Own Application for Linux with a Wayland Display Server

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:

  1. Point CMake to source directory
    • Folder containing top-level "CMakeLists.txt", e.g. \cmake\Candera\Player
  2. 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
  3. Configure
    • Specify “Unix Makefiles” as generator for the project
    • Specify tool-chain file for cross-compiling
  4. Select the toolchain-file from the delivery (adapt for your toolchain installation and application specific needs)
      • /cgi_studio_devices/src/Wayland/ToolchainFiles/GCC-toolchain-Wayland-Linux.txt


    OpenGL ES 2.0 and 3.0 versions are supported please configure CMake variable "CGIDEVICE_GLES_VERSION"


  5. Adapt the CMake settings if necessary, e.g.:
    • CMAKE_BUILD_TYPE-> Debug or Release
    • Press Configure.
  6. Press Generate.

Building Application

use same Terminal session for all steps.

  1. Initialize the cross-compile environment variables first have to be set with following command
    . /<path-to-yocto-installation>/environment-setup-...
  2. Open CMake GUI and configure the project (e.g Player, CourierSampleApp, CitDemoApp) according to Generate Makefiles with CMake.
  3. After generating your cmake files, simply navigate to the specified build directory (binary directory created in CMake GUI) and type "make" within terminal to start the build process.

For CourierSampleApp and CitDemoApp asset file have to be created with their own SCHost.dll