We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1367

Summary: Does not compile on Android
Product: SDL Reporter: Giuseppe <giuseppe>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: giuseppe
Version: HG 2.0   
Hardware: ARM   
OS: Android (All)   

Description Giuseppe 2012-01-10 06:31:05 UTC
Hi,

I'm trying to compile sdl (hg 1.3) on Android, but it fails with:


Compile thumb  : sdl <= SDL_render_gles.c
In file included from /home/giuseppe/workspace/FPlayer/jni/sdl/src/render/opengles/SDL_render_gles.c:175:
/home/giuseppe/workspace/FPlayer/jni/sdl/src/render/opengles/SDL_glesfuncs.h: In function 'GLES_LoadFunctions':
/home/giuseppe/workspace/FPlayer/jni/sdl/src/render/opengles/SDL_glesfuncs.h:10: error: 'glDrawTexiOES' undeclared (first use in this function)
/home/giuseppe/workspace/FPlayer/jni/sdl/src/render/opengles/SDL_glesfuncs.h:10: error: (Each undeclared identifier is reported only once
/home/giuseppe/workspace/FPlayer/jni/sdl/src/render/opengles/SDL_glesfuncs.h:10: error: for each function it appears in.)
make: *** [/home/giuseppe/workspace/FPlayer/obj/local/armeabi-v7a/objs/sdl/src/render/opengles/SDL_render_gles.o] Error 1
Comment 1 Giuseppe 2012-01-10 06:42:43 UTC
Ok, this is specific with Android NDK r7, see https://groups.google.com/group/android-ndk/browse_thread/thread/2278a9f52162459b

NDK r7 comes with updated versions of the GLES headers from Khronos. I 
guess there is something in the new headers.
Comment 2 Sam Lantinga 2012-01-10 18:21:02 UTC
I believe this is fixed, can you try the latest version?
http://hg.libsdl.org/SDL/rev/291fea716f09
Comment 3 Giuseppe 2012-01-11 00:12:37 UTC
Yes, -DGL_GLEXT_PROTOTYPES fixed the issue
Comment 4 Sam Lantinga 2012-01-11 07:32:47 UTC
Great, thanks!