Android : Cross compile for NDK with Standalone_toolchain

Thank you, Mato.

Here is my step.
First, here is manual from the file “Android.cmake”

mkdir build; cd build
cmake …; make
mkdir android; cd android
cmake -DLLVM_ANDROID_TOOLCHAIN_DIR=/path/to/android/ndk
-DCMAKE_TOOLCHAIN_FILE=…/…/cmake/platforms/Android.cmake …/…
make

(1) Download ROOT tar.gz package and extract to a Windows folder.
(2) mkdir build --> mkdir: cannot create directory ‘build’: File exists, ok, do not mind.
(3) cd build —> success
(4) cmake …; make

– Building for: Visual Studio 14 2015
– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:5 (project):
No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:5 (project):
No CMAKE_CXX_COMPILER could be found.

– Configuring incomplete, errors occurred!
See also “D:/local/MyDevelop/Android/tmp/root-6.04.18/build/CMakeFiles/CMakeOutput.log”.
See also “D:/local/MyDevelop/Android/tmp/root-6.04.18/build/CMakeFiles/CMakeError.log”.

errors… why ?
ok, let’s ignore it …

(5)mkdir android --> success
(6)cd android --> success
(7)cmake -DLLVM_ANDROID_TOOLCHAIN_DIR=/path/to/android/ndk -DCMAKE_TOOLCHAIN_FILE=…/…/cmake/platforms/Android.cmake …/…
—> Error…

– Building for: Visual Studio 14 2015
CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeDetermineSystem.cmake:94 (message):
Could not find toolchain file: …/…/cmake/platforms/Android.cmake
Call Stack (most recent call first):
CMakeLists.txt:5 (project)

– Configuring incomplete, errors occurred!

… I can not do same with manual.

Can you help it ?