問題描述:
根據 cocos2d-x 官方檔案教程配置開發環境,前面的要求都滿足,后面編譯的時候報錯了。
junglone@junglone-ThinkPad-T440:~/develop/cocos2d-x-3.15/build$ python android-build.py -p 5 cpp-tests
cocos compile -p android -s /home/junglone/develop/cocos2d-x-3.15/build/../tests/cpp-tests --ndk-mode debug --app-abi armeabi-v7a --ap android-5
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 36
Current serial number in output stream: 36
Building mode: debug
Using Eclipse project : /home/junglone/develop/cocos2d-x-3.15/tests/cpp-tests/proj.android
Ant (Eclipse project) is not supported from Android SDK Tools 25.3.0.
Build dynamic library for project [ /home/junglone/develop/cocos2d-x-3.15/build/../tests/cpp-tests ] failed!
Ant配置:

Python:

Cocos2d-x 配置:

Available Android targets:

報錯資訊:
uj5u.com熱心網友回復:
我也遇到這個問題了轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/61403.html
標籤:Cocos2d-x
上一篇:文明爬蟲,從你我做起。
下一篇:請問有即時戰略類游戲引擎嗎?
