[cocos2d-x]I have an error when I try to run 'python android-build.py -p 19 cpp-tests' in Windows 10

和自甴很熟 提交于 2019-12-01 12:55:02

问题


When i try to run the command python android build -p cpp-tests, i'm getting an error as in the image:

Before this, I had another error message about Android SDK Tools version compatiblity. So, I just replaced sdk version form 26.0.0 to 25.2.3 and it worked. But for this i'm not getting any solution. Any help would be appreciated. Thank You.


回答1:


#include <unistd.h> header is missing in ProcessCpuTracker.cpp file for NDK v15, there is an issue reported for the same.

Either you downgrade NDK to previous version r14 or apply patch by yourself.

Patch will be included in official release of 3.16.



来源:https://stackoverflow.com/questions/44734381/cocos2d-xi-have-an-error-when-i-try-to-run-python-android-build-py-p-19-cpp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!