Open JethroSovr opened 5 years ago
(cd LuaJIT-2.1.0-beta3 && patch -fp1) < ../../contrib/src/luajit/luajit-v2.1.0-beta3.patch patching file src/luaconf.h mv LuaJIT-2.1.0-beta3 luajit && touch luajit cd luajit && /Applications/Xcode.app/Contents/Developer/usr/bin/make -j8 HOST_CC="gcc -m64 -O3 -DNDEBUG" CROSS=aarch64-linux-android- CC=clang TARGET_SYS=Linux TARGET_FLAGS="-fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -I/Users/admin/git/cp/cocos2d-x-3rd-party-libs-src-origin/contrib/install-android/arm64/include -no-canonical-prefixes -L/Users/admin/git/cp/cocos2d-x-3rd-party-libs-src-origin/contrib/install-android/arm64/lib" ==== Building LuaJIT 2.1.0-beta3 ==== /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found Makefile:268: Unsupported target architecture. Stop. make[1]: [default] Error 2 make: *** [.luajit] Error 2
HOST_SYS= Windows HOST_RM= del else HOST_SYS:= $(shell uname -s) ifneq (,$(findstring MINGW,$(HOST_SYS))) HOST_SYS= Windows HOST_MSYS= mingw endif ifneq (,$(findstring CYGWIN,$(HOST_SYS))) HOST_SYS= Windows HOST_MSYS= cygwin endif
endif
I see solutions Online. But when i see the luajit/src/Makefile
The code is : ifeq (Windows,$(findstring Windows,$(OS))$(MSYSTEM)$(TERM)) HOST_SYS= Windows HOST_RM= del else HOST_SYS:= $(shell uname -s) ifneq (,$(findstring MINGW,$(HOST_SYS))) HOST_SYS= Windows HOST_MSYS= mingw endif ifneq (,$(findstring CYGWIN,$(HOST_SYS))) HOST_SYS= Windows HOST_MSYS= cygwin endif endif
It should be work fine on OSX. But now it doesnt work._
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src make[2]: arm-linux-androideabi-clang: Command not found make[2]: arm-linux-androideabi-clang: Command not found make[2]: arm-linux-androideabi-clang: Command not found make[2]: arm-linux-androideabi-clang: Command not found make[2]: arm-linux-androideabi-clang: Command not found make[2]: arm-linux-androideabi-clang: Command not found Makefile:268: Unsupported target architecture. Stop. make[1]: [default] Error 2 make: *** [.luajit] Error 2
==== Building LuaJIT 2.1.0-beta3 ==== /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found make[2]: aarch64-linux-android-clang: Command not found Makefile:268: Unsupported target architecture. Stop. make[1]: [default] Error 2 make: *** [.luajit] Error 2
ndk version:android-ndk-r10e osx: 10.13.6 I used osx to build LuaJIT 2.1.0-beta3, Can someone help me make it run normally. Thanks!