3 ms·
> To accommodate this, we have over the last 6 months done significant work on our build infrastructure to give our users much more fine grained control over th
by cm3 10y ago
> To accommodate this, we have over the last 6 months done significant work on our build infrastructure to give our users much more fine grained control over the way how Qt is being built. This is what we called the Qt Lite Project.
> [...]
> From initial measurements, we expect that you will be able to reduce the size of a statically linked Qt Quick application by up to 70% compared to Qt 5.6.
Does this mean they fixed static linking in 5.8? It stopped working in 5.7 for some reason in most projects. With 5.6 it was easy to use cmake scripts to create statically linked applications when your Qt installation was build statically. This still worked with qmake projects in 5.7 but not cmake.
I kinda wish I could build a Qt installation that has dynamic libs and static archives, but it's not possible to select that at configure time.
Stuff either doesn't build or it builds and then still looks for dynamic bits since 5.7. This was fine in 5.6 AFAIR.
- justinclift 10y agoWith the static linking in 5.6, did that also include the image format plugins (eg jpg, bmp, etc)?
- cm3 10y agoI'm not exactly sure what you mean, but I think so, since the apps it worked with did load and save images.
- justinclift 10y agoNo worries. :) Putting time into a project recently, and we're going through the process of migrating from Qt4/Qt5 to Qt5-only. (this is so we can start using Qt5 only features) One of the differences between Qt4 and Qt5, is that while Qt4 has all of its supported image formats inbuilt Qt5 doesn't. It keeps them in separate shared libraries, which (for non-static applications) need packaging with the rest of the application. I haven't looked into whether they get compiled in with static ones though. It sounds like they might be, which would be useful for us, as people do request static builds occasionally. :)
- cm3 10y agoI'm just a user of Qt applications, so please don't take my comment to be authoritative. Experiment and conclude.
- justinclift 10y agoNo worries at all. :)
- rossy 10y agoWell, I just made a static build of a Qt 5.7 project that required the SVG image format plugin, so it's definitely possible. In qmake projects, it all happens automatically if you specify the plugins you use in the QTPLUGINS variable. In my case, I needed to add 'svg' to the QT variable. For non-qmake projects, I think you have to add Q_IMPORT_PLUGIN() macros to the source code of your program to "load" the statically linked plugins.