cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

Error generating the release apk version ( on ubuntu) #911

Open felipesaruhashi opened 10 years ago

felipesaruhashi commented 10 years ago

I'm facing problems to build a release version for android. I runned the command:

cocos compile -p android -m release And it's returning the following error message:

Error running command, return code: 2. Check the log file at /home/felipesaruhashi/.cocos2d/cocos2d.log

Error running command, return code: 1 In the log file:

~/cocos2d-js-v3.0/tools/cocos2d-console/bin/../plugins/plugin_jscompile/bin/jsbcc: 1: ~/cocos2d-js-v3.0/tools/cocos2d-console/bin/../plugins/plugin_jscompile/bin/jsbcc: Syntax error: "&" unexpected Anyone knows what's wrong?

I'm on linux(ubuntu 14.04 lts and cocos2d-js 3.0) by the way.

zhaijialong commented 10 years ago

Yes, this is a known issue. The jsbcc is built for Mac OS X, it could not work on Linux. You can built it for linux yourself and replace it, source code here:https://github.com/cocos2d-html5/JSCompiler