raffaeldantas / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
1 stars 0 forks source link

Compilation guide out of date #1416

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. libjpeg62-dev and libtiff4-dev conflict, installing latter will remove former
2. Tesseract 3.04 needs Leptonic 1.71, not mentioned on the list
3. Checkup list to clean conflicts, please.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
1) Dev lib conflict seems not to cause any problems, but it is misleading 
information. I spent hours to try to find out how I can install them both.
2) Ubuntu ( Linux Mint ) repository offers Leptonica 1.70, informing that 3.04 
needs newer version will save one from installing and then hunting and cleaning 
liblept files from the system.
3) Having installed Tesseract or Leptonic stuff from repository messes up 
everything if one just installs new stuff from source. It would be useful to 
have a check-up list for recovery, to fix the system before install like this:

- Uninstall all Tesseract stuff installed from repository, complete removal 
- Uninstall leptonic AND all liblept stuff installed from repository, complete 
removal
- If you already installed Tesseract or leptonic from source run make uninstall 
and make clean in those directories
- Search the system for "tessdata", "tesseract*", "leptonic" and "liblept*" and 
remove (-r fo folders) those which are not in the downloaded Tesseract and 
Leptonica source folders
- re-install all libraries in the order given in the compiling guide, note that 
installing libtiff4-dev will remove libjpeg62-dev, but its ok.
- configure, make and install leptonica
- install gnuplot and run make check to see leptonica works
- configure, make and install Tesseract and training tools
- set TESSDATA_PREFIX
- unpack and copy language data to the tessdata directory

Someone might know how to do some sort of a script which would make sure the 
system is clean for new install.

Original issue reported on code.google.com by joonas.r...@gmail.com on 30 Jan 2015 at 8:42

GoogleCodeExporter commented 8 years ago
1. tesseract 3.04 is not release. Docs should be changed after its release.
2. dependency conflict is not tesseract issue => this is case for distribution 
packager
3. "Note: This wiki expects you to be familiar with compiling software on your 
operation system."[1]. You do not have to uninstall official version IF YOU 
KNOW how your system works.

[1] https://code.google.com/p/tesseract-ocr/wiki/Compiling

Original comment by zde...@gmail.com on 12 Apr 2015 at 3:55