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 - Does not compile on Android
Summary: Does not compile on Android
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: ARM Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 06:31 UTC by Giuseppe
Modified: 2012-01-11 07:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!