Попробовал выполнить следующие действия:
Установил библиотеки
Код: Выделить всё
administrator@astra:~$ sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev libglm-dev
Код: Выделить всё
administrator@astra:~$ sudo apt-get install g++-6 g++
Код: Выделить всё
main.cpp
Код: Выделить всё
#include <GL/glut.h>
void displayMe(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glVertex3f(0.5, 0.0, 0.5);
glVertex3f(0.5, 0.0, 0.0);
glVertex3f(0.0, 0.5, 0.0);
glVertex3f(0.0, 0.0, 0.5);
glEnd();
glFlush();
}
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE);
glutInitWindowSize(400, 300);
glutInitWindowPosition(100, 100);
glutCreateWindow("Hello world!");
glutDisplayFunc(displayMe);
glutMainLoop();
return 0;
}
Код: Выделить всё
administrator@astra:~$ sudo g++ main.cpp -o firstOpenGlApp -lglut -lGLU -lGL
Код: Выделить всё
administrator@astra:/opt$ ./firstOpenGlApp
После манипуляций с библиотеками для AlphaPlatform ситуация не изменилась:
Код: Выделить всё
administrator@astra:/opt/Automiq/Alpha.HMI$ ./alpha.hmi.designer
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Unrecognized OpenGL version
Unrecognized OpenGL version
Код: Выделить всё
administrator@astra:~$ glxinfo | grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 6.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.1.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 18.1.3
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.1.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions: