How is OpenGL ES 3.1 retrieved on JTX1

Errors occur while making the sample below:
ubuntu@tegra-ubuntu:~/NVIDIA_CUDA-8.0_Samples/5_Simulations/nbody_opengles$ make

WARNING - libGLES.so not found, please install libGLES.so <<<
WARNING - egl.h not found, please install egl.h <<<
WARNING - eglext.h not found, please install eglext.h <<<
WARNING - gl31.h not found, please install gl31.h <<<

#1 Apparently, OpenGL ES 3.1 is missing. I have no idea how to choose mesa and tegra? An installation checklist is desired.

#2 warning egl is not found, but it can be found below:
ubuntu@tegra-ubuntu:~$ apt-cache search libegl
libegl1-mesa - free implementation of the EGL API – runtime
libegl1-mesa-dev - free implementation of the EGL API – development files
so, it seems mesa is preferable to tegra. Is it right? Need a complete tegra-like opengl packages be post installed?

Hi,

Thanks for your problem, we are trying to clarify this issue now.
Will update information later.

There still is the problem as above. Waiting for a solution:)

Hi,

Sorry for the late reply, please try following command:

sudo apt-get install libegl1-mesa-dev
sudo apt-get install libgles2-mesa-dev
cd /usr/lib/aarch64-linux-gnu/
sudo ln -sf tegra-egl/libEGL.so libEGL.so

This will fix missing header issue and also make sure tx1 link to the correct library.(tegra-egl/libEGL.so)

U r right. Thx