It seems that the move to cocos console has broken Eclipse support.
The cocos console is great when run from a command line, but when the Eclipse CDT runs .build_native, then the problems start.
To get the new buid_native.py to build in cocos2d-x 3.4 (need to verify it it is exactly 3.4) or greater, you need to make some changes to Cocos2d-x project files.
CDT Builder is Disabled Why is it now disabled in the Cocos2d-x Android Project?
Enable the CDT Builder by right clicking on the project and then Properties->Builders and then tick the checkbox next to CDT builder.
build_native.py cannot find cocos when run from Eclipse
In build_native.py, add the full path to the cocos console in the line:
command = ‘cocos compile -p android -s %s -m %s’ % (app_android_root, build_mode)
cocos console cannot find system variables when run from Eclipse CDT ->build_native.py
Add the following to the C++ build variables in Eclipse by right clicking on your project and then Properties->C++ Build->Enviornment. Add the following to all configurations.
ANT_ROOT=[YOUR ANT ROOT]
ANDROID_SDK_ROOT=[YOUR ANDROID SDK ROOT]
NDK_ROOT=[YOUR NDK ROOT]
cocos console cannot find the Android Keystore when run from Eclipse CDT ->build_native.py
After fixing the above issues, now the cocos console cannot find the keystore…
Does anyone have a fix for this?