[Interest] Qt 5.12 for Windows (Static)
thiago.macieira at intel.com
Thu Jan 24 08:17:33 CET 2019
On Wednesday, 23 January 2019 13:15:08 PST Nuno Santos wrote:
> I ran it via dependency walker and its failing after calling
> SHGetKnownFolderPath, from the looks of things, it dies inside
> sHGetKnownFolderPath() in qstandardpaths_win.cpp but I have no idea why the
> -static-runtime could influence that.
You said it crashes before main(). So what is calling QStandardPaths in a
global constructor? Please share the backtrace of the crash.
Please remember that if you have static runtime, your global constructor are
run intermixed with Qt's and the CRT's. If you had dynamic builds, all of Qt's
constructors would have completed before the first of yours started and all of
the CRT constructors would be finished before Qt's first. This intermixing of
constructors is NOT tested and not supported. If things break because of
static-runtime, you get to keep the pieces.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest