Update information of the topic "Error GLSL 1.50 is not supported"

Hello everybody,

I come back to the topic “Error: GLSL 1.50 is not supported”.
The error “GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES” is generated when the context OpenGL must be initialized.

I use VTK 8.0. Information on my computer is
OS Ubuntu 16.04.

glxinfo | grep -i version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Version: 18.0.5
Max core profile version: 3.3
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.0
OpenGL version string: 3.0 Mesa 18.0.5
OpenGL shading language version string: 1.30

A simplified version of my program is

#include “vtkActor.h”
#include “vtkRenderer.h”
#include “vtkPolyData.h”
#include “vtkPolyDataMapper.h”
#include “vtkProperty.h”
#include <vtkRenderingOpenGL2Module.h>
#include <vtkInteractionStyleModule.h>
#include <vtkGenericDataObjectReader.h>
#include
#include <QVTKOpenGLWidget.h>
#include <vtkGenericOpenGLRenderWindow.h>
#include <vtkCubeSource.h>
#include <vtkAutoInit.h>

VTK_MODULE_INIT (vtkRenderingOpenGL2);
VTK_MODULE_INIT (vtkInteractionStyle);

int main(int argc, char** argv)
{
QApplication app( argc, argv );
QVTKOpenGLWidget widget;
widget.resize(640,384);

vtkGenericOpenGLRenderWindow *renderWindow = vtkGenericOpenGLRenderWindow::New();

vtkRenderer *renderer = vtkRenderer::New();
vtkCubeSource cubeSource = vtkCubeSource::New();
vtkPolyDataMapper
g_mapper = vtkPolyDataMapper::New();
g_mapper->SetInputConnection(cubeSource->GetOutputPort());

vtkActor *actor = vtkActor::New();
actor ->SetMapper(g_mapper);
actor->GetProperty()->SetColor (1,0,0);
actor->GetProperty()->SetRepresentationToSurface();

renderer->AddActor(actor);
renderer->SetBackground(0.2, 0.4, 0.8);

renderWindow->AddRenderer(renderer);

widget.SetRenderWindow(renderWindow);
widget.show();
app.exec();

renderWindow->Delete();
renderer->Delete();
actor->Delete();
g_mapper->Delete();

return 0;
}

Any suggestion is appreciated.