Berkay Çit
Berkay Çit

Reputation: 124

arm-linux-androideabi-clang: No such file or directory on OSX

Trying to run this script. It is related with OpenConnect API.

# Build run_pie helper program
#
$(DESTDIR)/sbin/run_pie: run_pie.c $(TOOLCHAIN_BUILT)
    mkdir -p $(DESTDIR)/sbin
    $(TRIPLET)-clang $< -o $@ -ldl

.PHONY: run_pie
run_pie: $(DESTDIR)/sbin/run_pie

Then i get this error message.

arm-linux-androideabi-clang run_pie.c -o 
external/arm/openconnect/android/arm-linux-androideabi/out/sbin/run_pie -ldl

make[1]: arm-linux-androideabi-clang: No such file or directory

make[1]: *** [/external/arm/openconnect/android/arm-linux-androideabi/out/sbin/run_pie] Error 1

I think this problem occurs because i am macOS user.

Upvotes: 1

Views: 2566

Answers (1)

Berkay &#199;it
Berkay &#199;it

Reputation: 124

vi ~/.bash_profile

and writing

export PATH=$PATH:/Users/macbookpro/Developer/toolchain/bin

is worked for me. You have to adjust the path. According the location of toolchain.

By the way toolchain is related with NDK. So you can create toolchain folder with NDK.

Upvotes: 2

Related Questions