生成cocos2dx 2.2.6 TestCpp例子 android工程遇到的问题(3)
发布时间:2020-12-14 20:44:42 所属栏目:百科 来源:网络整理
导读:问题: **** Build of configuration Default for project TestCpp **** bash D:/2.2.6/cocos2d-x-2.2.6/samples/Cpp/TestCpp/proj.android/build_native.sh NDK_ROOT not defined. Please define NDK_ROOT in your environment or in local.properties ****
问题: **** Build of configuration Default for project TestCpp **** bash D:/2.2.6/cocos2d-x-2.2.6/samples/Cpp/TestCpp/proj.android/build_native.sh NDK_ROOT not defined. Please define NDK_ROOT in your environment or in local.properties **** Build Finished **** NDK_ROOT not defined. Please define NDK_ROOT in your environment or in local.properties 解决: 就是NDK_ROOT 没有找到,但是我明明已经定义了,实在没办法,只能在 build_native.sh里面加了
# paths NDK_ROOT=/cygdrive/e/worksoft/android-ndk-r9d //新加 if [ -z "${NDK_ROOT+aaa}" ];then echo "NDK_ROOT not defined. Please define NDK_ROOT in your environment or in local.properties" exit 1 fi (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |