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 1405

Summary: README.android misses build instruction: copy SDL_config_android.h -> SDL_config.h
Product: SDL Reporter: Ellie <etc0de>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: philipp.wiesemann
Version: HG 2.0   
Hardware: All   
OS: Android (All)   

Description Ellie 2012-01-29 16:54:57 UTC
The "Building an app" instructions miss an important step, which is copying SDL_config_android.h to SDL_config.h so SDL will use the right compile time settings.

It might be obvious to experts, but I wasted some hours on this ;-) (see #1404) and others might aswell. Please add an instruction for this. Thanks.
Comment 1 Ellie 2012-01-31 11:35:04 UTC
To help with a fix, I'll suggest a wording (see step 2):

================================================================================
 Building an app
================================================================================

Instructions:
1. Copy the android-project directory wherever you want to keep your projects and rename it to the name of your project.
2. Move this SDL directory into the <project>/jni directory and then copy SDL_config_android.h to SDL_config.h inside the include folder
3. Place your application source files in the <project>/jni/src directory
4. Edit <project>/jni/src/Android.mk to include your source files
5. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
Comment 2 Sam Lantinga 2012-01-31 17:55:51 UTC
Thanks for the wording!  This is now fixed.
http://hg.libsdl.org/SDL/rev/2fa7e0540f95
Comment 3 Philipp Wiesemann 2012-07-29 02:36:44 UTC
The copying of the SDL_config_android.h is not needed because on 2012-01-03 SDL_config.h was changed in repository to include SDL_config_android.h if compiled on Android.

Therefore this instruction is not needed (it even was not when added to README on 2012-01-31) and only complicates the process.