Build error : undefined reference to '__swbuf'
Posted: Sun Oct 26, 2014 6:26 pm
Hi,
I get the same error when trying to build love-android on both windows and (x)ubuntu 14.01.1. What am I doing wrong?
This is the tail end of the output of ndk-build (ubuntu):
...
[armeabi] Compile thumb : SDL2_static <= SDL_android_main.c
[armeabi] StaticLibrary : libSDL2.a
[armeabi] SharedLibrary : liblove.so
[...] android-ndk/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: jni/LuaJIT-2.0.1/android/armeabi/libluajit.a(lib_base.o): in function lj_cf_print:lib_base.c(.text+0x1ac): error: undefined reference to '__swbuf'
[...] android-ndk/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: jni/LuaJIT-2.0.1/android/armeabi/libluajit.a(lib_base.o): in function lj_cf_print:lib_base.c(.text+0x2b4): error: undefined reference to '__swbuf'
[...] android-ndk/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: jni/LuaJIT-2.0.1/android/armeabi/libluajit.a(lib_io.o): in function io_file_read:lib_io.c(.text+0x4f4): error: undefined reference to '__srget'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/liblove.so] Error 1
I get the same error when trying to build love-android on both windows and (x)ubuntu 14.01.1. What am I doing wrong?
This is the tail end of the output of ndk-build (ubuntu):
...
[armeabi] Compile thumb : SDL2_static <= SDL_android_main.c
[armeabi] StaticLibrary : libSDL2.a
[armeabi] SharedLibrary : liblove.so
[...] android-ndk/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: jni/LuaJIT-2.0.1/android/armeabi/libluajit.a(lib_base.o): in function lj_cf_print:lib_base.c(.text+0x1ac): error: undefined reference to '__swbuf'
[...] android-ndk/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: jni/LuaJIT-2.0.1/android/armeabi/libluajit.a(lib_base.o): in function lj_cf_print:lib_base.c(.text+0x2b4): error: undefined reference to '__swbuf'
[...] android-ndk/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: jni/LuaJIT-2.0.1/android/armeabi/libluajit.a(lib_io.o): in function io_file_read:lib_io.c(.text+0x4f4): error: undefined reference to '__srget'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/liblove.so] Error 1