Monteverdi2 does not start after the check of OpenGL was added
Mantis Issue 924, reported by mgrizonnet, assigned to salbert, created: 2014-04-10
I am not able to open now Monteverdi2 (development version) as it stops at startup during the OpenGL version check.
I think that I was able to run the development version after the integration of the ice framework few weeks ago.
It could have an issue with the version check as if I understand the error message correctly, (snaptshop attached) it says that my OpenGL version is "2.0 build XXXX" and the required OpenGL version is at least 2.0. Perhaps my GSL version is not sufficient but I can't get the minimum version required as the error message gives "with GSL version at least ''"
1397466252 - salbertThere are two string constants in the otb::GlView class (ICE) which define the required OpenGL and OpenGL Shading Language (GLSL) versions:
- GlView::REQUIRED_GL_VERSION = "2.0.0";
- GlView::REQUIRED_GLSL_VERSION = ".
The GlView::REQUIRED_GLSL_VERSION must be set regarding instructions and requirements used by the ICE shaders source code.
The otb::GlView::CheckGLCapabilities() queries the runtime OpenGL and GLSL version strings and check them against GlView::REQUIRED_GL_VERSION and GlView::REQUIRED_GLSL_VERSION by parsing those strings.
While comparing runtime and required versions, an empty string is considered 0.0.0 for the runtime_version>=required_version passing check.
When launched, the MVD2 application calls GlView::CheckGLCapabilities() and displays a critical warning popup is required versions are insufficient.
A required version string is displayed empty if the corresponding GlView::REQUIRED_XXX_VERSION string is empty. At this stage, it is informational since