From bf43d6a6e908221a4e61a525a296c1ba40240351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zdenko=20Podobn=C3=BD?= Date: Sun, 11 Oct 2015 17:09:01 +0200 Subject: [PATCH] improve cmake instruction and rename it to INSTALL.GIT.md --- INSTALL.GIT | 70 ------------------------------------------------- INSTALL.GIT.md | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 70 deletions(-) delete mode 100644 INSTALL.GIT create mode 100644 INSTALL.GIT.md diff --git a/INSTALL.GIT b/INSTALL.GIT deleted file mode 100644 index e16788bf5..000000000 --- a/INSTALL.GIT +++ /dev/null @@ -1,70 +0,0 @@ -# autotools (LINUX/UNIX , msys...) - - -If you have cloned Tesseract from Github, you must generate -the configure script. - -If you have tesseract 3.0x installation in your system, please remove it -before new build. - -Known dependencies for training tools (excluding leptonica): - * compiler with c++ support - * pango-devel - * cairo-devel - * icu-devel - -So, the steps for making Tesseract are: - - $ ./autogen.sh - $ ./configure - $ make - $ sudo make install - $ make training - $ sudo make training-install - -You need to install at least English language data file to TESSDATA_PREFIX -directory. All language data files can be retrieved from git repository: - $ git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata -(Repository it huge - more that 1.2Gb. You do not need to download -all languages) - -To compile ScrollView.jar you need to download piccolo2d-core-3.0.jar -and piccolo2d-extras-3.0.jar[1] and place them to tesseract/java. - -Than run: - $ make ScrollView.jar - -and follow instruction on Viewer Debugging wiki[2]. - -[1] http://search.maven.org/#search|ga|1|g%3A%22org.piccolo2d%22 -[2] https://github.com/tesseract-ocr/tesseract/wiki/ViewerDebugging - - -# CMAKE - - -## LINUX - -mkdir build -cd build && cmake .. && make -sudo make install - - -## WINDOWS - - -cd leptonica -mkdir build -cd build -cmake .. - -cd tesseract -mkdir build -cd build -cmake .. -DLeptonica_BUILD_DIR=/abs/path/to/leptonica/build - - -# WINDOWS Visual Studio - - -Please read http://vorba.ch/2014/tesseract-3.03-vs2013.html \ No newline at end of file diff --git a/INSTALL.GIT.md b/INSTALL.GIT.md new file mode 100644 index 000000000..7aa7f87f7 --- /dev/null +++ b/INSTALL.GIT.md @@ -0,0 +1,71 @@ +# autotools (LINUX/UNIX , msys...) + + +If you have cloned Tesseract from Github, you must generate +the configure script. + +If you have tesseract 3.0x installation in your system, please remove it +before new build. + +Known dependencies for training tools (excluding leptonica): + * compiler with c++ support + * pango-devel + * cairo-devel + * icu-devel + +So, the steps for making Tesseract are: + + $ ./autogen.sh + $ ./configure + $ make + $ sudo make install + $ make training + $ sudo make training-install + +You need to install at least English language data file to TESSDATA_PREFIX +directory. All language data files can be retrieved from git repository: + $ git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata +(Repository it huge - more that 1.2Gb. You do not need to download +all languages) + +To compile ScrollView.jar you need to download piccolo2d-core-3.0.jar +and [piccolo2d-extras-3.0.jar](http://search.maven.org/#search|ga|1|g%3A%22org.piccolo2d%22) and place them to tesseract/java. + +Than run: + $ make ScrollView.jar + +and follow instruction on [Viewer Debugging wiki](https://github.com/tesseract-ocr/tesseract/wiki/ViewerDebugging). + + +# CMAKE + +There is alternative build system based on multiplatform [cmake](https://cmake.org/) + +## LINUX + + $ mkdir build + $ cd build && cmake .. && make + $ sudo make install + + +## WINDOWS + +You need to use leptonica with cmake patch: + git clone https://github.com/egorpugin/leptonica.git + cd leptonica + mkdir build + cd build + cmake .. + cmake --build . + + git clone https://github.com/tesseract-ocr/tesseract.git + cd tesseract + mkdir build + cd build + cmake .. -DLeptonica_BUILD_DIR=/abs/path/to/leptonica/build + cmake --build . + + +# WINDOWS Visual Studio + +Please read http://vorba.ch/2014/tesseract-3.03-vs2013.html \ No newline at end of file