0

I built Qt5.5.1 successfully with default configuration:

configure -debug-and-release -opensource -platform win32-msvc2015

and then

nmake

Because QtANGLE support by default in this version, I rebuild Qt 5.5.1 to target Desktop OpenGL using this configuration:

configure -debug-and-release -opensource -opengl desktop -platform win32-msvc2015

and then

nmake

but I got Many Errors, this is the output:

Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fp.pch\debug\Qt5Guid_pch.pch -nol
ogo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -D_HAS_EXCEPTIONS
=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 /Fd..\..\lib\
Qt5Guid.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_NO_USING_NAMESPACE -DQT_BUILD_GUI_LIB
 -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_
ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPR
ECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_USE_BUNDLED_LIBPNG
-DPNG_ARM_NEON_OPT=0 -DQT_ENABLE_HARFBUZZ_NG -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_A
NGLE -DQT_NO_EXCEPTIONS -DQT_CORE_LIB -I. -I..\..\include -I..\..\include\QtGui
-I..\..\include\QtANGLE -I..\..\include\QtGui\5.5.1 -I..\..\include\QtGui\5.5.1\
QtGui -Itmp -I..\3rdparty\libpng -I..\3rdparty\zlib -I..\3rdparty\harfbuzz-ng\in
clude -I..\3rdparty\zlib -I..\..\include\QtCore\5.5.1 -I..\..\include\QtCore\5.5
.1\QtCore -I..\..\include\QtCore -I.moc\debug -I..\..\mkspecs\win32-msvc2015 -Fo
.obj\debug\ @C:\Users\User\AppData\Local\Temp\nm8A5A.tmp
qopenglcontext.cpp
kernel\qopenglcontext.cpp(364): error C2065: 'GL_PROXY_TEXTURE_2D': undeclared i
dentifier
kernel\qopenglcontext.cpp(370): error C2065: 'QOpenGLFunctions_1_0': undeclared
identifier
kernel\qopenglcontext.cpp(370): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(371): error C2065: 'QOpenGLFunctions_3_2_Core': undecl
ared identifier
kernel\qopenglcontext.cpp(371): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(374): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(374): error C2065: 'QOpenGLFunctions_3_2_Core': undecl
ared identifier
kernel\qopenglcontext.cpp(374): error C2672: 'QOpenGLContext::versionFunctions':
 no matching overloaded function found
kernel\qopenglcontext.cpp(374): error C2974: 'QOpenGLContext::versionFunctions':
 invalid template argument for 'TYPE', type expected
e:\blind_sys_v02\libs\qt\5.5.1\qt-everywhere-opensource-src-5.5.1\qtbase\include
\qtgui\../../src/gui/kernel/qopenglcontext.h(181): note: see declaration of 'QOp
enGLContext::versionFunctions'
kernel\qopenglcontext.cpp(376): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(376): error C2065: 'QOpenGLFunctions_1_0': undeclared
identifier
kernel\qopenglcontext.cpp(376): error C2672: 'QOpenGLContext::versionFunctions':
 no matching overloaded function found
kernel\qopenglcontext.cpp(376): error C2974: 'QOpenGLContext::versionFunctions':
 invalid template argument for 'TYPE', type expected
e:\blind_sys_v02\libs\qt\5.5.1\qt-everywhere-opensource-src-5.5.1\qtbase\include
\qtgui\../../src/gui/kernel/qopenglcontext.h(181): note: see declaration of 'QOp
enGLContext::versionFunctions'
kernel\qopenglcontext.cpp(378): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(378): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(380): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(381): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(381): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(381): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(381): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
kernel\qopenglcontext.cpp(383): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(383): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(383): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(383): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
kernel\qopenglcontext.cpp(395): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(396): error C2065: 'gl1funcs': undeclared identifier
kernel\qopenglcontext.cpp(396): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(396): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(396): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
kernel\qopenglcontext.cpp(398): error C2065: 'gl3funcs': undeclared identifier
kernel\qopenglcontext.cpp(398): error C2227: left of '->glGetTexLevelParameteriv
' must point to class/struct/union/generic type
kernel\qopenglcontext.cpp(398): note: type is 'unknown-type'
kernel\qopenglcontext.cpp(398): error C2065: 'GL_TEXTURE_WIDTH': undeclared iden
tifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

Have you an idea about the possible solution?

ProEns08
  • 1,856
  • 2
  • 22
  • 38
  • Did you delete and re-extracted from archive the whole Qt folder between the two builds to make sure you started from a fresh folder? – jpo38 Dec 22 '15 at 13:10
  • no, I just rebuild using the same folder. – ProEns08 Dec 22 '15 at 13:47
  • You can't rebuild in the same folder. Delete it and rebuild. – peppe Dec 22 '15 at 14:09
  • Also: *Because QtANGLE support by default in this version* is factually incorrect. The default in 5.5 is "dynamic" GL -- both ANGLE (ES2) and Desktop backends are built, the decision on which one to use is taken at runtime. – peppe Dec 22 '15 at 14:10
  • Thank your for the informations: The reason for this rebuilt is this question: http://stackoverflow.com/questions/34381314/qopenglwidget-show-black-screen . I concluded that the problem was from QtANGLE, is this true? – ProEns08 Dec 22 '15 at 14:18

1 Answers1

0

Please delete the whole Qt folder. Extract it again from Qt archive (to a brand new folder), configure with your new options and build. It should work.

Incremental build when changing configuration option is risky and is not guaranteed to work at all.

jpo38
  • 20,821
  • 10
  • 70
  • 151