TLDR: A repository containing LGPL licensed Qt binaries for the Qt LTS releases, all the commercial bits skipped. Upstream security patches are tracked and applied automatically after review. A simple action to use them in GH workflows is available.
Let's face it: building Qt in all the platforms is a hassle.
Not only one needs to find the correct set of dependecies to install, divine which of the dozens configure options to use, deal with not so easy to diagnose configuration errors, and then spend a considerable amount of time compiling all the code, but the license for Qt code is (purposefully?) complicated: if you are developing a GPL application you are in luck, all the code in Qt is compatible with that license.
Things gets "interesting" when you want to keep you application's code closed: in this case you are left with paying Qt company for the commercial license (which will give you access to all the modules but taints your code with "developed with Qt commercial" status, this can't be undone) or stick to the LGPL modules; this repository tries to help in this latter case.
You will find here pre-built Qt binaries with ONLY LGPL licensed modules you can use and distribute with your project ; please refer to the LGPL license for all the details.
If you find something missing or not generally correct, feel free to open an issue
Only Qt LTS lines are built, for Windows (x64), Linux (x64, built on Ubuntu 22.04 for the widest glibc compatibility) and macOS (arm64):
| Line | Status | Notes |
|---|---|---|
| 6.12 LTS | built | Open-source patch releases are published while 6.12 is new. |
| 6.8 LTS | built | The newest 6.8 patch releases are commercial-only; their sources become available to open-source users later (6.8.5 was published in October 2026). Upstream security patches are applied on top. |
Modules (Qt submodules): qtbase, qtimageformats, qtdeclarative, qtsvg, qtremoteobjects, qttools, qttranslations, qtshadertools, qt5compat, qtwebsockets, qtwebchannel, qtserialport, qtserialbus, qtscxml (+ qtactiveqt on Windows). The list lives in config/build.json.
Tools (moc, rcc, uic, qmake, windeployqt/macdeployqt, Designer, Linguist, Assistant, ...) are included. Qt licenses its tools under the GPL with the Qt GPL exception, which allows using them to build applications under any license.
The Linux packages are built without ICU (-no-icu), so they don't depend on the ICU version of a particular Ubuntu release. Qt then uses simpler built-in fallbacks for collation (QCollator), locale-aware text handling and legacy text codecs. Open an issue if you need ICU.
Note: qtdeclarative also contains the Qt Qml Compiler library (QtQmlCompiler), which Qt makes available as open source under the GPL only. It is used by tools such as qmllint and qmlsc; do not link your application against it if you rely on the LGPL.
Between releases, Qt publishes fixes for security issues as diff files on download.qt.io. This repository:
- checks download.qt.io every day for new LTS patch releases and new or changed security patches;
- verifies every download against the SHA-256 published by download.qt.io;
- proposes new patches in a pull request, so nothing reaches a build without a human review;
- rebuilds the latest release of the affected line once the patches are merged, bumping the package release number (
6.8.5-1→6.8.5-2).
Every release lists which CVE patches were applied, or were already contained in the upstream release. See patches/README.md for the details.
Each release ships Software Bills of Materials:
- Qt's own SBOMs, generated by the Qt build (
-sbom): SPDX 2.3, plus CycloneDX 1.6 for Qt 6.11 and later. They cover Qt and the third-party code bundled in it, and are installed in the package and attached to the release assbom-<package>.zip. sbom-extras-<package>.cdx.json(CycloneDX 1.6): the verified upstream source archive, the CVE patches applied to it, and the OpenSSL version linked into QtNetwork.
Qt Group's license terms did change (and still do) from time to time, so if you are planning to rely on the Qt library for a commercial activity I suggest you invest in some quality legal advice before choosing Qt and one of the possible licenses.
I am not a lawyer but I've dealt with their license terms long enough so I will try save you some time by summarizing here what I know about it:
-
you need to choose early if you will use the GPL or LGPL license and stick with it. Their license explicitly calls "Prohibited Combination" mixing code developed with (L)GPL and commercial license; this means you can't start with (L)GPL and later acquire the Commercial license to work on the same project (however, I guess if you ask them they will allow it, not sure if and how much that will cost you). This also means you can't have people working on the same project if some of them use the Commercial version: all of them will need a Commercial license.
-
as a corollary to 1, if you started a project with the Commercial license then all of the code you will ever add to it have to come from contributors owning a Commercial license. And someone said GPL was viral...
-
there is a distinction between Application and Devices development when it comes to distribution: software distributed with devices is subject to a royalty.
Summing up: if you are going to create some desktop software based on Qt and you plan to distribute it (for free or for a fee), you can choose to use the LGPL version of Qt you can find here, but be careful to avoid "tainting" the sources with contributions made with Qt Commercial.
Again, I am not a lawyer so I recommend you consult with a real one if you are going to use Qt for professional purposes.
However, the LGPL license is widespread since ages, so its strenghts and limitations are well known. Summarizing:
- if you modify and redistribute binaries of the library (out of the scope of my repository, these binaries are compiled from pristine upstream source plus the upstream security patches listed in each release) you need to provide the corresponding source code.
- if you link statically against LGPL code your work falls under the LGPL as well, so you would need to release the corresponding source code (again out of scope, I only provide here dynamic -aka shared- libraries)
- if you link dynamically with LGPL code you don't need to release your sources and the resulting combination can be distributed for free or for a fee
Using the binaries is easy: just download the latest version for your OS from the releases, unpack it anywhere you like the add the <QT_DIR>/bin directory to your path so that tools like cmake determine all the other paths automatically.
Each release is tagged qt-<qt version>-<package release> (e.g. qt-6.12.0-1) and contains one package per OS, e.g. qt-6.12.0-1-windows2025.zip, qt-6.12.0-1-ubuntu2204.tar.xz, qt-6.12.0-1-macos15.tar.xz. Packages carry a build provenance attestation you can check with gh attestation verify <file> --repo giallu/qt-lgpl.
For convenience, action is provided in this repo so the setup in a GH workflow is automated by a step like this:
- name: Install Qt from giallu/qt-lgpl
uses: giallu/qt-lgpl@v1
with:
qt-version: 6.12-latest
| input | default | meaning |
|---|---|---|
qt-version |
6.12-latest |
an exact package (6.12.0-1) or the newest published package of a line (6.12-latest, 6.8-latest) |
os |
the runner's platform | which build to use: windows-2025, ubuntu-22.04 (also runs on newer Ubuntu releases), macos-15 |
verify-attestation |
true |
check the build provenance attestation of the package |
cache |
true |
cache the downloaded package between runs |
The action adds Qt to PATH and CMAKE_PREFIX_PATH, and exposes the install directory as the qt-dir output and the resolved package as qt-package. Older per-OS releases such as 6.8.1-3 with os: windows-2019 still work (add verify-attestation: false for any that predate attestations).
On Linux, building against QtGui (and so QtWidgets, QtSvg, ...) needs the system OpenGL development files, which GitHub's Ubuntu runners don't have: install them with sudo apt-get install -y libgl-dev libopengl0 libegl1 before configuring (the last two are also needed at run time). The build tools moc, rcc and uic are in <QT_DIR>/libexec on Linux and macOS; CMake finds them on its own.
see this sample repo for a working matrix build example using the action
Build Qtworkflow: run manually with a Qt version (e.g.6.12.0) to produce a draft release; it is also started automatically for new patch releases and after security patches are merged. Releases are created only frommain; builds from other branches keep their packages as run artifacts. Avoid changing the workflow files onmainwhile a build is running (including merging Dependabot PRs): GitHub then refuses to let the build create its release tag, and the build has to be started again. Non-draft releases are marked Latest only when they are the highest version published; when publishing a draft of an older line (e.g. 6.8 after 6.12), untick Set as the latest release.- Build speed: OpenSSL comes from a vcpkg binary cache (rebuilt only when the runner's vcpkg changes) and Qt is compiled as a unity build for the lines listed in
"unity_build_lines"inconfig/build.json(6.12; 6.8 does not build that way). - Automatic rebuilds after a patch PR is merged pass
only-if-patches-changed: the build is skipped when the patches actually applied are the same as in the latest release of that Qt version (each release carries a machine-readablepatches-*.jsonreport for this). Manual builds always build. Check upstream Qtworkflow: the daily check described above. It needs Settings → Actions → General → Allow GitHub Actions to create and approve pull requests to open patch PRs.Test actionworkflow: installs a published package with the action on Windows, Ubuntu 22.04/24.04 and macOS, then builds and runs a small app (tests/smoke-app) checking SVG, QML, TLS and an HTTPS request. Runs automatically when a release is published.- Actions are pinned to commit SHAs; Dependabot proposes updates weekly.
- Tests for the scripts:
python3 -m unittest discover -s tests -v
All the binaries in this repository are (of course...) LGPL licensed
Everything else is covered by the MIT license
If you need advice just contact me