I unzipped under linux android-ndk-r9b into the inside of the sample demo example: hello-jni
Run ndk-build results are as follows:
AndroidManifest.xml default.properties jni libs obj res src tests
[Root @ yi hello-jni] # cd jni
[Root @ yi jni] # ls
Android.mk hello-jni.c
[Root @ yi jni] # ndk-build
[Armeabi] Gdbserver: [arm-linux-androideabi-4.6] libs / armeabi / gdbserver
[Armeabi] Gdbsetup: libs / armeabi / gdb.setup
[Armeabi] SharedLibrary: libhello-jni.so
/ Shared/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6 / .. / .. / .. / / arm-linux-androideabi / bin / ld:.. relocation error: / shared/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin / .. / lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: symbol posix_fallocate64, version GLIBC_2.3.3 not defined in file libc.so. 6 with link time reference
collect2: ld returned 127 exit status
make: *** [/ shared/android/android-ndk-r9b/samples/hello-jni/obj/local/armeabi/libhello-jni.so] Error 1
[Root @ yi jni] #
This is God horse situation?

Reply:
Should be entered in the jni ndk-build command outside the directory
Reply:
I did not have outside input error
I think it should be too my glibc library version is redhat glibc 2.3.2 may ndk-r9b is the minimum requirement 2.3.3 it
version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
I do it again for a look at linux huh
Reply:
Have to get another higher version of linux on it

No comments:
Post a Comment