Hello,
I am trying to build VTK on FriendlyDesktop (Ubuntu flavour) on my NanoPC-T4, and am running into a build error.
/home/pi/devel/PB-x64/Deps/vtk/GUISupport/Qt/QVTKOpenGLNativeWidget.cxx: In member function ‘virtual void QVTKOpenGLNativeWidget::paintGL()’:
/home/pi/devel/PB-x64/Deps/vtk/GUISupport/Qt/QVTKOpenGLNativeWidget.cxx:537:3: error: ‘QOpenGLFunctions_3_2_Core’ was not declared in this scope
QOpenGLFunctions_3_2_Core* f =
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/devel/PB-x64/Deps/vtk/GUISupport/Qt/QVTKOpenGLNativeWidget.cxx:537:3: note: suggested alternative: ‘QOpenGLFunctionsPrivate’
QOpenGLFunctions_3_2_Core* f =
^~~~~~~~~~~~~~~~~~~~~~~~~
QOpenGLFunctionsPrivate
/home/pi/devel/PB-x64/Deps/vtk/GUISupport/Qt/QVTKOpenGLNativeWidget.cxx:537:30: error: ‘f’ was not declared in this scope
QOpenGLFunctions_3_2_Core* f =
^
/home/pi/devel/PB-x64/Deps/vtk/GUISupport/Qt/QVTKOpenGLNativeWidget.cxx:538:83: error: no matching function for call to ‘QOpenGLContext::versionFunctions<QOpenGLFunctions_3_2_Core>()’
QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Core>();
^
In file included from /opt/qt-5.12.2/include/QtGui/QOpenGLContext:1:0,
from /home/pi/devel/PB-x64/Deps/vtk/GUISupport/Qt/QVTKOpenGLNativeWidget.cxx:20:
I have set the VTK_OPENGL_HAS_ES and VTK_OPENGL_HAS_EGL flags, and the appropriate libraries seem to be found.
I have built my own Qt with the -opengl es2
backend selected. Has anyone successfully built for arm64/opengl es?