This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM437X: OpenGL build fails

Part Number: PROCESSOR-SDK-AM437X

Hi all,

I have a custom board based on am437x-gp-evm. I am using ti-rt-Linux SDK,  Processor SDK Linux for AM437x v04.02.00.09. I want to compile an OpenGL application for the target board but I am not able to build it. the error follows is:

arm-linux-gnueabihf-g++  test.cpp -o am335x_part1 -lGL -lGLU -lglut
test.cpp:1:21: fatal error: GL/glut.h: No such file or directory
compilation terminated.

The sample program I am compiling is :

	
#include <GL/glut.h>

void display(void)
{
  glClearColor(0,0,0,0);
  glClear(GL_COLOR_BUFFER_BIT);

  glBegin(GL_TRIANGLES);
  {
    glColor3f(1,0,0);
    glVertex2f(0,0);

    glColor3f(0,1,0);
    glVertex2f(.5,0);

    glColor3f(0,0,1);
    glVertex2f(.5,.5);
  }
  glEnd();

  glutSwapBuffers();
}

void reshape(int w, int h)
{

}

int main(int argc, char **argv) {
  glutInit(&argc, argv);
  
  glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);  
  glutInitWindowPosition(200,200);
  glutInitWindowSize(320,240);
  glutCreateWindow("Part 1");
  glutDisplayFunc(display);
  glutReshapeFunc(reshape);
  
  glutMainLoop();

  return 0;
}

I have compiled programmes based on OpenGL-ES, but I want to know if OpenGL and glut support is there for this platform?

How can I build the OpenGL application?

best regards,

Vimal Kumar