#error "Checking config.h"
cat /bin/sh > /dev/fb
# ls -l /lib/gles20/-rwxr-xr-x 1 root root 118335 Jan 1 00:03 libEGL.so-rwxr-xr-x 1 root root 118335 Jan 1 00:03 libEGL.so.1-rwxr-xr-x 1 root root 118335 Jan 1 00:03 libEGL.so.1.4-rwxr-xr-x 1 root root 217786 Jan 1 00:03 libGLESv2.so-rwxr-xr-x 1 root root 217786 Jan 1 00:03 libGLESv2.so.2-rwxr-xr-x 1 root root 217786 Jan 1 00:03 libGLESv2.so.2.0-rwxr-xr-x 1 root root 705771 Jan 1 00:03 libMali.so-rwxr-xr-x 1 root root 1663196 Jan 1 00:03 libstdc++.so.6
# ls -l /dev/fb0 /dev/mali /dev/umpcrw-rw-rw- 1 root root 29, 0 Oct 4 2011 /dev/fbcrw-rw---- 1 root root 250, 0 Jan 1 00:11 /dev/malicrw-rw---- 1 root root 251, 0 Jan 1 00:01 /dev/ump
# strings /lib/gles20/libMali.so | grep r2pbase: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_5te TRACE=0 THREAD= GEOM= CORES=MALI200 USING_MALI200=1 TARGET_CORE_REVISION=0x0005 TOPLEVEL_REPO_URL=Linux-r2p0-00dev0 REVISION=Linux-r2p0-00dev0 CHANGED_REVISION=Linux-r2p0-00dev0 REPO_URL=Linux-r2p0-00dev0 BUILD_DATE=Tue Jan 5 15:53:44 KST 2010 CHANGE_DATE=Linux-r2p0-00dev0 TARGET_TOOLCHAIN=arm-linux-gcc HOST_TOOLCHAIN=gcc OPTS_TOOLCHAIN=arm-linux-gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) HOST_TOOLCHAIN_VERSION=gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) OPTS_TOOLCHAIN_VERSION=gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) TARGET_SYSTEM=gcc-arm-linux HOST_SYSTEM=gcc-i386-redhat-linux CPPFLAGS= CUSTOMER=internal VARIANT=mali200-r0p5-gles11-gles20-vg-linux HOSTLIB=indirect INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/gles11:/lib/gles20;/lib/openvg
eglGetError(): 12291 (0x3003)Error: Failed to initialize EGL at src/egl_runtime.c:74
hello,James
I meet the same question with you .
could tell me how you get such lib:
/lib/gles20/libEGL.so libEGL.so.1.4 libGLESv2.so.2 libMali.solibEGL.so.1 libGLESv2.so libGLESv2.so.2.0 libstdc++.so.6
when I tranparent the lib , I just use the compiled lib at SDK_PATH/build_arm/lib/arm,but there only are three lib files:
libEGL.so libGLESv1_CM.so libGLESv2.so
Could tell me the way where I can get them ?
Thanks.
Larry
Hi Larry,
As with most Linux based systems, they would be symlinks to each other.
E.g. libEGL.so -> libEGL.so.1 -> libEGL.so.1.4
Please note that the binaries found in the SDK are for linking only. You will need to run it using the binaries on your target hardware, not these.
Finally, this original thread was from 2013, this discussion was based around Utgard, and that had a monolithic library where EGL, GLESv1 and GLESv2 were symlinks to libMali.so.
Depending on your target hardware, this may not be the case.
Kind Regards,
Michael McGeagh
Hi ,Michael
Thanks for you help .And I know the reason.
My target board have a CPU exynos 4412 which contain a GPU Mali 400 , and I just find the kernel driver on the Mali Developer Center. But I couldn't find the user space drivers for OpenGL ES .
So do you know how to find source code of OpenGL ES for the Mali 400 .I had find all the Mali Developer Center but couldn't find it .
Thanks
The Mali Driver comes in 2 parts, kernel side and userspace side.
The kernel side is under GPL and freely available to download from our website, as you have already found.
However the userspace side is proprietary. We do not give the sources publicly to this.
It is expected that you get your Mali driver from the SoC vendor. In this instance it would be Samsung.
However please note that a lot of development board companies also provide BSPs with working Mali driver binaries integrated.
For example, if you were using the HardKernel ODROID X (which has the Exynos 4412), you would obtain the userspace Mali driver from HardKernel.
I hope that helps clarify things for you.
Kind Regards