Unsolved Qt5.8 always crash on launch?
-
Hello devs, I try compiling latest Qt 5.8 branch with VS2017 (26403.7) but always crash if run app. Please help!
main.cpp
#include <QtCore\QString> static QString _my_vague_string( "hello world" ); int main( int argc, char *argv[] ) { // Sample demonstrates crashing statics. return 0; }
Entire project (+ build scripts): https://1drv.ms/u/s!Ao_bx9imD7B8gb9jio3WPFZSdN2lSg
I tried filing bug report but no help :( https://bugreports.qt.io/browse/QTBUG-59721
-
Hi and welcome to devnet,
You should rather build the latest 5.9 which will be officially supporting VS2017.
As for no help, you got several replies on your report.
-
Ok. Will try again in few months. With help I meant fix, sorry if ambiguos. Issue frustrates me. Hoping for a stable VS2017 Qt5.9! :-)
-
The beta2 is out and available through the online installer.
-
Still not fixed on latest Qt5.9 using VS2017.2 ... Reported to Microsoft at:
Qt5.9 has no full VS2017 support. New sample solution for Qt5.9:
-
@quiret
Compile Qt 5.8 with VC2017 from source, it works fine. -
@KeithS I wish it did, mate. I wish it did. Try running the code, too. It crashes.
Just tested on latest Qt5.9 using VS2017.3 and it crashes aswell. Here are new build scripts.
-
@quiret Did you follow the evolution of QTBUG-59721 ?
There's clearly a problem with the latest VS2017 (.3 version), so the current solution is to either use VS2015 or dynamic linking with VS2017.