cocos2d / cocos2d-x-3rd-party-libs-src

Dependencies of cocos2d-x.
142 stars 169 forks source link

Command not found #179

Open JethroSovr opened 5 years ago

JethroSovr commented 5 years ago

/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!

JethroSovr commented 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

JethroSovr commented 5 years ago

_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

Use Clang for OSX host. 直接采用默认gcc

ifeq (Darwin,$(HOST_SYS))

DEFAULT_CC= clang

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._