harbor run -t LiteCoder/qt5-multi-version-build-matrixharbor download LiteCoder/qt5-multi-version-build-matrixCreate a complete build system that compiles a minimal Qt5 demo application against three different Qt5 versions in parallel and packages each into a self-contained redistributable tarball for Linux x86_64.
5.12.12, 5.15.2, 5.15.10/appAll output files must be placed under /app/.
Demo Qt5 Project (/app/demo-app/):
QMainWindow and an About dialog..pro file (qmake project) at /app/demo-app/demo-app.pro.--version flag that prints a line matching the pattern demo-app <version> to stdout and exits with code 0.Build Script (/app/build.sh):
5.15.2). When no argument is given, it builds for all three versions./opt/qt5-<VERSION> (e.g., /opt/qt5-5.12.12).PATH, LD_LIBRARY_PATH, QT_PLUGIN_PATH) so the correct Qt prefix is used.ldd or equivalent), or that all required Qt shared libraries are bundled alongside it./app/build-log.json upon completion.Build Log (/app/build-log.json):
A JSON file with the following structure:
{
"builds": [
{
"qt_version": "5.12.12",
"status": "success" | "failure",
"qt_prefix": "/opt/qt5-5.12.12",
"binary_path": "<path to compiled binary>",
"tarball_path": "<path to output tarball>",
"tarball_size_bytes": <integer>,
"dynamic_qt_deps": ["<list of any remaining dynamic Qt .so dependencies, empty if static>"]
}
],
"total_tarball_size_bytes": <integer sum of all tarball sizes>
}
builds must correspond to one of the three Qt versions.status must be either "success" or "failure".tarball_size_bytes must be the actual file size in bytes.total_tarball_size_bytes must equal the sum of all individual tarball_size_bytes values.Tarballs (under /app/dist/):
research-app-qt5-<VERSION>-linux-x86_64.tar.gz
/app/dist/research-app-qt5-5.12.12-linux-x86_64.tar.gz/app/dist/research-app-qt5-5.15.2-linux-x86_64.tar.gz/app/dist/research-app-qt5-5.15.10-linux-x86_64.tar.gzbin/ — the compiled binarylib/ — bundled Qt shared libraries (if dynamically linked) or empty (if statically linked)plugins/ — Qt plugins directory (at minimum platforms/)run.sh — a launch script at the tarball root that sets LD_LIBRARY_PATH and QT_PLUGIN_PATH relative to its own location before executing the binaryLaunch Script (run.sh inside each tarball):
LD_LIBRARY_PATH to the bundled lib/ directory.QT_PLUGIN_PATH to the bundled plugins/ directory../run.sh --version must print the version string and exit 0..pro file must not hardcode absolute paths to any Qt installation.