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. Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5
QtWS25 Last Chance

Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5

Scheduled Pinned Locked Moved Solved General and Desktop
visual studio
29 Posts 12 Posters 33.8k 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.
  • Q Offline
    Q Offline
    QMatthias
    wrote on last edited by
    #8

    Hello Qt community,

    Success! With the new "qalgorithms.h" the x86 build works great again.
    For your information:
    [https://codereview.qt-project.org/#/c/236948/2/src/corelib/tools/qalgorithms.h](link url)

    Special thanks to @SGaist !

    Problem solved!

    Many greetings from Germany,
    Matthias

    1 Reply Last reply
    1
    • S Offline
      S Offline
      sivabudh
      wrote on last edited by sivabudh
      #9

      I too just upgraded to version 15.8.0 yesterday running Qt 5.10.1 on Windows x86 (32-bit) and ran into the same problem. My solution was to downgrade to 15.7.6.

      1 Reply Last reply
      0
      • Q QMatthias

        Hello Qt community,

        sorry, I have missed an entry in the mailing list.
        This is a known with Qt and VS problem.

        quote from mailing list:
        "Another issue: 5.9 doesn't build in 32-bit x86. Fix is in
        https://codereview.qt-project.org/236948 (backport of
        c59cb9809559f0aae6be8544cb2049e41f8040e9).
        "

        Thanks to all!

        Many greetings from Germany,
        Matthias

        D Offline
        D Offline
        Doctor G
        wrote on last edited by Doctor G
        #10

        @QMatthias

        I replace the qalgorithms.h cleaned the cmake cache, did a full rebuild. And now it is working for me also.

        I am using VS2017 15.9.4 and doing a x64 build with release symbols.

        T 2 Replies Last reply
        0
        • D Doctor G

          @QMatthias

          I replace the qalgorithms.h cleaned the cmake cache, did a full rebuild. And now it is working for me also.

          I am using VS2017 15.9.4 and doing a x64 build with release symbols.

          T Offline
          T Offline
          Taytoo
          wrote on last edited by
          #11

          I'm getting this error on 5.12.0 static x86 build in Visual Studio 2017. Is the fix same?

          1 Reply Last reply
          0
          • Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #12

            @Taytoo said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

            Is the fix same?

            If you use 15.8 then yes - it makes no different if you build Qt static or not here.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            T 1 Reply Last reply
            1
            • Christian EhrlicherC Christian Ehrlicher

              @Taytoo said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

              Is the fix same?

              If you use 15.8 then yes - it makes no different if you build Qt static or not here.

              T Offline
              T Offline
              Taytoo
              wrote on last edited by
              #13

              @Christian-Ehrlicher I have Visual Studio 2017 15.9.6 and Qt 5.12.0. Just tried the fix and its Not working.

              0_1548843116848_argument.jpg

              1 Reply Last reply
              0
              • Christian EhrlicherC Online
                Christian EhrlicherC Online
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #14

                @Taytoo said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

                Just tried the fix and its Not working.

                Which fix?

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0
                • D Doctor G

                  @QMatthias

                  I replace the qalgorithms.h cleaned the cmake cache, did a full rebuild. And now it is working for me also.

                  I am using VS2017 15.9.4 and doing a x64 build with release symbols.

                  T Offline
                  T Offline
                  Taytoo
                  wrote on last edited by
                  #15

                  @Doctor-G said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

                  @QMatthias

                  I replace the qalgorithms.h cleaned the cmake cache, did a full rebuild. And now it is working for me also.

                  I am using VS2017 15.9.4 and doing a x64 build with release symbols.

                  @Christian-Ehrlicher said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

                  @Taytoo said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

                  Just tried the fix and its Not working.

                  Which fix?

                  The one above

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Online
                    Christian EhrlicherC Online
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #16

                    Then I would say - update to 5.9.7 and make sure no old Qt version is around and try again since it's fixed in 5.9.7

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    T 1 Reply Last reply
                    0
                    • Christian EhrlicherC Christian Ehrlicher

                      Then I would say - update to 5.9.7 and make sure no old Qt version is around and try again since it's fixed in 5.9.7

                      T Offline
                      T Offline
                      Taytoo
                      wrote on last edited by
                      #17

                      @Christian-Ehrlicher you mean downgrade Qt from 5.12.0 to 5.9.7 - that's quite an old version. I need the high-dpi support in Qt.

                      Can anyone look into this issue, I'm sure I'm not the only one on 5.12.0 branch using VS2017?

                      1 Reply Last reply
                      0
                      • Christian EhrlicherC Online
                        Christian EhrlicherC Online
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #18

                        You're using 5.12? Then the fix is in there already... the problem here was only due to problems with Qt5.9.5/.6 and VS 2017...
                        Do you compile Qt on your own?

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        T 1 Reply Last reply
                        1
                        • Christian EhrlicherC Christian Ehrlicher

                          You're using 5.12? Then the fix is in there already... the problem here was only due to problems with Qt5.9.5/.6 and VS 2017...
                          Do you compile Qt on your own?

                          T Offline
                          T Offline
                          Taytoo
                          wrote on last edited by
                          #19

                          @Christian-Ehrlicher said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

                          You're using 5.12? Then the fix is in there already... the problem here was only due to problems with Qt5.9.5/.6 and VS 2017...
                          Do you compile Qt on your own?

                          Yes and Yes

                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            Taytoo
                            wrote on last edited by
                            #20

                            Fixed preprocessor error by updating header file:

                            #if defined(__cplusplus)
                            #if defined(__clang__)
                            #if QT_HAS_CPP_ATTRIBUTE(clang::fallthrough)
                            #    define Q_FALLTHROUGH() [[clang::fallthrough]]
                            #endif
                            #elif defined(__GNUC__)
                            #if QT_HAS_CPP_ATTRIBUTE(gnu::fallthrough)
                            #    define Q_FALLTHROUGH() [[gnu::fallthrough]]
                            #endif
                            #elif QT_HAS_CPP_ATTRIBUTE(fallthrough)
                            #  define Q_FALLTHROUGH() [[fallthrough]]
                            #endif
                            #endif
                            
                            aha_1980A D 2 Replies Last reply
                            5
                            • T Taytoo

                              Fixed preprocessor error by updating header file:

                              #if defined(__cplusplus)
                              #if defined(__clang__)
                              #if QT_HAS_CPP_ATTRIBUTE(clang::fallthrough)
                              #    define Q_FALLTHROUGH() [[clang::fallthrough]]
                              #endif
                              #elif defined(__GNUC__)
                              #if QT_HAS_CPP_ATTRIBUTE(gnu::fallthrough)
                              #    define Q_FALLTHROUGH() [[gnu::fallthrough]]
                              #endif
                              #elif QT_HAS_CPP_ATTRIBUTE(fallthrough)
                              #  define Q_FALLTHROUGH() [[fallthrough]]
                              #endif
                              #endif
                              
                              aha_1980A Offline
                              aha_1980A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on last edited by
                              #21

                              @Taytoo May I ask which header file you changed, and what exactly? Thanks!

                              Qt has to stay free or it will die.

                              T 1 Reply Last reply
                              0
                              • aha_1980A aha_1980

                                @Taytoo May I ask which header file you changed, and what exactly? Thanks!

                                T Offline
                                T Offline
                                Taytoo
                                wrote on last edited by
                                #22

                                @aha_1980 The change was in qcompilerdetection.h Line: 1349.

                                Weird thing is that now that I've fixed the linker issue I was experiencing, compiler is Not complaining of the code - I've reverted qcompilerdetection.h back to its original version. Even though, looking at the file in VS the offending lines are still marked red, I guess moc is taking care of it somehow.

                                1 Reply Last reply
                                1
                                • L Offline
                                  L Offline
                                  Langston
                                  wrote on last edited by Langston
                                  #23

                                  Hello,
                                  I am using QT5.13.1+VS2017 and I have encountered this kind of error. I am very surprised that the latest version will have such a problem.
                                  0_1568711573869_718b9bb9-1a1b-4f59-9763-7e5bb3221e97-image.png

                                  1 Reply Last reply
                                  0
                                  • Christian EhrlicherC Online
                                    Christian EhrlicherC Online
                                    Christian Ehrlicher
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #24

                                    @langston said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

                                    I am very surprised that the latest version will have such a problem.

                                    Did you compile Qt by yourself? I've no problems with MSVC 2017 + Qt5.12/5.13 so make sure you don't use an older compiler or something similar.

                                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                    Visit the Qt Academy at https://academy.qt.io/catalog

                                    L 1 Reply Last reply
                                    1
                                    • Christian EhrlicherC Christian Ehrlicher

                                      @langston said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:

                                      I am very surprised that the latest version will have such a problem.

                                      Did you compile Qt by yourself? I've no problems with MSVC 2017 + Qt5.12/5.13 so make sure you don't use an older compiler or something similar.

                                      L Offline
                                      L Offline
                                      Langston
                                      wrote on last edited by
                                      #25

                                      @christian-ehrlicher
                                      Hello, first of all, I am very grateful for your reply.
                                      No, I am downloading the qt version from the official.
                                      Here is the download address: http://download.qt.io/official_releases/qt/5.13/5.13.1/
                                      I chose qt-opensource-windows-x86-5.13.1.exe

                                      1 Reply Last reply
                                      0
                                      • Christian EhrlicherC Online
                                        Christian EhrlicherC Online
                                        Christian Ehrlicher
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #26

                                        And which exact MSVC2017 version do you use? Please update to at least 15.9.8 ( see https://docs.microsoft.com/de-de/visualstudio/releasenotes/vs2017-relnotes )

                                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                                        Visit the Qt Academy at https://academy.qt.io/catalog

                                        L 1 Reply Last reply
                                        1
                                        • Christian EhrlicherC Christian Ehrlicher

                                          And which exact MSVC2017 version do you use? Please update to at least 15.9.8 ( see https://docs.microsoft.com/de-de/visualstudio/releasenotes/vs2017-relnotes )

                                          L Offline
                                          L Offline
                                          Langston
                                          wrote on last edited by Langston
                                          #27

                                          @christian-ehrlicher
                                          thank you for your reply.
                                          I am using MSVC 2017 Enterprise Edition 15.9.16.
                                          And Is this a problem with this version?

                                          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