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. Visual Studio 15.8.0 and Qt 5.11.1 does not compile (QRandom/std::aligned_storage)
Forum Updated to NodeBB v4.3 + New Features

Visual Studio 15.8.0 and Qt 5.11.1 does not compile (QRandom/std::aligned_storage)

Scheduled Pinned Locked Moved Solved General and Desktop
visual studio
6 Posts 4 Posters 2.1k Views 2 Watching
  • 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.
  • S Offline
    S Offline
    sophonet
    wrote on last edited by
    #1

    After upgrading to Visual Studio 15.8.0, Qt 5.11.1 does not compile anymore but breaks when compiling QRandom.cpp, since the update introduces a fix which is ABI-incompatible to previous versions (https://developercommunity.visualstudio.com/content/problem/274945/stdmake-shared-is-not-honouring-alignment-of-a.html).

    My solution was to add a flag _ENABLE_EXTENDED_ALIGNED_STORAGE to both qtbase/mkspecs/common/msvc-desktop.conf (line 19) as well as qtbase/qmake/Makefile.win32 (line 42).

    Is this the correct approach? Will this be added as a fix to mainline? Or is there a better solution?

    Thanks, sophonet

    1 Reply Last reply
    1
    • B Offline
      B Offline
      BugCrasher
      wrote on last edited by
      #2

      Hello sophonet,

      I also have today compile Problems with the new 15.8.0 Update and Qt 5.9.5. I wrote the topic: "Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5". Maybe these are similar problems?

      Greetings,
      Matthias

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sophonet
        wrote on last edited by
        #3

        Hello Matthias,

        to me, the problems do not see related. After having applied the fix described above (about which I am not sure whether it is the best), I could successfully compile Qt, without the problem you have mentioned (different Qt version)?

        Best, sophonet

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

          Hi and welcome to devnet,

          Please take a look at this thread about VS 15.8 on the development mailing list.

          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
          2
          • S Offline
            S Offline
            sophonet
            wrote on last edited by
            #5

            Hi SGaist,

            just had a look at the git repository. Indeed, the two proposed fixes appear almost exactly where I have suspected them to be. Thanks.

            Best, sophonet

            1 Reply Last reply
            1
            • Q Offline
              Q Offline
              QMatthias
              wrote on last edited by
              #6

              Hello @sophonet ,

              thank you very much for your answer.
              You are right. In the meantime, my problem with Qt 5.9.5 was solved:

              [https://codereview.qt-project.org/#/c/236948/2/src/corelib/tools/qalgorithms.h](link url)

              Many greetings from Germany,
              Matthias

              1 Reply Last reply
              2

              • Login

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