-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Trying to compile for Android by existing way gives no result, and article needs to be updated:
- Latest Android NDK does using of CLang
- Attempt to compile REQUIRES complete multilib be installed into 64-bit system, otherwise, will not work with strong errors
- Given toolchains are now 64-bit only
- Oldest available ABI is 16
It's my attempt to compile for ARMv7 as example:
#!/bin/bash
# Android/ARM, armeabi-v7a (ARMv7 VFP)
NDK=/home/${USER}/Android/Sdk/ndk-bundle
NDKABI=16
NDKVER=$NDK/toolchains/llvm
NDKP=$NDKVER/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi$NDKABI-
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
NDKARCH="-march=armv7-a -mfloat-abi=softfp"
make DEFAULT_CC=clang HOST_CC="clang -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH"
I think the manual here http://luajit.org/install.html is VERY outdated and needs to be actualized...
It's good that I using in my project the PUC-Rio lua as a fallback for target platforms where LuaJIT can't be built.
The question: what wrong in my script if I it's my fault?
Currently, I have error of missing <string.h>
while building, possibly, because of missing or incorrect include path...