Skip to content

Precompiled x64 Qt 5 library in minimalistic configuration for Windows.

License

Notifications You must be signed in to change notification settings

gencer/qt5-minimalistic-builds

 
 

Repository files navigation

qt5-minimalistic-builds

This is attempt to build Qt 5 libraries in minimalistic mode. Output binaries have fewer dependencies, are lighter and thus are smaller.

This projects aims to provide only x64 variant of Qt5 library and its dependencies. Both release and debug builds are provided.

All original licenses of all used components (Qt, qtbinpatcher, MinGW-w64, OpenSSL, MSVC) are respected with the additional exception that compiling, linking, and/or using OpenSSL is allowed. Unmodified source code of Qt is used and the license of produced Qt binaries is the same as license used in original OSS Qt libraries. The build phase of these prebuilt binaries is reproducible, see repository files for build scripts.

Used OpenSSL is taken from here.

You can donate to me here. You use this stuff on your own risk.

How this differs from official Qt Windows binaries?

Well, there are some differences:

  • these binaries are compiled with MinGW-w64 or MSVC2017 toolchain and are x64,
  • some features and modules are disabled, which makes dependency tree smaller (details are specified in description of each release),
  • distribution is relocatable (via qtbinpatcher.exe) and coinstallable with original MSYS2 Qt5 packages,
  • debug/release builds are available,
  • static/dynamic builds are available,
  • allmost all 3rd-party libs used by Qt are compiled directly into libraries,
  • link-time optimizations (/LTCG) are enabled in MSVC2017 static builds.

How to use MSVC2017 variant

  1. Install Visual Studio 2017 or just Build Tools.
  2. Download prebuilt Qt binaries and unpack them to folder of your choice, for example C:\Qt\XX.
  3. Use command line to navigate to folder C:\Qt\XX\bin and run qtbinpatcher.exe and wait for it to finish its job. At this point, installation is complete and Qt library is ready for usage.

How to use MinGW variant

  1. Install MinGW-w64 x64 compiler toolchain:
    1. You can use MSYS2 which contains the compiler. In that case install MSYS2, then run its shell and update all MSYS2 packages with pacman -Syu. Then install the compiler with pacman -S mingw-w64-x86_64-toolchain. This is the recommended way.
    2. Or you can get only the MinGW-w64 x64 compiler.
  2. Download prebuilt Qt binaries and unpack them to folder of your choice, for example C:\Qt\XX.
  3. Use command line to navigate to folder C:\Qt\XX\bin and run qtbinpatcher.exe and wait for it to finish its job. At this point, installation is complete and Qt library is ready for usage.

Special thanks to MSYS2/MinGW-w64 teams for their amazing job.

About

Precompiled x64 Qt 5 library in minimalistic configuration for Windows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 82.2%
  • PowerShell 17.4%
  • Batchfile 0.4%