Sample application using C++ and low-level X11 calls
The HelloWorldX11 sample application shows how to use the X11MapControl class included with Carmenta Engine that only uses the basic X11 library. The sample uses the select() system call to manage input from multiple sources (X11 events, asynchronous events from Carmenta Engine) and to implement a timer.
Prerequisites
The GCC compiler and X11 development files.
Building and running the sample
A simple makefile is included to build the sample.
For instructions on how to build and deploy a C++ application on Linux/ARM, see Deploying Carmenta Engine 5 applications on Linux/ARM.
When started, the application will display a map window with a sample map configuration, with full pan and zoom functionality. By default a 2D sample configuration is loaded, but you can modify the sample to load another configuration file. The following screenshot shows the application running on Ubuntu Linux.
![]() |