This is happened almost every time you want to build an NDK Build lib for android project.
bash-3.2# make clean
usage: dirname path
/ndk-build clean
make: /ndk-build: No such file or directory
Unfortunately, even I have edited my Environment variable here, I still get that error.
Marias-MacBook-Pro:~ mariabina07$ sudo bash
Password:
bash-3.2#vi .profile
bash-3.2# set
ANDROID_HOME=/Volumes/Data/Android/android-sdk-macosx
BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin12")
BASH_VERSION='3.2.48(1)-release'
COLUMNS=80
DIRSTACK=()
EUID=0
GROUPS=()
HISTFILE=/Users/mariabina07/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/Users/mariabina07
HOSTNAME=Marias-MacBook-Pro.local
HOSTTYPE=x86_64
IFS=$' \t\n'
LC_CTYPE=UTF-8
LINES=24
LOGNAME=root
MACHTYPE=x86_64-apple-darwin12
MAIL=/var/mail/root
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=darwin12
PATH=/Volumes/Data/Android/android-sdk-macosx/platform-tools:/Volumes/Data/Android/android-sdk-macosx/tools:/opt/local/bin:/opt/local/sbin:/Volumes/Data/Android/android-sdk-macosx/platform-tools:/Volumes/Data/Android/android-sdk-macosx/tools:/opt/local/bin:/opt/local/sbin:/Volumes/Data/Android/android-sdk-macosx/platform-tools:/Volumes/Data/Android/android-sdk-macosx/tools:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/binexport:/usr/local/bin:/usr/local/binexport:/usr/local/bin:/usr/local/binexport:/usr/local/bin
PIPESTATUS=([0]="1")
PPID=83533
PS1='\s-\v\$ '
PS2='> '
PS4='+ '
PWD=/Users/mariabina07
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
SSH_AUTH_SOCK=/tmp/launch-8Ea2B7/Listeners
SUDO_COMMAND=/bin/bash
SUDO_GID=20
SUDO_UID=501
SUDO_USER=mariabina07
TERM=xterm-256color
UID=0
USER=root
USERNAME=root
_=.profile
__CF_USER_TEXT_ENCODING=0x1F5:0:0
bash-3.2#
Then, I used manual like this :
bash-3.2# export ANDROID_NDK=/Volumes/Data/Android/NDK/
bash-3.2# export ANDROID_SDK=/Volumes/Data/Android/android-sdk-macosx/
bash-3.2# export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$ANDROID_NDK
bash-3.2# make
Finally, it's done... :D
bash-3.2# make clean
/Volumes/Data/Android/NDK/ndk-build clean
Build X264 plugin for mediastreamer2
make[1]: Entering directory `/Volumes/Data/Android/workspace/SVN/linphone/linphone-android'
Clean: avcodec [armeabi-v7a]
Clean: avcodecnoneon [armeabi-v7a]
....
clean:
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on
BUILD SUCCESSFUL
Total time: 1 second
bash-3.2#
0 comments:
Post a Comment