@d79151028 写道:
cocos 2.2.6
ndk r10d
- config:
ANDROID_NDK_ROOT = /opt/ndk
QUICK_COCOS2DX_ROOT = /opt/quick-cocos2d-x
COCOS2DX_ROOT = /opt/quick-cocos2d-x/lib/cocos2d-x
APP_ROOT = /Users/gao/code/cocoa/m2048/proj.android/..
APP_ANDROID_ROOT = /Users/gao/code/cocoa/m2048/proj.android- cleanup
- copy scripts
- copy resources
Using prebuilt externals
make: Entering directory/Users/gao/code/cocoa/m2048/proj.android'
/Users/gao/code/cocoa/m2048/proj.android'
[armeabi] Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
[armeabi] Gdbsetup : libs/armeabi/gdb.setup
[armeabi] SharedLibrary : libgame.so
/opt/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /opt/quick-cocos2d-x/lib/cocos2d-x/scripting/lua/luajit/./android/armeabi/libluajit.a(lib_base.o): in function lj_cf_print:lib_base.c(.text+0x1ac): error: undefined reference to '__swbuf'
/opt/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /opt/quick-cocos2d-x/lib/cocos2d-x/scripting/lua/luajit/./android/armeabi/libluajit.a(lib_base.o): in function lj_cf_print:lib_base.c(.text+0x2b4): error: undefined reference to '__swbuf'
/opt/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /opt/quick-cocos2d-x/lib/cocos2d-x/scripting/lua/luajit/./android/armeabi/libluajit.a(lib_io.o): in function io_file_read:lib_io.c(.text+0x53c): error: undefined reference to '__srget'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/libgame.so] Error 1
make: Leaving directoryndk换成ndk r9d 到时可以解决问题,但是sscanf 这个函数又要卡死手机,求大神,怎么解决?
帖子: 1
参与者: 1