OpenGL ES 2.0 SDK on ODROID-C1

Locked
User avatar
odroid
Site Admin
Posts: 33340
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 385 times
Been thanked: 454 times
Contact:

OpenGL ES 2.0 SDK on ODROID-C1

Unread post by odroid » Tue Dec 30, 2014 3:55 pm

Here is a brief guide to run the ARM's official Mali OpenGL ES SDK on our Ubuntu OS.

1. Download the SDK from ARM homepage. (I've tested with SDK V2.4.4, Linux x86 Archive [TGZ] )
http://malideveloper.arm.com/develop-fo ... for-linux/

2. Uncompress the SDK.

Code: Select all

tar xvfz Mali_OpenGL_ES_SDK_v2.4.4...............tar.gz 

Code: Select all

cd Mali_OpenGL_ES_SDK_v2.4.4/ 
2. Modify source code and configure a CMake. This tricky changes are only for the native build.
<a> Edit ./CMakeLists.txt (Line 84)

Code: Select all

set(LIB_DIR "/usr/lib/arm-linux-gnueabihf/mali-egl")


<b> Add "#undef __arm__" on the 3rd line in ./inc/EGL/eglplatform.h

Code: Select all

#ifndef __eglplatform_h_
#define  __eglplatform_h_
#undef __arm__
<c> Remove two OpenGL ES 3.x related lines in ./samples/CMakeLists.txt
There must be only 1 line after changing, because ODROID-C1 can't support OpenGL-ES 3.x.

Code: Select all

add_subdirectory(opengles_20)

3. Build library and samples.

Code: Select all

export TOOLCHAIN_ROOT=/usr/bin/
cmake -G "Unix Makefiles" -DTARGET=emulator 
make –j4


Now you can run a few nice samples in "./samples/opengles_20/". Let's learn and develop the OpenGL ES 2.0 3D applications.

Shadow map example
shadow_map.png
shadow_map.png (212.01 KiB) Viewed 8425 times
Cube example
cube.png
cube.png (63.98 KiB) Viewed 8425 times

Locked

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest