summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-03-30 10:59:39 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-04-01 00:04:14 +0200
commit5ff1d6955496b3cf9a35042c9ac35db43bc336b1 (patch)
tree6d470f7eb448f59f53e8df1010aec9dad8ce1f72 /tesseract/INSTALL.GIT.md
parentImport Ghostscript 9.53.1 (diff)
downloadghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.tar.gz
ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.tar.bz2
ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.zip
Import Ghostscript 9.54ghostscript-9.54
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'tesseract/INSTALL.GIT.md')
-rw-r--r--tesseract/INSTALL.GIT.md67
1 files changed, 67 insertions, 0 deletions
diff --git a/tesseract/INSTALL.GIT.md b/tesseract/INSTALL.GIT.md
new file mode 100644
index 00000000..91675b9e
--- /dev/null
+++ b/tesseract/INSTALL.GIT.md
@@ -0,0 +1,67 @@
+# autotools (LINUX/UNIX , msys...)
+
+If you have cloned Tesseract from GitHub, you must generate
+the configure script.
+
+If you have tesseract 4.0x installation in your system, please remove it
+before new build.
+
+You need Leptonica 1.74.2 (minimum) for Tesseract 4.0x.
+
+Known dependencies for training tools (excluding leptonica):
+ * compiler with c++11 support
+ * automake
+ * pkg-config
+ * pango-devel
+ * cairo-devel
+ * icu-devel
+
+So, the steps for making Tesseract are:
+
+ $ ./autogen.sh
+ $ ./configure
+ $ make
+ $ sudo make install
+ $ sudo ldconfig
+ $ make training
+ $ sudo make training-install
+
+You need to install at least English language and OSD traineddata files to
+`TESSDATA_PREFIX` directory.
+
+You can retrieve single file with tools like [wget](https://www.gnu.org/software/wget/), [curl](https://curl.haxx.se/), [GithubDownloader](https://github.com/intezer/GithubDownloader) or browser.
+
+All language data files can be retrieved from git repository (useful only for packagers!).
+(Repository is huge - more that 1.2 GB. You do NOT need to download traineddata files for
+all languages).
+
+ $ git clone https://github.com/tesseract-ocr/tessdata.git tesseract-ocr.tessdata
+
+
+You need an Internet connection and [curl](https://curl.haxx.se/) to compile `ScrollView.jar`
+because the build will automatically download
+[piccolo2d-core-3.0.1.jar](https://search.maven.org/remotecontent?filepath=org/piccolo2d/piccolo2d-core/3.0.1/piccolo2d-core-3.0.1.jar) and
+[piccolo2d-extras-3.0.1.jar](https://search.maven.org/remotecontent?filepath=org/piccolo2d/piccolo2d-extras/3.0.1/piccolo2d-extras-3.0.1.jar) and
+[jaxb-api-2.3.1.jar](http://search.maven.org/remotecontent?filepath=javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar) and place them to `tesseract/java`.
+
+Just run:
+
+ $ make ScrollView.jar
+
+and follow the instruction on [Viewer Debugging](https://tesseract-ocr.github.io/tessdoc/ViewerDebugging.html).
+
+
+# CMAKE
+
+There is alternative build system based on multiplatform [cmake](https://cmake.org/)
+
+## LINUX
+
+ $ mkdir build
+ $ cd build && cmake .. && make
+ $ sudo make install
+
+
+## WINDOWS
+
+See the [documentation](https://tesseract-ocr.github.io/tessdoc/) for more information on this.