我在 Linux 上使用 cocos2d-x 3.6 版时遇到问题。
我想使用 this 上找到的信息创建一个新的控制台项目页。
当我使用命令./setup.py
时,我收到以下消息:
`Check environment variable NDK_ROOT ->Search for environment variable NDK_ROOT... ->NDK_ROOT not found
->Search for command ndk-build in system... ->Command ndk-build not found
->Please enter the path of NDK_ROOT (or press Enter to skip): ->Check environment variable ANDROID_SDK_ROOT
->Search for environment variable ANDROID_SDK_ROOT... ->ANDROID_SDK_ROOT not found
->Search for command android in system... ->Command android not found
->Please enter the path of ANDROID_SDK_ROOT (or press Enter to skip): ->Check environment variable ANT_ROOT ->Search for environment variable ANT_ROOT... ->ANT_ROOT not found
->Search for command ant in system... ->Command ant not found
->Please enter the path of ANT_ROOT (or press Enter to skip):
Please execute command: "source /home/jmuniz/.bashrc" to make added system >variables take effect`
问题是我不知道NDK_ROOT
、ANDROID_SDK_ROOT
和ANT_ROOT
在哪里。
最佳答案
如果您不确定 ndk、android-sdk 和 Ant 路径,我建议您下载它们并将其解压缩到安全位置。 然后再次重新启动setup.py并使用每次安装的已知路径。
您可以在这里下载:
关于android - 在ubuntu14.04中找不到NDK_ROOT cocos2d-x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31477616/