可能是这个原因,
我这里返回bool 即(a>b)就排不了,返回-1,1就可以排序了
binary
是的,SDKBox里面的。JSB2.0 绑定sdkbox的有相关文档吗?
是的,binary
此问题修复了:
https://github.com/cocos-creator/cocos2d-x-lite-external/pull/51
急的话,可以使用PR里面的libuv替换一下。或者等下个版本验证一下。
1.7对sdkbox的支持情况如何? 现有的版本应该不兼容吧
2017-10-27T09:30:34.693Z - normal: Building /Users/chenfuquan/HelloWorld
2017-10-27T09:30:34.693Z - normal: Destination /Users/chenfuquan/HelloWorld/build/jsb-binary
2017-10-27T09:30:34.696Z - normal: Delete /Users/chenfuquan/HelloWorld/build/jsb-binary/res/**/,/Users/chenfuquan/HelloWorld/build/jsb-binary/src//
2017-10-27T09:30:34.745Z - normal: Checked Python Version [2.7.10]
2017-10-27T09:30:35.877Z - failed: Can not find file /Users/chenfuquan/HelloWorld/build/jsb-binary/frameworks/runtime-src/Classes/jsb_module_register.cpp
2017-10-27T09:30:35.978Z - normal: Generating main.js from /Applications/CocosCreator.app/Contents/Resources/static/build-templates/shares/main.js
2017-10-27T09:30:37.317Z - normal: Compiled project javascript file successfully
2017-10-27T09:30:37.317Z - normal: Start building assets
2017-10-27T09:30:37.317Z - normal: Start spawn build-worker
2017-10-27T09:30:37.992Z - normal: Finish spawn build-worker
2017-10-27T09:30:37.993Z - normal: Start init build-worker
2017-10-27T09:30:39.977Z - normal: 1.7.0-beta.3
2017-10-27T09:30:40.066Z - normal: Finish init build-worker
2017-10-27T09:30:40.066Z - normal: Start build-assets in worker
2017-10-27T09:30:40.236Z - normal: Finish build-assets in worker
2017-10-27T09:30:40.241Z - normal: Finish building assets
2017-10-27T09:30:40.282Z - normal: Start building raw assets
2017-10-27T09:30:40.284Z - normal: Start building plugin scripts
2017-10-27T09:30:40.294Z - normal: Finish building raw assets
2017-10-27T09:30:40.324Z - normal: Checked Python Version [2.7.10]
2017-10-27T09:30:41.651Z - normal: Built to “/Users/chenfuquan/HelloWorld/build/jsb-binary” successfully
2017-10-27T09:30:57.251Z - normal: Checked Python Version [2.7.10]
2017-10-27T09:30:58.375Z - normal: Start to compile native project. Please wait…
2017-10-27T09:30:58.375Z - normal: The log file path [ /Users/chenfuquan/.CocosCreator/logs/native.log ]
2017-10-27T09:31:02.919Z - failed: Error: Compile failed. The log file path [ /Users/chenfuquan/.CocosCreator/logs/native.log ]
at ChildProcess.handleChildProcess (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:20121)
at ChildProcess.e.on (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7685)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Socket. (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at Pipe._handle.close [as _onclose] (net.js:510:12)
==============================
** BUILD FAILED **
The following build commands failed:
CompileC build/hello_world.build/Release-iphonesimulator/hello_world-mobile.build/Objects-normal/i386/AppDelegate.o /Users/chenfuquan/HelloWorld/build/jsb-binary/frameworks/runtime-src/Classes/AppDelegate.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Build failed: Take a look at the output above for details.
这个在1.7.0beta4中修复。
1.7beta3 创建一个helloworld,编译不通过,直接用androidStudio打开编译发现报错。undefined reference to ‘jsb_register_all_modules()’,我的情况跟楼上是一样的,刚开始我也是1.52工程,以为是1.52升级的问题,但是我直接运行demo也出现这种情况,ide里面构建是没问题的,就是编译出现这个错误,请问什么原因,怎么解决。
一个没有仔细测过的错误,
在cocos2dx工程中找到jsb_module_register.cpp和jsb_module_register.hpp
拷到Classes目录中,应该可以解决。
下个Beta应该会解决这个问题。
哎继续等正式版
请提供更详细的信息吧。
如何后台执行?
什么类型的中断?截图一下?
扫等下



