NDK_ROOT 在 ubuntu14.04 中找不到 cocos2d-x

NDK_ROOT not found cocos2d-x in ubuntu14.04

我在 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`

问题是我不知道 the NDK_ROOTANDROID_SDK_ROOTANT_ROOT 在哪里。

如果你对ndk、android-sdk和Ant路径不清楚我建议你下载它们并解压到一个安全的地方。 然后重新启动 setup.py 并使用每个安装的已知路径。

您可以在这里下载它们: