Qt 5.9.8 build failed with VS 2019
-
Hello! I want to build
Qt 5.9.8
sharedx86
usingVisual Studio 2019
. I use the source from: https://download.qt.io/official_releases/qt/5.9/5.9.8/single/ The problem is:Building gn manually in a temporary directory for bootstrapping... Command '['D:/QtBuild/qt-everywhere-opensource-src-5.9.8/qtwebengine/src/3rdparty/ninja/ninja.exe', '-C', 'D:\\QtBuild\\qt-everywhere-opensource-src-5.9.8\\qtwebengine\\src\\3rdparty\\chromium\\tools\\gn\\out\\Release', 'gn.exe']' returned non-zero exit status 1 Project ERROR: GN build error!
And the build fails. I use
Python 2.7.15
for theQt 5.9.8
build. Could it be the problem? Thanks in advance. -
Hi,
I might be completely wrong but I think it's rather going to be VS2019 that's too new to build the chromium version from Qt 5.9.8.
-
I have found the similar issue: https://bugreports.qt.io/browse/QTBUG-67984?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true
But it is closed now. I will try to build it with
Python 2.7.16
. -
No, the same error for
Python 2.7.16
. -
I will try to build it using
VS 2017
tomorrow. -
The
Qt 5.9.8
is built successfully usingVisual Studio 2017
. So, it seems that problem is with the newVisual Studio 2019
. I reported the issue here - https://bugreports.qt.io/browse/QTBUG-75212 -
By the way, I successfully built
Qt 5.9.8
statically withVS 2019
, but problems began to show up.First of all, the warning says this compiler is not compatible with the
Qt 5.9.8
version:Secondly, it broke a lot of code:
setCursor(Qt::PointingHandCursor);
is not workingC++ lambda
works but has red underlines (as errors) even no errors are found:Also, mouse hover on button using
setStyleSheet("QPushButton::hover {background-color: #556B2F;}");
method is not working.And that's not all, after the project has been finally built I noticed that
QLabel
avatar is missing/displays artifacts:So,
VS 2019
is too new for production development. I decided to useVS 2017
because it has compatibility withQt
and stability.
1/7