QT5.11.1 compile with static
-
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.
-
@mrjj Yes, i tried it ,but it does not work,still prompt error that missed some dlls when ran on XP or Win7
@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.
-
@mrjj Yes, i tried it ,but it does not work,still prompt error that missed some dlls when ran on XP or Win7
Hi!
Qt 5.11.1doesn't supportWindows XPandWindows Vista. I use the latestQt 5.9.6and it works withWindows Vistafine. Here is the official answer: Windows Vista issue. For staticQtcompilation you need to purchase the license to get the paidQtversion. -
@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.
-
@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! 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. 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 withQtit will be much better. So I only need to make it open source or provide the link toQtwebsite? 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.
-
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.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. -
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. So I can provide the source code or all objects (.obj) files in my case? Thanks.@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?
-
@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
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 toziparchive file to distribute. But I can build one executable withInno 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.