首页 新闻 搜索 专区 学院

cocos2d-x在mac 系统下交叉编译出错

0
悬赏园豆:50 [已关闭问题] 关闭于 2013-01-11 17:00

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就出现了这个问题,求大神指点啊!

游子陈的主页 游子陈 | 初学一级 | 园豆:81
提问于:2012-11-27 19:24
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册