build_native.py命令给出错误Cocos2d-x

时间:2014-09-17 16:25:36

标签: android python cocos2d-x

我在Cocos2d-x 3中创建了新项目。当我运行build_native.py时会出现以下错误

The Selected NDK toolchain version was 4.8 !
make.exe: *** F:\My: No such file or directory.  Stop.
Traceback (most recent call last):
File "F:\My Projects\cocos2d\TestGame\proj.android\build_native.py", line 159,
in <module>
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File "F:\My Projects\cocos2d\TestGame\proj.android\build_native.py", line 146,
in build
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode)
File "F:\My Projects\cocos2d\TestGame\proj.android\build_native.py", line 82, in do_build raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ F:\My Projects\cocos2d\TestGame\proj.android ] fails!

任何帮助?

1 个答案:

答案 0 :(得分:1)

我认为您的项目导入存在问题。导入整个TestGame项目,而不仅仅是pro.android