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.7k 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.
  • kkoehneK Offline
    kkoehneK Offline
    kkoehne
    Moderators
    wrote on last edited by
    #2

    Just updated to Visual Studio 2017 15.8.0. Anyhow, i could not reproduce your problem.

    cl /version prints

    Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26726 for x64

    for me. Also, what configure options did you use?

    Director R&D, The Qt Company

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

      Hello Kai Köhne,

      thank your for your help and fast response.
      I'm not in the office - so I use my personal account.
      My configuration is definitely x86 / 32-Bit - not x64.
      I will give you the complete configuration string by tomorrow.

      I apologize for the delay.

      Greetings,
      Matthias

      1 Reply Last reply
      0
      • devDawgD Offline
        devDawgD Offline
        devDawg
        wrote on last edited by
        #4

        Easiest solution is to just not use Visual Studio. It's an unnecessarily bulky framework that, if I'm not mistaken, runs wayyy slower than Qt.

        At the very least, re-consider WHY you want to use Visual Studio. If it's for specific APIs or libraries, there's a good chance they're probably available for Qt, as well. (open source is a wonderful thing)

        Anything worthwhile is never achieved easily.

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

          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
          • Q Offline
            Q Offline
            QMatthias
            wrote on last edited by
            #6

            Hello Qt community,

            @kkoehne My configuration is:

            Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26726 for x86
            

            @devDawg You are absolute right. But this is a company decision - I have to use Visual Studio.

            @SGaist thank you very much. In the mailing list is recommended to delte ".qmake.stash" files. I don't find any ".qmake.stash files" on my hard disk. I use Microsoft Visual Studio 2007 only and do not use qmake. I use the Visual Studio Plugin "Qt VS Tools" to generate the Visual Studio Project for Qt.
            Today I generated a complete new fresh Project (Qt GUI Application with "Qt VS Tools"), and I have the same errors as with my main project yesterday. So my problem is not solved.

            Thanks to all!

            Many greetings from Germany,
            Matthias

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

              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 1 Reply Last reply
              0
              • 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 Offline
                        Christian EhrlicherC Offline
                        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 Offline
                            Christian EhrlicherC Offline
                            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 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

                                          • Login

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