Compile error with QtDataVislualization



  • Hi,

    I always stumble upon a OpenGL-error when compiling QtDataVisualization component. My Qt was already built with OpenGL (option "configure.bat -debug -nomake examples -opengl desktop"), the configure summary confirms me it will be used. So I assume the OpenGL functions have to be there.

    That's my error message:

    @ cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 /FdD:\Qt\Qt5.2.1\5.2.1\Src\qtbase\lib\DataVisualizationd.pdb -DUNICODE -DWIN32 -DQT_EDITION=QT_EDITION_DESKTOP -DQT_DATAVISUALIZATION_LIBRARY -DQT_BUILD_DATAVISUALIZATION_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER - QT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQT_NO_EXCEPTIONS -DQT_GUI_LIB -DQT_CORE_LIB -I"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\Include\um" -I"....\include" -I"....\include\QtDataVisualizat
    ion" -I"D:\Qt\Qt5.2.1\5.2.1\Src\qtbase\include" -I"D:\Qt\Qt5.2.1\5.2.1\Src\qtbase\include\QtDataVisualization" -I"....\include\QtDataVisualization\1.2.0" -I"....\include\QtDataVisualization\1.2.0\QtDataVisualization" -I"tmp" -I"global" -I"engine" -I"utils" -I"theme" -I"axis" -I"data" -I"input" -I"D:\Qt\Qt5.2.1\5.2.1\Src\qtbase\include\QtGui" -I"D:\Qt\Qt5.2.1\5.2.1\Src\qtbase\include\QtCore" -I".moc\debug" -I"D:\Qt\Qt5.2.1\5.2.1\Src\qtbase\mkspecs\win32-msvc2013" -Fo.obj\debug\ C:\Users\ELMI\AppData\Local\Temp\nmDE21.tmp
    utils.cpp
    utils\utils.cpp(186) : error C2039: 'glReadPixels' : is not a member of 'QOpenGL
    Functions'
    d:\qt\qt5.2.1\5.2.1\src\qtbase\include\qtgui../../src/gui/opengl/qopenglfunctions.h(181) : see declaration of 'QOpenGLFunctions'
    utils\utils.cpp(350) : error C2039: 'glGetIntegerv' : is not a member of 'QOpenGLFunctions'
    d:\qt\qt5.2.1\5.2.1\src\qtbase\include\qtgui../../src/gui/opengl/qopenglfunctions.h(181) : see declaration of 'QOpenGLFunctions'@

    Within the switches of "cl" command no OpenGL-related definitions can be found, but as far as I understand it, there should be such a switch defined to include the correct header file that contains the definitions for the required OpenGL functions.

    Any ideas what could be wrong here?

    Thanks!



  • OK, solved it, version 1.2 is simply unusable, at least for Windows/VisualStudio. After switching to version 1.1 it could be compiled without these strange errors.

    Btw: the quality of this enterprise-thingy is quite poor. In both cases, (v1.1 and 1.2) I manually had to edit the generated Makefiles to add several missing definitions (include pathes for "rc", general include search pathes, link-library search pathes).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.