Black screen in Cocos2d-x application
Cocos2d-x demo application hungs with black screen when i use CrystaX to build. With a standard Google's NDK all goes fine.
This problem appeared on all my android devices with Intel Atom SOC (asus_z008D) and some others arm based devices (Fly IQ245 Plus).
Updated by Dmitry Moskalchuk almost 5 years ago
- Status changed from Open to Waiting for feedback
Here is what I did to check it:
$ git clone https://github.com/dmcrystax/cocos2d-x.git
$ cd cocos2d-x
$ python download-deps.py
$ git submodule update --init
$ python setup.py
$ source ~/.zshrc
$ cocos new MyGame -p net.crystax.mygame -l cpp -d projects/MyGame
$ cd projects/MyGame
$ cocos run -p android -j 4 --app-abi armeabi-v7a
Having these steps done, I can successfully run cocos2d-x demo on all my devices, running Android 4.4, 5.0, 5.1 and 6.0 (ARM). Have not tried on x86 tablet yet, but will check soon.
Note that I've cloned https://github.com/dmcrystax/cocos2d-x.git instead of https://github.com/cocos2d/cocos2d-x.git. This is my fork, where I've fixed minor compile error, so it differ from official one by just "one commit":https://github.com/dmcrystax/cocos2d-x/commit/bc85f590265bcb2c1369e1e9ca7f011ff6b9b018. I've sent "pull request":https://github.com/cocos2d/cocos2d-x/pull/14727, so it will be merged to official repository soon.
Except of the mentioned compile error, I don't see any problems with cocos2d-x demo being built by CrystaX NDK 10.3.0. If you still experience problems, please provide minimal example how I can reproduce it (having logs from your device would be helpful too).