为Android构建LuaJIT。 NDK。视窗

时间:2015-03-16 23:17:28

标签: windows android-ndk luajit

我无法在Windows下构建适用于Android的LuaJIT。这是我的批处理文件。

set NDK=c:/android-ndk-r10d
set NDKABI=14
set NDKVER=%NDK%/toolchains/arm-linux-androideabi-4.6
set NDKP=%NDKVER%/prebuilt/windows/bin/arm-linux-androideabi-
set NDKF=--sysroot %NDK%/platforms/android-%NDKABI%/arch-arm
set NDKARCH=-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8
make HOST_CC="gcc -m32" CROSS="%NDKP%" TARGET_FLAGS="%NDKF% %NDKARCH%"

输出:

C:\LuaJIT-2.0.3\src>set NDK=c:/android-ndk-r10d
C:\LuaJIT-2.0.3\src>set NDKABI=14
C:\LuaJIT-2.0.3\src>set NDKVER=c:/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6
C:\LuaJIT-2.0.3\src>set NDKP=c:/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-
C:\LuaJIT-2.0.3\src>set NDKF=--sysroot c:/android-ndk-r10d/platforms/android-14/arch-arm
C:\LuaJIT-2.0.3\src>set NDKARCH=-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8
C:\LuaJIT-2.0.3\src>make HOST_CC="gcc -m32" CROSS="c:/android-ndk-r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-" TARGET_FLAGS="--sysroot c:/android-ndk-r10d/platforms/android-14/arch-arm -march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
"HOSTCC    host/minilua.o"
process_begin: CreateProcess(NULL, gcc -m32 -O2 -fomit-frame-pointer -Wall -I. -DLUAJIT_TARGET=LUAJIT_ARCH_arm -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=1 -c -o host/minilua.o host/minilua.c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [host/minilua.o] Error 2

感谢任何帮助。

0 个答案:

没有答案