Android NDK with Mac (define ANDROID_NDK_ROOT)

4,391 views
Skip to first unread message

Devomat

unread,
Jun 26, 2009, 8:54:04 AM6/26/09
to android-ndk
Hi,

if i run ./host-setup.sh" i get this error:

Please define ANDROID_NDK_ROOT to point to the root of your Android
NDK installation.


But how can i do this on a mac?

I've tried to create a .bash_profile with:
export PATH=${PATH}:/Leopard/Applications/Android_SDK/tools:/Leopard/
Applications/Android_NDK

I've tried to create a .bash_profile with:
ANDROID_NDK_ROOT="/Leopard/Applications/Android_NDK"


but i get the same error:
Please define ANDROID_NDK_ROOT to point to the root of your Android
NDK installation.


Can anyone help me?

David Turner

unread,
Jun 26, 2009, 9:38:09 AM6/26/09
to andro...@googlegroups.com
Try running build/host-setup.sh from the NDK root directory (instead of running ./host-setup.sh from $NDK/build).

Devomat

unread,
Jun 26, 2009, 10:40:17 AM6/26/09
to android-ndk
On 26 Jun., 15:38, David Turner <di...@android.com> wrote:
> Try running build/host-setup.sh from the NDK root directory (instead of
> running ./host-setup.sh from $NDK/build).

that is what i've done exactly... but that isnt the solution.

The setup wants to:

D. Kevin McGrath

unread,
Jun 26, 2009, 10:43:20 AM6/26/09
to andro...@googlegroups.com
bash/sh/zsh:
export ANDROID_NDK_ROOT=/path/to/root

tcsh:
setenv ANDROID_NDK_ROOT /path/to/root

/path/to/root is likely just $NDK in this case.

Mark Fayngersh

unread,
Jun 26, 2009, 12:02:03 PM6/26/09
to andro...@googlegroups.com

Export ANDROID_NDK_ROOT=dirhere

On Jun 26, 2009 7:40 AM, "Devomat" <mat....@googlemail.com> wrote:

On 26 Jun., 15:38, David Turner <di...@android.com> wrote: > Try running build/host-setup.sh from t...

that is what i've done exactly... but that isnt the solution.

The setup wants to:

"Please define ANDROID_NDK_ROOT to point to the root of your Android NDK installation."

--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subs...

Reply all
Reply to author
Forward
0 new messages