First, under the relevant software path under MAC, open "terminal" and enter Pico. Bash_profile Carriage return
Export Cocos2dx_root=/users/bpmacmini01/documents/cocos2d-2.1rc0-x-2.1.2/export ndk_root=/users/bpmacmini01/ Documents/androiddevelop/ndk-r9dexport android_ndk_root=/users/bpmacmini01/documents/androiddevelop/ Ndk-r9dexport android_sdk_root=/applications/adt/sdkexport path= $ANDROID _ndk_root: $PATHexport path= $ANDROID _sdk_ ROOT: $PATH
The basic path is the one above, this is done here, just to let you see my configuration path. Then, enter the path to the SDK in the terminal
After that, use only the input
./adb Logcat | Ndk-stack-sym./obj/local/armeabi
When running the Android app, if it is a C + + error, it will prompt the wrong file and number of lines in the terminal to facilitate C + + debugging.
COCOS2DX compiling Android version to view C + + errors