Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile error with QtDataVislualization

Compile error with QtDataVislualization

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 702 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Elmi79
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Elmi79
      wrote on last edited by
      #2

      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).

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved