Skip to content

Instantly share code, notes, and snippets.

@zhaozg
Created November 3, 2016 06:07
Show Gist options
  • Save zhaozg/52734577acc996544ef6970b688ab874 to your computer and use it in GitHub Desktop.
Save zhaozg/52734577acc996544ef6970b688ab874 to your computer and use it in GitHub Desktop.
build luajit for android on windows with NDK
PATH=/e/PortableDev/mingw32/bin:$PATH
NDK=/d/server/android/android-ndk-r10e
NDKABI=19
NDKVER=$NDK/toolchains/arm-linux-androideabi-4.9
NDKP=$NDKVER/prebuilt/windows-x86_64/bin/arm-linux-androideabi-
NDKF="--sysroot=$NDK/platforms/android-$NDKABI/arch-arm"
make HOST_CC="/e/PortableDev/mingw32/bin/gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET_SYS=LINUX clean default install
@sonyps5201314
Copy link

sonyps5201314 commented Apr 23, 2018

你这个gist坑死人了,会导致luaL_openlibs内部执行出错,是TARGET_SYS=Linux,而不是TARGET_SYS=LINUX,弄起我调试了两天都找不到运行出错的原因,坑爹啊。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment