Open GL ES 3 example? (Jetson TK1)

I am trying to figure out how to compile an Open GL ES 3 app on the Jetson TK1

I see these libs but where can I find the headers? I am afraid to use apt-get as I don’t want to overwrite the nvidia drivers.

/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so.2
/usr/lib/arm-linux-gnueabihf/mesa-egl/libGLESv2.so.2.0.0
/usr/lib/arm-linux-gnueabihf/tegra-egl/libGLESv1_CM.so.1
/usr/lib/arm-linux-gnueabihf/tegra-egl/libGLESv2.so.2

bump!

i’m also trying compile software with egl / glesv2.

checking for main in -lEGL... no
checking for main in -lGLESv2... no

any help? nvidia?

I just ported WebGL (GLESv3) / Javascript Code to the Jetson, using C++ with GLEW and GLUT (and the basic OpenGL). I found this to be basically the same, there are really just a few minor differences in syntax and semantics. If you can’t wait for “real” GLES libraries, you could give this approach a try.

Unfortunately, I am forced to wait - I’m trying to compile XBMC Gotham, but I received this error. Added the --disable-gles, unfortunately, does not help.

hi jvcleave,

The gles v2 libraries present in tegra-egl location can be used to compile against opengles 3.0 code. There is no separate library for opengl es 3 and 2. I have tested few applications using these libraries. But you will need to install the headers manually, as they are not provided in any L4T package. Use the following command to install the headers (and libraries as well).

sudo apt-get install libgles2-mesa-dev

Try using the following flags during compiling.

gcc main.c -L/usr/lib/arm-linux-gnueabihf/tegra-egl/ -lGLESv2 -lEGL