jni を使用して Android fb2png ネイティブ ソース コードをコンパイルしようとしました。しかし、私は次の問題に直面しています。私は行きましたが、解決策が見つかりませんでした。私を助けてください 。ndkの問題を追加しました。
問題 **
** /cygdrive/d/Android_NDK/android-ndk-r5/ndk-build
ompile thumb : fb2png <= fb2png.c
ompile thumb : fb2png <= img_process.c
ompile thumb : fb2png <= fb.c
xecutable : fb2png
:/RAJESH-ANDROID/Rajesh-workspace/ZT/obj/local/armeabi/objs/fb2png/img_process.o: In function `save_png':
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:182: undefined reference to `png_create_write_struct'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:188: undefined reference to `png_create_info_struct'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:192: undefined reference to `png_set_write_fn'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:193: undefined reference to `png_set_IHDR'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:208: undefined reference to `png_set_bKGD'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:209: undefined reference to `png_write_info'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:211: undefined reference to `png_write_image'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:212: undefined reference to `png_write_end'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:214: undefined reference to `png_destroy_write_struct'
:/RAJESH-ANDROID/Rajesh-workspace/ZT/obj/local/armeabi/objs/fb2png/img_process.o: In function `stdio_write_func':
:/RAJESH-ANDROID/Rajesh-workspace/ZT/jni/img_process.c:132: undefined reference to `png_get_io_ptr'
ollect2: ld returned 1 exit status
ake: *** [/cygdrive/D/RAJESH-ANDROID/Rajesh-workspace/ZT/obj/local/armeabi/fb2png] Error 1 **
**
http://code.google.com/p/android-fb2png/source/browse/
私のlibpngソース。
ありがとう、ラジェッシュK