Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

sscanf和libluajit.a 冲突,怎么解决

$
0
0

@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'
    [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 directory
    /Users/gao/code/cocoa/m2048/proj.android'

ndk换成ndk r9d 到时可以解决问题,但是sscanf 这个函数又要卡死手机,求大神,怎么解决?

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>