25 Oct 2014

Enable hardware support for libegl for tegra2

How to enable hardware support for libEGL for Tegra 2 Linux?

I am trying to run my OpenGL ES application Ubuntu 11.04 installed on Harmony developer board (Tegra 2), however when I use packages:
libegl1-mesa, libegl1-mesa-dev, libegl1-mesa-drivers
libgles2-mesa, libgles2-mesa-dev
application reports:
libEGL warning using software fallback
I was getting the same message when I tried to start example provided in package mesa-utils-extra called /usr/bin/es2gears but after updating drivers:
cd Linux_for_Tegramv /usr/lib/libGLESv2.so /usr/lib/libGLESv2.so.2
ln -s /usr/lib/libEGL.so.1 /usr/lib/libEGL.so
ln -s /usr/lib/libGLESv2.so.2 /usr/lib/libGLESv2.so
and creating symlinks like in "Tegra Linux Driver Package Developers Guide"
mv /usr/lib/libEGL.so /usr/lib/libEGL.so.1

I am able to start es2gears using hardware acceleration (2x faster).
My question is where can I get development packages that use appropriate libEGL.so and libGLESv2.so libraries so I can compile my application?
Ans: Toradex provides Linux Samples for OpenGL ES for the Nvidia Tegra:
The libraries are included in the Linux images:

No comments:

Post a Comment