Opened 3 years ago

Closed 2 years ago

#56226 closed defect (fixed)

tesseract @3.05.01 fails to populate /opt/local/share/tessdata

Reported by: rpspringuel (Fr. Samuel Springuel) Owned by: markemer (Mark Anderson)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: LeoFCardoso (Leonardo), ericmoret, amake (Aaron Madlon-Kay)
Port: tesseract

Description

When upgrading to tesseract 3.05.01 the /opt/local/share/tessdata folder is emptied except for the language training files installed by the appropriate language data port. This means that the configs and tessconfigs folders (and their contents) and the file pdf.ttf are missing, thereby hobbling tesseract. These files were present in previous version, though I have cleaned up my MacPorts installation since I last used tesseract, so I'm not sure which version number that was. I was able to find and restore those folders/files in my TimeMachine from March 17th and some personal logs seem to indicate that I upgraded from 3.04.01_0 on that day so whatever version was available on that day most likely had them.

Change History (5)

comment:1 Changed 3 years ago by raimue (Rainer Müller)

Cc: emer@… removed
Owner: set to markemer
Status: newassigned

comment:2 Changed 3 years ago by LeoFCardoso (Leonardo)

Cc: LeoFCardoso added

comment:3 Changed 3 years ago by ericmoret

Cc: ericmoret added

comment:4 Changed 3 years ago by amake (Aaron Madlon-Kay)

Cc: amake added

comment:5 Changed 2 years ago by Aaron Madlon-Kay <amake@…>

Resolution: fixed
Status: assignedclosed

In e0d7c7f7ea861d1ef218fcfaf5e5a30843838da0/macports-ports (master):

tesseract: build with autoconf

Both autoconf and cmake are supported, but the later does not install the
${PREFIX}/share/tessdata files, without which the program loses many
important capabilities.

Autoconf also appears to be the recommended method according to project
documentation:
https://github.com/tesseract-ocr/tesseract/wiki/Compiling-%E2%80%93-GitInstallation#installing-with-autoconf-tools

Fixes #56226

Note: See TracTickets for help on using tickets.