LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2018, 02:27 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,997

Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
Tesseract-4.0.0-Beta4 compiling woes


I'm on Slackware64-current, trying to compile the new tesseract engine. The first problem was that libpng16.la was missing but I got around that with --disable-static --enable-shared. Then I get this
Code:
make[2]: Leaving directory '/home/dec/download/tesseract-4.0.0-beta.4/doc'
Making all in unittest
make[2]: Entering directory '/home/dec/download/tesseract-4.0.0-beta.4/unittest'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/dec/download/tesseract-4.0.0-beta.4/unittest'
make[1]: *** [Makefile:493: all-recursive] Error 1
make[1]: Leaving directory '/home/dec/download/tesseract-4.0.0-beta.4'
make: *** [Makefile:402: all] Error 2
EDIT: The full configure line used was './configure --prefix=/usr --libdir=/usr/lib64 --disable-static --enable-shared'

Error 1 is permissions.
Directories are 0755, files 0644 all owned by myuser:mygroup. The Makefile & configure are from autogen.sh

Error 2 is "no such file or directory." :-O? Being root doesn't help.

Last edited by business_kid; 08-20-2018 at 02:51 PM.
 
Old 08-28-2018, 12:33 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,997

Original Poster
Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
Tesseract-4.0.0beta4: I returned and put this to bed - by deleting it.

I returned and did a make clean, followed by 'make -j2 >>make.err' which caught the faults

I needed to install libpng16.la, then libgif.la. Nobody bothers with static libs these days.
The 'install' completed, but it was only includes :-/. The src/ directory doesn't appear to have been built:-o. I tried 'make' on the src/ subdirs, but the first puked for lack of libtiff.la.
Then I thought: If that's so awful, ought I not let the guy finish what is apparently a WIP?
 
Old 08-29-2018, 03:25 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,997

Original Poster
Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
/much later
If you really want to try tesseract, don't use the supplied source. The make system doesn't cut it.

Clone the git which is on github, and use libopenjpeg instead of the old libjpeg package on sourceforge.net that a quick google points you to. The make scripts are also buggered on that. Use the instructions and links for that from the LinuxFromScratch site, except use --enable-static. You'll also have to build tiff, png, and lzma with --enable-static to extract one lousy static lib from each. You also need libopenjpeg.so, and I added libjpeg.la as a symlink to libopenjpeg.la.
 
Old 09-04-2018, 03:04 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,997

Original Poster
Rep: Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250Reputation: 1250
This is an old thread, but I have to correct my post below

Don't use libopenjpeg.la, like I did. I fed it some jpegs of letters (a basic job for an ocr program) and didn't get one word of English. Convert the jpegs to pngs, and I get fair to middling English (It pukes on '-€' and I gave it bills). Also install some languages (e.g. eng.traineddata) in the tessdata directory, and try
Code:
 tesseract --list-langs
to see if it picked them up.

Last edited by business_kid; 09-04-2018 at 03:09 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling tesseract-2.03: error: ‘INT32’ was not declared in this scope J_Szucs Linux - Software 10 03-05-2009 03:35 PM
Compiling woes Cards_STL Linux - Software 8 10-30-2005 11:14 PM
libdvdcss compiling woes Superdeluxe Linux - Software 4 01-24-2005 09:55 AM
compiling woes elliore Slackware 6 07-15-2003 07:51 PM
Kernel compiling woes.... noobix Slackware 7 06-05-2003 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration