Skip to content

Latest commit

 

History

History
88 lines (62 loc) · 2.73 KB

Installing_Rtesseract.md

File metadata and controls

88 lines (62 loc) · 2.73 KB

How to install Rtesseract

Rtesseract requires Tesseract to be installed, either 3.0X or 4.0X versions. For general notes on installing Tesseract, please see Compiling Tesseract for information from the Tesseract devs and Installing Tesseract for our notes.

Tested installs:

These are platforms where Rtesseract has been confirmed to install on, along with any notes or special instructions.

General notes:

  • Requires the environment variable PKG_CONFIG_PATH set to include the appropriate location so the installer knows where to find tesseract and leptonica, e.g., /usr/local/lib/pkgconfig. This is a colon-separated collection of paths identifying directories that contain the .pc files specifying the information for an installed package.

  • Compilation should use the C++11 standard. This means setting the --std=C++11 flag in CXXFLAGS. Otherwise, the compiler will issue warnings.

Linux

CentOS 7

Tesseract version R version Compiler Notes
3.05.0X 3.4.1 g++ 6.2 OK
4.00.00dev 3.4.1 g++ 6.2 OK
4.00.00dev 3.4.0 g++ 4.8.5 OK

Arch Linux

kernel 4.12.8.2

Tesseract version R version Compiler Notes
3.05.0X 3.4.1 g++ 7.1. OK
4.00.00dev 3.4.1 g++ 7.1 OK
3.05.0X 3.4.1 clang 4.0.1 OK
4.00.00dev 3.4.1 clang 4.0.1 OK
3.05.0X 3.4.1 clang 5.0 OK
4.00.00dev 3.4.1 clang 5.0 OK

Debian

7.0 Jessie (rocker/rstudio Docker image)

Tesseract version R version Compiler Notes
3.05.0X 3.4.1 g++ 6.3.0 OK
4.00.00dev 3.4.1 g++ 6.3.0 OK

OS X

Tesseract version R version Compiler Notes
3.05.0X 3.4.? Apple clang Cannot compile tesseract
4.00.00dev 3.4.? Apple clang Cannot compile tesseract

MS Windows

Tesseract version R version Compiler Notes
3.05.0X 3.4.1 g++ 6.3.0 Have not attempted yet
4.00.00dev 3.4.1 g++ 6.3.0 Have not attempted yet

libRexit.a

Required to stop Tesseract from terminating the R process when Tesseract hits an error.

Tesseract version R version Compiler Linker Notes
3.05.0X 3.4.1 g++ 7.2.0 GNU ld 2.29
4.00.00dev 3.4.1 clang 5.00 GNU ld 2.29 OK
4.00.00alpha 3.4.1 clang 3.4.2 GNU ld 2.25 OK
4.00.00alpha 3.4.1 g++ 4.8.5 GNU ld 2.25 OK
4.00.00alpha 3.4.1 g++ 6.3.1 GNU ld 2.27 OK