-pengl 동적으로 컴파일 된 qt5.4가 있습니다. 나는 그것을 테스트했으며 대체 작업은 정상적으로 작동합니다. 이제 qt3d를 동적 인 OpenGL Qt 라이브러리로 컴파일하고 싶습니다. 그게 가능하니? 문제는 아래 링크 문제로 인해 건물이 끝나는 것입니다. 그리고 내가 제대로 이해한다면 나는 어떤 OpenGL 라이브러리도 추가해서는 안된다. 어떻게 해결할 수 있을까?동적 OpenGL 구현으로 qt3d를 작성하는 방법 (qt5.4 -opengl dynamic)
\ConvertUTF" -I"..\..\3rdparty\assimp\contrib\zlib" -I"..\..\3rdparty\assimp\contrib\irrXML" -I"..\..\3rdparty\assimp\contrib\unzip" -I"scene_bezier" -I"network" -I"graphicsview" -I"textures" -I"surfaces" -I"api" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtCore\5.4.0" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtCore\5.4.0\QtCore" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtGui\5.4.0" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtGui\5.4.0\QtGui" -I"C:\Qt\5.4_angle\5.4\msvc2013\include" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtOpenGL" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtWidgets" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtGui" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtANGLE" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtCore" -I"C:\Qt\5.4_angle\5.4\msvc2013\include\QtNetwork" -I".moc\debug" -I"C:\Qt\5.4_angle\5.4\msvc2013\mkspecs\win32-msvc2013" -Fo.obj\debug\ @C:\Users\eDS\AppData\Local\Temp\moc_qgltexture2d_p.obj.1576.138606.jom
moc_qgltexture2d_p.cpp
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.30 /MANIFEST:embed /OUT:..\..\lib\Qt53Dd.dll @C:\Users\eDS\AppData\Local\Temp\Qt53Dd.dll.1576.142070.jom
Creating library ..\..\lib\Qt53Dd.lib and object ..\..\lib\Qt53Dd.exp
qglpainter.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: void __thiscall QGLPainter::updateFixedFunction(class QFlags<enum QGLPainter::Update>)" ([email protected]@@[email protected]@[email protected]@@@@Z)
qglpainter.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl qt_gl_setVertexAttribute(enum QGL::VertexAttribute,class QGLAttributeValue const &)" ([email protected]@[email protected]@@[email protected]@@Z)
qglpainter.obj : error LNK2019: unresolved external symbol [email protected] referenced in function "public: void __thiscall QGLPainter::updateFixedFunction(class QFlags<enum QGLPainter::Update>)" ([email protected]@@QAEXV?
에서 제거 된
glColor4f
등,glColorPointer
,glLightModelfv
,glBegin
는, 그 기능이 오래되고있는 것을 ANGLE (함수 특히 메인 세트이다 OpenGL은 ES 2.0 아니다 QT가 사용할 수있는 대체 OpenGL 구현)이 구현됩니다. 그래서, 나는 그 기능들이'-opengl desktop'에서만 사용 가능할 것이라고 기대할 것입니다. – PeterT