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
Forum Updated to NodeBB v4.3 + New Features

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 34.0k Views 4 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.
  • 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 Offline
      Christian EhrlicherC Offline
      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 Offline
          Christian EhrlicherC Offline
          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 Offline
                      Christian EhrlicherC Offline
                      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 Offline
                          Christian EhrlicherC Offline
                          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
                            • Christian EhrlicherC Offline
                              Christian EhrlicherC Offline
                              Christian Ehrlicher
                              Lifetime Qt Champion
                              wrote on 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

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