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 - Build failed when try to build with configure script for Android
Summary: Build failed when try to build with configure script for Android
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.7
Hardware: ARM Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-11 21:08 UTC by Andrii Hontarenko
Modified: 2017-12-11 22:48 UTC (History)
1 user (show)

See Also:


Attachments
Patch that fixes my issues with build for Android. (1020 bytes, patch)
2017-12-11 21:08 UTC, Andrii Hontarenko
Details | Diff

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