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:
Is the fix same?
If you use 15.8 then yes - it makes no different if you build Qt static or not here.
-
@Christian-Ehrlicher I have Visual Studio 2017 15.9.6 and Qt 5.12.0. Just tried the fix and its Not working.
-
@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?
-
@Doctor-G said in Problem with new Visual Studio update 2017 Version 15.8.0 and Qt 5.9.5:
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
-
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
-
@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?
-
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? -
@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
-
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_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.
-
@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.
-
@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 -
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 )
-
@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? -
@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?