Build CK Core Apps
CK Core Apps requires a matched native desktop stack:
- build the latest
ck-core-motifmasterbranch into its own prefix (using a C23-capable compiler such as GCC 14 or Clang 19); - build
ck-core-cdemasteragainst that exact Motif prefix; - build
ck-core-appswith both prefixes supplied explicitly.
make -j6 \
MOTIF_PREFIX=/opt/ck-core-motif \
CDE_PREFIX=/opt/ck-core-cde \
CDE_SRC_INC=/path/to/ck-core-cde/cde/include
System prerequisites
In addition to a C compiler (gcc-14 / clang), C++20 compiler (g++-14 / clang++ for ck-browser), and the staged Motif/CDE prefixes, install the X11 and library development headers used by individual tools:
| Dependency | Used by |
|---|---|
libx11-dev, libxt-dev, libxpm-dev, libxinerama-dev | All Motif/CDE applications |
libcairo2-dev | ck-clock |
libasound2-dev (-lasound) | ck-mixer |
libxfixes-dev, libpng-dev | ck-grab |
libcurl4-openssl-dev, libxft-dev, libfontconfig1-dev, libfreetype-dev | ck-coins |
CEF binary archive (./download_cef.sh) | ck-browser |
ABI preflight and unit checks
Every application target depends on make check-motif, which compiles and runs tests/motif_abi_check.c (build/motif-abi-check). It enforces XmABI_VERSION == 9 at compile time, calls XmToolkitABI() from the runtime library, and fails immediately on any header/library mismatch. Linked binaries carry -Wl,-rpath,$(MOTIF_LIB) so an older system libXm.so.4 is never selected implicitly.
Run the standalone unit tests (tests/ck_load_icon_label_state_test.c) with:
make check
Building individual tools and ck-browser
Any application can be built individually by target name (ck-about, ck-load, ck-tasks, ck-mixer, ck-clock, ck-calc, ck-character-map, ck-grab, ck-eyes, ck-coins, ck-nibbles, ck-mines, ck-plasma-1, ck-browser).
The Chromium Embedded Framework binary archive required by ck-browser is intentionally kept out of Git. Fetch the latest stable linux64 or linuxarm64 distribution into third_party/cef/ before building all or ck-browser:
./download_cef.sh
make -j6 ck-browser \
MOTIF_PREFIX=/opt/ck-core-motif \
CDE_PREFIX=/opt/ck-core-cde \
CDE_SRC_INC=/path/to/ck-core-cde/cde/include
Make variables
| Variable | Meaning | Default |
|---|---|---|
MOTIF_PREFIX | Installed CK Core Motif ABI 9 prefix | /usr/local/ck-core-motif |
CDE_PREFIX | Installed CK Core CDE prefix | /usr/local/CDE |
CDE_SRC_INC | CDE source include directory (for headers such as Dt/WmSettings.h) | /home/klukas/git/cde/cde/include |
BUILD_DIR | Out-of-tree build output root ($(BUILD_DIR)/bin/...) | build |
CC / CXX | C and C++20 compilers | cc / c++ |
Use at most six parallel jobs (-j6) on shared development hosts.
CK Core Apps