Skip to content

Instantly share code, notes, and snippets.

View Chen11809's full-sized avatar

Chen11809

View GitHub Profile
@Chen11809
Chen11809 / build_qul_from_source.ps1
Last active May 8, 2026 10:37
A handy, interactive Windows PowerShell script to build Qt Quick Ultralite from source and then install it with all host tools copied
<#
# build_qul_from_source.ps1
Interactive PowerShell script for building [Qt for MCUs](https://doc.qt.io/QtForMCUs/) (QUL) from sources, optionally installing the result as a self-contained custom QUL tree, and optionally flashing a demo/example to target hardware.
Based on [Building QUL from source](https://doc.qt.io/QtForMCUs/qtul-building-from-sources.html).
## What it does
- Prompts for all required CMake variables (`QUL_ROOT`, `QUL_TOOLS`, platform, toolchain, board SDK, etc.)
- Saves your configuration to `Build-QUL.config.json` for re-use
- On subsequent runs, lets you edit specific fields via a numbered menu
- Runs `cmake configure` + `cmake --build`
- (Optional) Copies the original `QUL_ROOT` to `CMAKE_INSTALL_PREFIX` (seeds host tools + CMake config), then runs `cmake --install` to overlay the rebuilt libraries — producing a custom QUL tree that applications can consume directly