Skip to content

DanOl98/qt-static-builds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

167 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Qt Static Builds

This workflow builds static binaries of Qt.

All modules except QtWebEngine are included. QtMultimedia has no ffmpeg backend

Installation

Use in Qt Creator

  1. Extract the toolchain wherever you want to keep it
  2. In Qt Creator, go to "Projects" tab
  3. Press "Manage Kits"
  4. Go to Kits->Qt Versions
  5. Press "Add"
  6. Select qmake or qmake6 executable present in the toolchain folder previously extracted under the "bin" subfolder
  7. Press "Apply"
  8. Go to Kits->Kits
  9. Press "Add"
  10. Under the "Compiler" selection, select the correct compiler for the downloaded toolchain
  11. Under the "Qr Version" selection, select the previously created Qt version
  12. If needed, compile other fields
  13. Press "Apply"

Use it in terminal

  1. Extract the toolchain wherever you want to keep it
  2. Add the "bin" subfolder to your PATH
  3. Add the correct compiler to your PATH

Platform notes

All platforms

  • Configuration summmaries for each platform and version are present in the release tab
  • All modules except QtWebEngine are included, since QtWebEngine cannot be built statically.
  • QtMultimedia has no ffmpeg backend

Linux

  • Builds are configured with:
    • Embedded libjpeg, libpng, pcre, zlib
    • System harfuzz and freetype, since they are needed in order to use fontconfig for system fonts
  • A fix is applied to QtOpcUa, because it redefined the openssl symbols that were already defined by QtNetwork

Windows

MinGW
  • The correct MinGW version must be installed to the system and configured in Qt Creator
MSVC
X64
  • In order to use QtNetwork and QtOpcUa, OpenSSL must be installed. to do so, run
vcpkg install openssl:x64-windows-static-release
ARM64
  • In order to use QtNetwork and QtOpcUa, OpenSSL must be installed. to do so, run
vcpkg install openssl:arm64-windows-static-release
  • ARM64 builds are currently untested

MacOS

  • Builds are currently untested

About

Automated build of static Qt6 libraries

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors