Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5.8 always crash on launch?

Qt5.8 always crash on launch?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • quiretQ Offline
    quiretQ Offline
    quiret
    wrote on last edited by
    #1

    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

    Magic.TXD, an advanced Qt-based RW TXD editor: https://osdn.net/projects/magic-txd/

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • quiretQ Offline
        quiretQ Offline
        quiret
        wrote on last edited by
        #3

        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! :-)

        Magic.TXD, an advanced Qt-based RW TXD editor: https://osdn.net/projects/magic-txd/

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The beta2 is out and available through the online installer.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • quiretQ Offline
            quiretQ Offline
            quiret
            wrote on last edited by
            #5

            Still not fixed on latest Qt5.9 using VS2017.2 ... Reported to Microsoft at:

            https://developercommunity.visualstudio.com/content/problem/62363/c-static-pod-initialization-is-not-in-read-only-se.html

            Qt5.9 has no full VS2017 support. New sample solution for Qt5.9:

            https://1drv.ms/u/s!Ao_bx9imD7B8gcVpXLkASltBrOpEgw

            Magic.TXD, an advanced Qt-based RW TXD editor: https://osdn.net/projects/magic-txd/

            K 1 Reply Last reply
            0
            • quiretQ quiret

              Still not fixed on latest Qt5.9 using VS2017.2 ... Reported to Microsoft at:

              https://developercommunity.visualstudio.com/content/problem/62363/c-static-pod-initialization-is-not-in-read-only-se.html

              Qt5.9 has no full VS2017 support. New sample solution for Qt5.9:

              https://1drv.ms/u/s!Ao_bx9imD7B8gcVpXLkASltBrOpEgw

              K Offline
              K Offline
              KeithS
              wrote on last edited by
              #6

              @quiret
              Compile Qt 5.8 with VC2017 from source, it works fine.

              quiretQ 1 Reply Last reply
              0
              • K KeithS

                @quiret
                Compile Qt 5.8 with VC2017 from source, it works fine.

                quiretQ Offline
                quiretQ Offline
                quiret
                wrote on last edited by
                #7

                @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.

                https://1drv.ms/u/s!Ao_bx9imD7B8gcxFvlyWNMGVLI6Ctw

                Magic.TXD, an advanced Qt-based RW TXD editor: https://osdn.net/projects/magic-txd/

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved