I had a similar problem but figured it out. My reason for tessarct and hence leptonica was to compile pdfocr (https://github.com/gkovacs/pdfocr).
Downloaded source for Leptonica 1.69. Untared and since I don't have root permissions ran in leptonica directory. $ ./configure --prefix=/home/albert/usr/ && make && make install; This succesfully put the leptonica bin,lib, and include dirs in my ~/usr folder. I have the bin directory in the PATH, the lib directory in the LD_LIBRARY_PATH, and the include directory in C_INCLUDE_PATH however this is not enough, nor neccessary, to configure tessaract. In fact, tessaract has flags for finding leptonica. Here is what I used in tcsh: $ ( setenv LIBLEPT_HEADERSDIR /home/albert/usr/include/leptonica ; setenv LDFLAGS -L/home/albert/usr/lib ; ./configure --prefix=/home/albert/usr ) The brackets set up a subshell in which I temporarily set the leptonica header dir, and location of library, before calling configure. After just run $ make && make install And it should work. Now I will continue compiling pdfocr and see if there are more requirments ;) Cheers, Josh -- You received this message because you are subscribed to the Google Groups "ocropus" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ocropus/ca7d938c-30bc-4d6d-81cc-845a3731ede9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
