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 3999

Summary: Build failed when try to build with configure script for Android
Product: SDL Reporter: Andrii Hontarenko <andrii.hontarenko>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: andrii.hontarenko
Version: 2.0.7   
Hardware: ARM   
OS: Android (All)   
Attachments: Patch that fixes my issues with build for Android.

Description Andrii Hontarenko 2017-12-11 21:08:50 UTC
Created attachment 3113 [details]
Patch that fixes my issues with build for Android.

I am building with following commands:
./configure --prefix=${PREFIX_PATH} CC="${CROSS_COMPILER}gcc" AR="${CROSS_COMPILER}ar" RANLIB="${CROSS_COMPILER}ranlib" --host=arm-linux-androideabi
make clean
make -j${BUILD_THREADS}
make install

where CROSS_COMPILER is following:
arm-linux-androideabi-gcc (GCC) 4.9.x 20150123 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I had couple of errors related to undefined symbol Android_AddHaptic and Android_RemoveHaptic, and some other, when I resolved first part.
Please, take a look into patch in the attachments. This patch helps me to fix issues with build. Maybe it will be useful.
Please, let me know if I am doing something wrong.
Thanks.
Comment 1 Sam Lantinga 2017-12-11 22:48:55 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/5c8fc26757d7