Solved build qt 5.5.0 with msvc2013
-
Hi I'm new to qt and I have been trying to build and compile QT with no luck. the last configure I have used looks like
configure -debug-and-release -opensource -platform -opengl desktop win32-msvc2010
..\jom\jom.exe
but it throws errors such as,kernel\qopenglcontext.cpp(364) : error C2065: 'GL_PROXY_TEXTURE_2D' : undeclared
identifier
kernel\qopenglcontext.cpp(370) : error C2065: 'QOpenGLFunctions_1_0' : undeclare
d identifier
kernel\qopenglcontext.cpp(370) : error C2065: 'gl1funcs' : undeclared identifierkernel\qopenglcontext.cpp(371) : error C2065: 'QOpenGLFunctions_3_2_Core' : unde
clared identifier
kernel\qopenglcontext.cpp(371) : error C2065: 'gl3funcs' : undeclared identifierkernel\qopenglcontext.cpp(374) : error C2065: 'gl3funcs' : undeclared identifier
kernel\qopenglcontext.cpp(374) : error C2065: 'QOpenGLFunctions_3_2_Core' : unde
clared identifier
kernel\qopenglcontext.cpp(374) : error C2974: 'QOpenGLContext::versionFunctions'
: invalid template argument for 'TYPE', type expected
c:\qt\5.5\qtbase\include\qtgui../../src/gui/kernel/qopenglcontext.h(181
) : see declaration of 'QOpenGLContext::versionFunctions'
kernel\qopenglcontext.cpp(376) : error C2065: 'gl1funcs' : undeclared identifierkernel\qopenglcontext.cpp(376) : error C2065: 'QOpenGLFunctions_1_0' : undeclare
d identifier
kernel\qopenglcontext.cpp(376) : error C2974: 'QOpenGLContext::versionFunctions'
: invalid template argument for 'TYPE', type expected
c:\qt\5.5\qtbase\include\qtgui../../src/gui/kernel/qopenglcontext.h(181
) : see declaration of 'QOpenGLContext::versionFunctions'
kernel\qopenglcontext.cpp(378) : error C2065: 'gl1funcs' : undeclared identifierkernel\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 '->glGetTexLevelParameteri
v' must point to class/struct/union/generic type
type is 'unknown-type'
kernel\qopenglcontext.cpp(381) : error C2065: 'GL_TEXTURE_WIDTH' : undeclared id
entifier
kernel\qopenglcontext.cpp(383) : error C2065: 'gl3funcs' : undeclared identifierjom: C:\Qt\5.5\qtbase\src\gui\Makefile.Release [.obj\release\qplatformsharedgrap
hicscache.obj] Error 2
kernel\qopenglcontext.cpp(383) : error C2227: left of '->glGetTexLevelParameteri
v' must point to class/struct/union/generic type
type is 'unknown-type'
kernel\qopenglcontext.cpp(383) : error C2065: 'GL_TEXTURE_WIDTH' : undeclared id
entifier
kernel\qopenglcontext.cpp(395) : error C2065: 'gl1funcs' : undeclared identifierkernel\qopenglcontext.cpp(396) : error C2065: 'gl1funcs' : undeclared identifier
kernel\qopenglcontext.cpp(396) : error C2227: left of '->glGetTexLevelParameteri
v' must point to class/struct/union/generic type
type is 'unknown-type'
kernel\qopenglcontext.cpp(396) : error C2065: 'GL_TEXTURE_WIDTH' : undeclared id
entifier
kernel\qopenglcontext.cpp(398) : error C2065: 'gl3funcs' : undeclared identifierkernel\qopenglcontext.cpp(398) : error C2227: left of '->glGetTexLevelParameteri
v' must point to class/struct/union/generic type
type is 'unknown-type'
kernel\qopenglcontext.cpp(398) : error C2065: 'GL_TEXTURE_WIDTH' : undeclared id
entifierjom: C:\Qt\5.5\qtbase\src\gui\Makefile [debug-all] Error 2
jom: C:\Qt\5.5\qtbase\src\gui\Makefile [release-all] Error 2
jom: C:\Qt\5.5\qtbase\src\Makefile [sub-gui-make_first] Error 2
jom: C:\Qt\5.5\qtbase\Makefile [sub-src-make_first] Error 2
jom: C:\Qt\5.5\Makefile [module-qtbase-make_first] Error 2Please give some solution to solve this problem...
-
Do you really need to compile Qt by yourself?
You can just install Qt for VS2013. -
Thanks for Reply.This is necessary to compile Qt. If u had any idea to clear this error. please share it
-
@Shidharth said:
configure -debug-and-release -opensource -platform -opengl desktop win32-msvc2010
Start with building your configure line properly, this doesn't make sense.
The -platform option need to be followed by the platform argument, like win32-msvc2013.
Which beg the other question: why build with win32-msvc2010 if you want msvc2013 ?
Do you really need '-opengl desktop' ?try configure -help