Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command not found #179

Open
JethroSovr opened this issue Aug 6, 2019 · 2 comments
Open

Command not found #179

JethroSovr opened this issue Aug 6, 2019 · 2 comments

Comments

@JethroSovr
Copy link

/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
Copy link
Author

(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
Copy link
Author

JethroSovr commented Aug 6, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant