January 2016 Archives

Mon Jan 4 14:24:45 PST 2016

Linking Tesseract v3.02 on Ubuntu 14.04

I recently upgraded from Ubuntu 12.04 to Ubuntu 14.04 - I was hoping that the upgrade might somehow improve my ability to use an iPhone 4 with Ubuntu - sadly I was disappointed.

But there were side effects. For example Tesseract 3.02 no longer ran correctly, instead it complained about its run time environment.

So, I went back to the tesseract 3.02 build directory and typed the obligatory './configure; make' or similar things.

Everything went well until link time, and then I had various errors about missing symbols, png files, tiff files, and so on. Then I empirically found that the line necessary to induce Tesseract to link was:

/bin/bash ../libtool --tag=CXX   --mode=link g++     -o tesseract tesseract-tesseractmain.o libtesseract.la   -lrt  -lz -lpthread /usr/local/lib/liblept.a -lz -lpng -ljpeg -ltiff

So, I thought I would record that here for future reference for people interested in Tesseract v 3.02 on Ubuntu 14.04.

Posted by ZFS | Permanent link | File under: bash