Issue with openGL in Android

65 views
Skip to first unread message

Macarse

unread,
May 10, 2012, 8:35:32 PM5/10/12
to itoa-dev
I just pushed a new branch to my project: https://github.com/Macarse/itoa-test/tree/openGL

When I build it, I get:

In file included from /Users/macarse/Documents/itoa/itoa/itoa-test/jni/
cocos2d/../cocos2dx/platform/CCGL.h:74,
from /Users/macarse/Documents/itoa/itoa/itoa-test/jni/
cocos2d/portIncludes/ccTypes.h:32,
from /Users/macarse/Documents/itoa/itoa/itoa-test/jni/
cocos2d/CCAction.h:31,
from /Users/macarse/Documents/itoa/itoa/itoa-test/jni/
cocos2d/CCActionManager.h:30,
from /Users/macarse/Documents/itoa/itoa/itoa-test/jni/
cocos2d/cocos2d.h:52,
from /Users/macarse/Documents/itoa/itoa/itoa-test/jni/
cocos2d/cocos2d.mm:28:
/Users/macarse/Documents/itoa/itoa/ndk/platform/arch-arm/usr/include/
GLES/gl.h:592: error: expected initializer before 'glAlphaFunc'
/Users/macarse/Documents/itoa/itoa/ndk/platform/arch-arm/usr/include/
GLES/gl.h:593: error: expected initializer before 'glClearColor'

The complete log about openGL: http://pastebin.com/ffiCqQUT

gl.h is wrong? It doesn't make sense :(

Macarse

unread,
May 10, 2012, 8:42:36 PM5/10/12
to itoa-dev
Well, replacing the existing ".h" with the ones from the ndk-7 fixed
the issue.

cp path/android-ndk-r7/platforms/android-9/arch-arm/usr/include/GLES/
gl* .

Where did the original came from?

Cheers,
C
Reply all
Reply to author
Forward
0 new messages