got this error while try to build using android-ndk-r6b/ndk-build under ubuntu 11.10 and 11.04
same problem using android-ndk-r5c/ndk-build under winxp cygwinany idea how to fix this?
thanks
/home/pkk/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -Wl,-soname,libhello-jni.so -shared --sysroot=/home/pkk/android-ndk-r6b/platforms/android-9/arch-arm /home/pkk/android-ndk-r6b/samples/hello-jni2/obj/local/armeabi/objs-debug/hello-jni/hello-jni.o /home/pkk/android-ndk-r6b/samples/hello-jni2/obj/local/armeabi/Chshw.a /home/pkk/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a -Wl,--no-undefined -Wl,-z,noexecstack -lc -lm -lsupc++ -o /home/pkk/android-ndk-r6b/samples/hello-jni2/obj/local/armeabi/libhello-jni.so
/home/pkk/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: /home/pkk/android-ndk-r6b/samples/hello-jni2/obj/local/armeabi/Chshw.a(HWR_engine.o): Relocations in generic ELF (EM: 8)
/home/pkk/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: /home/pkk/android-ndk-r6b/samples/hello-jni2/obj/local/armeabi/Chshw.a(HWR_engine.o): Relocations in generic ELF (EM: 8)
/home/pkk/android-ndk-r6b/samples/hello-jni2/obj/local/armeabi/Chshw.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [/home/pkk/android-ndk-r6b/samples/hello-jni2/obj/local/armeabi/libhello-jni.so] Error 1
Chshw.a is a prebuilt static library provided by others.
# first lib, which is prebuilt statically
#
include $(CLEAR_VARS)
LOCAL_MODULE := Chshw
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/Chshw.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := hello-jni
LOCAL_SRC_FILES := hello-jni.c
LOCAL_STATIC_LIBRARIES := Chshw
include $(BUILD_SHARED_LIBRARY)