pegasus:proj.android pegasus$ ./build_native.sh
NDK_ROOT = /Users/pegasus/cocos2d-x/android-ndk-r8b
COCOS2DX_ROOT = /Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android/../..
APP_ROOT = /Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android/..
APP_ANDROID_ROOT = /Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android
Using prebuilt externals
make: Entering directory `/Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android'
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Compile++ thumb : game_shared <= main.cpp
In file included from /Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android/../../cocos2dx/include/CCProtocols.h:29:0,
from /Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android/../../cocos2dx/actions/CCActionInterval.h:32,
from /Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android/../../cocos2dx/include/cocos2d.h:42,
from jni/../../Classes/HelloWorldScene.h:4,
from jni/hellocpp/main.cpp:6:
/Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android/../../cocos2dx/include/ccTypes.h:56:1: error: stray '\241' in program
/Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android/../../cocos2dx/include/ccTypes.h:56:1: error: stray '\326' in program
make: *** [obj/local/armeabi/objs-debug/game_shared/hellocpp/main.o] Error 1
make: Leaving directory `/Users/pegasus/cocos2d-x/cocos2d-2.0-x-2.0.3/Test/proj.android'
本来交叉编译是没有错的,后来自己通过Xcode安装了gcc就出现了这个问题,求大神指点啊!