The best way to learn the Ultralight API is by trying out the samples.
Install the prequisites for your platform if you haven't already done so.
Download the latest release from GitHub by clicking here.
Open up your terminal / command prompt and run the following from wherever you extracted the package:
mkdir build cd build cmake .. cmake --build . --config Release
Building 64-bit on Windows
If you run the command
cmake ..without any generators on Windows, it may select the 32-bit MSVC toolchain (Ultralight needs the 64-bit MSVC toolchain instead).
To force CMake to generate 64-bit projects instead, use
cmake .. -DCMAKE_GENERATOR_PLATFORM=x64instead of
On macOS and Linux the projects will be built to:
On Windows the projects will be built to:
Just navigate to each of these folders and double click the app / executable to run.
Updated over 2 years ago