QT5.11.1 compile with static
-
Hi,
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 -
Hi
Why not just make a deployment folder
http://www.tripleboot.org/?p=138
http://doc.qt.io/qt-5/windows-deployment.htmluse the Windows Deployment Tool to help copy the needed Dlls.
-
@Sam1990
Thats ismostlylikely 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.
-
Hi!
Qt 5.11.1
doesn't supportWindows XP
andWindows Vista
. I use the latestQt 5.9.6
and it works withWindows Vista
fine. Here is the official answer: Windows Vista issue. For staticQt
compilation you need to purchase the license to get the paidQt
version. -
@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. 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 withQt
it will be much better. So I only need to make it open source or provide the link toQt
website? Thanks. -
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.
-
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) -
@Cobra91151 said in QT5.11.1 compile with static:
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
Qt
several times. I'm not confused. Apps was build with dynamic linking. Also I can build the same way installer and add it for example tozip
archive file to distribute. But I can build one executable withInno Setup
and distribute it, which will be much better.I can use
Qt Installer Framework
to 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.