Skip to content

QGLViewer updateGL() function error

Background Details: CentOS 7.4 Compiled from source All features installed and enabled (except for python GTS...could not find that one)

Issue: When attempting to build Yade, this error occurs:

trunk-2017.01a/gui/qt5/GLViewer.cpp:298:11: error: ‘updateGL’ was not declared in this scope updateGL();

The way I solved this was by uncommenting line 64 in:

trunk-2017.01a/gui/qt5/GLViewer.hpp

so that "virtual void updateGL(void);" would be visible. I am not sure if that was originally commented out for debugging or deprecation, but it inhibited the program from compiling. If the comments were intentional, how would I fix the error otherwise?

Thanks, James

Original bug report by James on 2017-12-01 : https://bugs.launchpad.net/yade/+bug/1735804

Edited by Janek Kozicki