coco2dx编译到android出现please define NDK_ROOT解决办法

/buile_native.sh出现please define NDK_ROOT异常

解决办法:在D:\cocos2d-2.1beta3-x-2.1.1\template\android的build_native.sh文件中找到

# paths
if [ -z "${NDK_ROOT+aaa}" ];then
echo "please define NDK_ROOT"
exit 1
fi

改成:

# paths
NDK_ROOT="/cygdrive/d/android-ndk-r8d"
if [ -z "${NDK_ROOT+aaa}" ];then
echo "please define NDK_ROOT"
exit 1
fi

你可能感兴趣的:(define,cocos2d-x,NDK_ROOT)