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

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.9k 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.
  • D Doctor G
    20 Dec 2018, 17:43

    @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 30 Jan 2019, 09:30 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
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 30 Jan 2019, 09:33 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 30 Jan 2019, 10:12
      1
      • C Christian Ehrlicher
        30 Jan 2019, 09:33

        @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 30 Jan 2019, 10:12 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
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 30 Jan 2019, 12:18 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
            20 Dec 2018, 17:43

            @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 30 Jan 2019, 18:55 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
            • C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 30 Jan 2019, 18:59 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 31 Jan 2019, 02:52
              0
              • C Christian Ehrlicher
                30 Jan 2019, 18:59

                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 31 Jan 2019, 02:52 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
                • C Offline
                  C Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 31 Jan 2019, 05:29 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 31 Jan 2019, 08:52
                  1
                  • C Christian Ehrlicher
                    31 Jan 2019, 05:29

                    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 31 Jan 2019, 08:52 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 31 Jan 2019, 10:34 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 31 Jan 2019, 14:56
                      5
                      • T Taytoo
                        31 Jan 2019, 10:34

                        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 31 Jan 2019, 14:56 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 31 Jan 2019, 21:54
                        0
                        • aha_1980A aha_1980
                          31 Jan 2019, 14:56

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

                          T Offline
                          T Offline
                          Taytoo
                          wrote on 31 Jan 2019, 21:54 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 17 Sept 2019, 09:13 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
                            • C Offline
                              C Offline
                              Christian Ehrlicher
                              Lifetime Qt Champion
                              wrote on 17 Sept 2019, 15:53 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 19 Sept 2019, 01:52
                              1
                              • C Christian Ehrlicher
                                17 Sept 2019, 15:53

                                @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 19 Sept 2019, 01:52 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
                                • C Offline
                                  C Offline
                                  Christian Ehrlicher
                                  Lifetime Qt Champion
                                  wrote on 19 Sept 2019, 04:29 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 19 Sept 2019, 05:48
                                  1
                                  • C Christian Ehrlicher
                                    19 Sept 2019, 04:29

                                    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 19 Sept 2019, 05:48 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
                                    • C Offline
                                      C Offline
                                      Christian Ehrlicher
                                      Lifetime Qt Champion
                                      wrote on 19 Sept 2019, 06:04 last edited by
                                      #28

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

                                      I am using MSVC 2017 Enterprise Edition 15.9.16.

                                      Not, that should be fine - there were some problems with 15.9.0 - 15.9.7 or 8 (iirc) but not with the current one. Are you sure you're not fetching an old compiler? How do you compiler your code? What does "cl /?" on the command line from where you compile says?

                                      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
                                      1
                                      • T Taytoo
                                        31 Jan 2019, 10:34

                                        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
                                        
                                        D Offline
                                        D Offline
                                        DFrY
                                        wrote on 10 Jan 2020, 04:58 last edited by
                                        #29

                                        @Taytoo Thank you very much!

                                        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