[Interest] Static build of Qt - debug mode and plugins
Thiago Macieira
thiago.macieira at intel.com
Sun Aug 25 17:26:59 CEST 2019
On Sunday, 25 August 2019 00:25:50 PDT Jakub Narolewski wrote:
> /usr/local/Qt-5.13.0/lib/libQt5Core.a
> /usr/local/Qt-5.13.0/lib/libQt5Sql.a
> /usr/local/Qt-5.13.0/lib/libQt5Network.a
> /usr/local/Qt-5.13.0/lib/libQt5Concurrent.a
> /usr/local/Qt-5.13.0/lib/libQt5WebSockets.a
> /home/izowiuz/vcpkg/installed/x64-linux/lib/libBox2D.a
> /usr/local/Qt-5.13.0/plugins/sqldrivers/libqsqlpsql.a
> /usr/local/Qt-5.13.0/plugins/sqldrivers/libqsqlite.a
> -lpq
> /home/izowiuz/vcpkg/installed/x64-linux/lib/liblz4.a
> /usr/local/Qt-5.13.0/lib/libQt5Network.a
> /usr/local/Qt-5.13.0/lib/libQt5Core.a -lpthread
> /usr/local/Qt-5.13.0/lib/libQt5Network.a
> /usr/local/Qt-5.13.0/lib/libQt5Core.a -lm
> /usr/local/Qt-5.13.0/lib/libqtpcre2.a -ldl -lssl -lcrypto
The order is wrong, as you can see. libQt5Sql.a appears before the plugins.
Invert the order and make the plugins appear before the library in this link
line.
It's interesting that the order is mostly correct. It seems that CMake is
applying dependency sorting correctly. If that is the case, then either it's a
CMake bug or there's some information missing in the qmake-generated CMake
files. Reporting a bug here is unlikely to get you enough attention, so you
may want to get your hands dirty and debug yourself.
It's also interesting that QtCore and QtNetwork are listed three times.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel System Software Products
More information about the Interest
mailing list