I'm using CMake 2.8-10 and Android NDK r8e on OSX Lion.CMake Error at CMake/toolchain/android.toolchain.cmake:432 (message):
Could not find neither Android NDK nor Android standalone toolcahin.
You should either set an environment variable:
export ANDROID_NDK=~/my-android-ndk
or
export ANDROID_STANDALONE_TOOLCHAIN=~/my-android-toolchain
or put the toolchain or NDK in the default path:
sudo ln -s ~/my-android-ndk /opt/android-ndk
sudo ln -s ~/my-android-toolchain /opt/android-toolchain
Call Stack (most recent call first):
/Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:89 (include)
CMakeLists.txt:48 (project)
I've added the following to both my ~/.profile and ~/.bash_profile:
When I run $ANDROID_NDK in terminal I get:export ANDROID_NDK="/Applications/android-ndk-r8e"
export PATH=$PATH:$ANDROID_NDK
-bash: /Applications/android-ndk-r8e: is a directory
It also exists in my $PATH.
I've tried rebooting, no luck. I've tried adding it to /opt/android-ndk, no luck. I've tried sudo ln -s ~/my-android-ndk /opt/android-ndk, no luck.
It could be something stupid that I've missed, but I'm out of ideas