引擎定制执行gulp gen-libs时遇到问题

求大神指导是什么问题

正在执行 ndk-build…
NDK 编译模式:release
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:’/Users/duanyangzhuo/Documents/ziliao/android-ndk-r10e/ndk-build -C /Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.android-studio/app -j4 APP_ABI=“armeabi arm64-v8a armeabi-v7a x86” NDK_MODULE_PATH=/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite:/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/cocos:/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/external:/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/cocos/scripting NDK_TOOLCHAIN_VERSION=4.9’

make: Entering directory /Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.android-studio/app' [armeabi] Compile++ arm : cocos2djs_shared <= RuntimeJsImpl.cpp [armeabi] Compile++ thumb: cocos2d_simulator_static <= coded_stream.cc [armeabi] Compile++ thumb: cocos2d_simulator_static <= common.cc [armeabi] Compile++ thumb: cocos2d_simulator_static <= extension_set.cc In file included from /Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/cocos/network/../scripting/js-bindings/jswrapper/jsc/ScriptEngine.hpp:7:0, from /Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/cocos/network/../scripting/js-bindings/jswrapper/jsc/SeApi.h:3, from /Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/cocos/network/../scripting/js-bindings/jswrapper/SeApi.h:14, from jni/../../../Classes/ide-support/RuntimeJsImpl.cpp:18: /Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/cocos/network/../scripting/js-bindings/jswrapper/jsc/Base.h:4:39: fatal error: JavaScriptCore/JavaScript.h: No such file or directory #include <JavaScriptCore/JavaScript.h> ^ compilation terminated. make: *** [obj/local/armeabi/objs/cocos2djs_shared/__/__/__/Classes/ide-support/RuntimeJsImpl.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory /Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/tools/simulator/frameworks/runtime-src/proj.android-studio/app’
执行命令出错,返回值:2。
执行命令出错,返回值:14。
[21:00:41] ‘gen-libs’ errored after 6.68 min
[21:00:41] Error: Command failed: tools/cocos2d-console/bin/cocos gen-libs -m release --vs 2015 --android-studio --app-abi armeabi:arm64-v8a:armeabi-v7a:x86
at checkExecSyncError (child_process.js:483:13)
at execSync (child_process.js:523:13)
at execSync (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/gulpfile.js:21:5)
at Gulp. (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/gulpfile.js:108:5)
at module.exports (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/index.js:134:8)
at /usr/local/lib/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js:54:20
at _combinedTickCallback (internal/process/next_tick.js:67:7)

cocoscreator v1.6

求大神给看下

你是自己clone了cocos2d-x-lite仓库吧,如果你用1.6版本,请切换到v1.6分支啊。不要用develop分支。

嗯,非常感谢,昨天晚些时候才发现没有切分支

Not using incremental javac compilation.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:HelloJavascript’.

NDK not configured.
Download it with SDK manager.)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 10.222 secs
Stopped 0 compiler daemon(s).
执行命令出错,返回值:1。
执行命令出错,返回值:14。
[12:10:23] ‘gen-libs’ errored after 1.98 min
[12:10:23] Error: Command failed: tools/cocos2d-console/bin/cocos gen-libs -m release --vs 2015 --android-studio --app-abi armeabi:arm64-v8a:armeabi-v7a:x86
at checkExecSyncError (child_process.js:483:13)
at execSync (child_process.js:523:13)
at execSync (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/gulpfile.js:21:5)
at Gulp. (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/gulpfile.js:108:5)
at module.exports (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/duanyangzhuo/Documents/ziliao/cocos2d-x-lite/node_modules/orchestrator/index.js:134:8)
at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:20
at _combinedTickCallback (internal/process/next_tick.js:67:7)

能帮忙看下这个问题吗??

不是提示ndk没有配置么。sdk目录下的是否有ndk-bundle目录?

:2:非常感谢

问一下,如何切到分支?