Skip to content

Commit

Permalink
fix filemode;
Browse files Browse the repository at this point in the history
update autotools and distribution script to repository changes;
ignore doxygen generated files and langauge data files;
  • Loading branch information
zdenop committed Aug 14, 2014
1 parent 3c21c14 commit 369fabb
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 90 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ libtool
stamp-h1
tesseract.pc
config_auto.h
doc/html/*
api/tesseract
training/ambiguous_words
training/classifier_tester
Expand All @@ -46,3 +47,7 @@ training/wordlist2dawg
*.Plo
*.a

# tessdata
*.cube.*
*.tesseract_cube.*
*.traineddata
27 changes: 12 additions & 15 deletions INSTALL.SVN → INSTALL.GIT
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
autotools (LINUX/UNIX...)
======================

If you have checked out Tesseract from Subversion, you must generate the
configure script.
If you have checked out Tesseract from Subversion, you must generate
the configure script.

If you have tesseract 3.0x installation in your system, please remove it
before new build.

Known depencies 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
$ sudo make install-langs
$ make training
$ sudo make training-install

'sudo make install-langs' or 'sudo make install LANGS=' will install all
available language data files in tessdata directory.

If you want to install just few of them than run:
$ sudo make install-langs LANGS="eng ara deu"
It will install only English, Arabic and German language datafiles (if
they are present in tessdata directory)

$ sudo make install LANGS="eng ara deu"
will install tesseract library, tesseract programs and English, Arabic
and German language datafiles.

You need to install at least English langugage data file to TESSDATA_PREFIX
directory. All langugage data files can be retrieved from git repository:
$ git clone https://code.google.com/p/tesseract-ocr.tessdata/ tessdata

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.
Expand Down
33 changes: 7 additions & 26 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ endif

SUBDIRS = ccutil viewer cutil opencl ccstruct dict classify wordrec neural_networks/runtime textord cube ccmain api . tessdata doc

EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \
EXTRA_DIST = ReleaseNotes \
aclocal.m4 config configure.ac autogen.sh contrib \
tesseract.pc.in $(TRAINING_SUBDIR) java doc testing

Expand All @@ -34,31 +34,12 @@ dist-hook:
rm -rf `find $(distdir) -name .svn`
rm -rf `find $(distdir) -name .git`
rm -rf `find $(distdir) -name .deps`

# 'make install' will install only libraries and programs (no language
# data files)
# 'make install LANGS=' will install libraries, programs and all
# language datafiles in tessdata/
# 'make install LANGS="eng ara deu"' will install libraries, programs
# English, Arabic and German language datafiles if they are present
# in tessdata/
# 'make install-langs LANGS="eng ara deu"' will install only English,
# Arabic and German language datafiles if they are present
# in tessdata/
install-data-hook:
@if test $${LANGS+defined}; then \
if test "$${LANGS}" == ""; then \
echo ____All language files will be installed; \
else \
echo ___Folowing language files will be installed: "$$LANGS"; \
fi; \
cd "$(top_builddir)/tessdata" && $(MAKE) install-langs LANG="${LANGS}"; \
else \
echo No language file is installed.; \
fi;

install-langs:
@cd "$(top_builddir)/tessdata" && $(MAKE) $@
rm -rf `find $(distdir) -name .libs`
rm -rf `find $(distdir) -name *.o`
rm -rf `find $(distdir) -name *.lo`
rm -rf `find $(distdir) -name *.la`
rm -rf `find $(distdir)/training -executable -type f`
rm -rf $(distdir)/doc/html/*

ScrollView.jar:
@cd "$(top_builddir)/java" && $(MAKE) $@
Expand Down
Empty file modified doc/MOCRadaptingtesseract2.pdf
100755 → 100644
Empty file.
Empty file modified doc/PageLayoutAnalysisICDAR2.pdf
100755 → 100644
Empty file.
Empty file modified doc/tesseracticdar2007.pdf
100755 → 100644
Empty file.
49 changes: 0 additions & 49 deletions makemoredists

This file was deleted.

Empty file modified tessdata/configs/api_config
100755 → 100644
Empty file.
Empty file modified tessdata/configs/box.train.stderr
100755 → 100644
Empty file.
Empty file modified tessdata/configs/inter
100755 → 100644
Empty file.
Empty file modified tessdata/tessconfigs/matdemo
100755 → 100644
Empty file.
Empty file modified tessdata/tessconfigs/segdemo
100755 → 100644
Empty file.

0 comments on commit 369fabb

Please sign in to comment.