What steps will reproduce the problem?
1. I'am trying to run the sample tesseract-android-tools-1.00, I installed
leptonica-1.68,tesseract-3.01 and jpeg-8c and android-ndk-r7, all these steps
gone without problems.
2. I defind the right paths for TESSERACT_PATH, LIBJPEG_PATH, LEPTONICA_PATH in
jni/Android.mk.
3. when I tried to build the sample tesseract-android-tools-1.00 using
./ndk-build in ndk root I got the provided error.
What is the expected output? What do you see instead?
I run ./ndk-build in android-ndk-r7 folder but I get this result:
./ndk-build
: command not found.
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver
Gdbsetup : libs/armeabi-v7a/gdb.setup
Install : libjpeg.so => libs/armeabi/libjpeg.so
SharedLibrary : liblept.so
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `pixWriteStreamJpeg':
/leptonica-1.68/src/jpegio.c:677: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:680: undefined reference to `jpeg_CreateCompress'
/leptonica-1.68/src/jpegio.c:681: undefined reference to `jpeg_stdio_dest'
/leptonica-1.68/src/jpegio.c:695: undefined reference to `jpeg_set_defaults'
/leptonica-1.68/src/jpegio.c:710: undefined reference to `jpeg_set_quality'
/leptonica-1.68/src/jpegio.c:732: undefined reference to `jpeg_start_compress'
/leptonica-1.68/src/jpegio.c:735: undefined reference to `jpeg_write_marker'
/leptonica-1.68/src/jpegio.c:775: undefined reference to `jpeg_write_scanlines'
/leptonica-1.68/src/jpegio.c:778: undefined reference to `jpeg_finish_compress'
/leptonica-1.68/src/jpegio.c:787: undefined reference to `jpeg_destroy_compress'
/leptonica-1.68/src/jpegio.c:762: undefined reference to `jpeg_write_scanlines'
/leptonica-1.68/src/jpegio.c:712: undefined reference to
`jpeg_simple_progression'
/leptonica-1.68/src/jpegio.c:677: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:680: undefined reference to `jpeg_CreateCompress'
/leptonica-1.68/src/jpegio.c:681: undefined reference to `jpeg_stdio_dest'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `jpeg_error_do_not_exit':
/leptonica-1.68/src/jpegio.c:1091: undefined reference to `jpeg_destroy'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `fgetJpegResolution':
/leptonica-1.68/src/jpegio.c:523: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:525: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:526: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:527: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:540: undefined reference to
`jpeg_destroy_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `freadHeaderJpeg':
/leptonica-1.68/src/jpegio.c:469: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:471: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:472: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:473: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:474: undefined reference to
`jpeg_calc_output_dimensions'
/leptonica-1.68/src/jpegio.c:485: undefined reference to
`jpeg_destroy_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/jpegio.o: In function `pixReadStreamJpeg':
/leptonica-1.68/src/jpegio.c:248: undefined reference to `jpeg_std_error'
/leptonica-1.68/src/jpegio.c:251: undefined reference to `jpeg_CreateDecompress'
/leptonica-1.68/src/jpegio.c:254: undefined reference to
`jpeg_set_marker_processor'
/leptonica-1.68/src/jpegio.c:255: undefined reference to `jpeg_stdio_src'
/leptonica-1.68/src/jpegio.c:256: undefined reference to `jpeg_read_header'
/leptonica-1.68/src/jpegio.c:261: undefined reference to
`jpeg_calc_output_dimensions'
/leptonica-1.68/src/jpegio.c:299: undefined reference to `jpeg_start_decompress'
/leptonica-1.68/src/jpegio.c:325: undefined reference to `jpeg_read_scanlines'
/leptonica-1.68/src/jpegio.c:388: undefined reference to
`jpeg_finish_decompress'
/leptonica-1.68/src/jpegio.c:389: undefined reference to
`jpeg_destroy_decompress'
/leptonica-1.68/src/jpegio.c:363: undefined reference to `jpeg_read_scanlines'
/leptonica-1.68/src/jpegio.c:304: undefined reference to `jpeg_start_decompress'
/leptonica-1.68/src/jpegio.c:295: undefined reference to `jpeg_start_decompress'
workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi/
objs/lept/leptonica-1.68/src/libversions.o: In function `getImagelibVersions':
/leptonica-1.68/src/libversions.c:94: undefined reference to `jpeg_std_error'
collect2: ld returned 1 exit status
make: ***
[workspace/android-ndk-r7/samples/tesseract-android-tools-1.00/obj/local/armeabi
/liblept.so] Error 1
What version of the product are you using? On what operating system?
Ubuntu 10.4 amd64, leptonica-1.68, tesseract-3.01,android-ndk-r7
can anyone help please?
Please provide any additional information below.
Original issue reported on code.google.com by osaweb...@googlemail.com on 7 Dec 2011 at 10:35
Original issue reported on code.google.com by
osaweb...@googlemail.com
on 7 Dec 2011 at 10:35