taka-no-me / android-cmake

CMake toolchain file and other scripts for the Android NDK
1.22k stars 437 forks source link

on Mac 64-bit OS X, with a 64-bit NDK, ANDROID_NDK_HOST_X64 must be set explicitly #10

Closed alexcohn closed 10 years ago

alexcohn commented 10 years ago

On Mac 64-bit OS X, with a 64-bit NDK, if ANDROID_NDK_HOST_X64 is not set explicitly, cmake fails on line 702. The reason is that CMAKE_HOST_SYSTEM_PROCESSOR=i386.

It could be enough to add a Mac section to the instructions, but I see no risk in looking for "darwin-x86_64" and "darwin-x86" even if the script cannot detect the 64-bit host.

taka-no-me commented 10 years ago

Thanks for reporting.