guangpingmo / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
0 stars 0 forks source link

Error trying to build tesseract-android-tools sample #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I compiled tesseract-3.01
2.I compiled leptonica-1.68 and libjpeg
3.Add the right 3 paths in Android.mk of the sample 
tesseract-android-tools-1.00.

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 64 bit, leptonica-1.68, tesseract-3.01,android-ndk-r7

can someone help me please to found out the reason of these errors?

Original issue reported on code.google.com by oabuf...@gmail.com on 5 Dec 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Removed libjpeg

Original comment by alanv@google.com on 11 Sep 2012 at 8:03