I have been trying to compile PHP for Android ARM devices for the past 2 weeks. I think I'm halfway there to successfully compiling it.Here is what I did :Download Android NDK (android-ndk-r10e) & made toolchain (arm-linux-androideabi, platform 21)Downloaded PHP 7.0.10 source codeSet up environmentexport PATH=/media/simsu/hello/Android/arm-linux-androideabi-4.9/bin:$PATHexport SYSROOT=/media/simsu/hello/Android/arm-linux-androideabi-4.9export CC=arm-linux-androideabi-gcc --sysroot=$SYSROOTexport CXX=arm-linux-androideabi-g++ --sysroot=$SYSROOTexport CFLAGS=-staticRan./configure --host=arm-linux-androideabi --disable-all --prefix=$(`echo realpath '../output'`)Ran makeBut it caused an error : http://pastebin.com/HXJ20sAKI have tried replacing sysroot with arm-linux-gnueabi's, but that didn't work.I have also tried cross compiling it with arm-linux-gnueabi, the compilation finished, but the binary didn't run on Android because.My host system is (uname -a) :Linux simsu-veriton-series 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:06:14 UTC 2016 i686 athlon i686 GNU/LinuxUPDATE : Tried to compile with the new SDK android-ndk-r12b on a 64 bit host system. But, same error.
Cross Compiling PHP For Android ARM
linux;compiling;android;cross compilation