QT5.11.1 compile with static
Guys,i just installed Qt5.11.1 of windows version on my laptop,application I compiled through Qt5.11.1 can be ran only on my laptop under OS Win10 64 bits,can not run on their PC with platform win10,so I need compile it with static method,it can be released to run on any win10 platform,but I don't know way to static compile QT5.11.1
use the Windows Deployment Tool to help copy the needed Dlls.
@mrjj Yes, i tried it ,but it does not work,still prompt error that missed some dlls when ran on XP or Win7
mostlylikely missing compiler run time
for either mingw runtime or the visual studio runtime.
Win / and xp dot have vs runtime installed from start, only win 10
as far as i know.
Update: seems not even supported.
Qt 5.11.1doesn't support
Windows Vista. I use the latest
Qt 5.9.6and it works with
Windows Vistafine. Here is the official answer: Windows Vista issue. For static
Qtcompilation you need to purchase the license to get the paid
@Cobra91151 static compilation doesn't require a commercial license, however it comes with licensing constraints that you are not subject to if you have a commercial license.
Hi! So it means that I can compile
Qtfrom the source with static compilation and use it to create projects? Thanks.
Hi. yes you can use static compilation
IF your code is Open Source and freely available.
But if closed source, then you need license. ( or dynamic link)
To be more exact.
to obey LGLP , end use must be able to change the Qt version used.
So you can
1: provide source
2: use dynamic linking
3: provide all .o files used to produce the .exe with static linking.
Hi! I want to create my custom online installer for the projects. I used
Inno Setup (Delphi)for that, but with
Qtit will be much better. So I only need to make it open source or provide the link to
If you want to use the LGPL license to keep your code to yourself and use a static version of Qt, you have to provide all the build objects so that your user can re-create the application while linking to the version of Qt they want.
Installer with dynamic linking is not well, because it should be 1 executable, like with
Inno Setup. So I can provide the source code or all objects (
.obj) files in my case? Thanks.
Yes that is the general understanding. That should allow end user to use other
version of Qt. ( not sure How, but in theory)
However, be much cooler if you could do as open source :)
(for the installer)
Installer with dynamic linking is not well, because it should be 1 executable, like with Inno Setup
The installer can still be just one file, but installing software consisting of several files (do you confuse installer and your app?). In my opinion it is way easier to create an installer with dynamically linked Qt as to hack around with own static build of Qt. Did you ever build Qt?
Hi! Yes, I built the
Qtseveral times. I'm not confused. Apps was build with dynamic linking. Also I can build the same way installer and add it for example to
ziparchive file to distribute. But I can build one executable with
Inno Setupand distribute it, which will be much better.
I can use
Qt Installer Frameworkto build the installer but I want to customize it better. I want to know, how you can build the installer with 1 executable file using dynamic linking? I think it's not possible. Thanks.