mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
fixed "one lib" build on linux; runautoconf renamed to autogen.sh;
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@631 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
bf3ae643e5
commit
67f47008c7
15
INSTALL.SVN
15
INSTALL.SVN
@ -1,15 +1,12 @@
|
||||
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.
|
||||
|
||||
So, the steps for making Tesseract are:
|
||||
|
||||
* ./runautoconf # ignore warnings
|
||||
* ./autogen.sh
|
||||
* ./configure
|
||||
* make
|
||||
* make install
|
||||
|
||||
Note that ./runautoconf may generate some warnings:
|
||||
|
||||
-- quoting in some /usr/share/.../... .m4 files
|
||||
-- old uses of datarootdir
|
||||
|
||||
They don't seem to hurt anything. We haven't found a good way of eliminating them yet.
|
||||
|
24
Makefile.am
24
Makefile.am
@ -1,5 +1,5 @@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
SUBDIRS = ccstruct ccutil classify cube cutil dict image neural_networks/runtime textord viewer wordrec ccmain training tessdata testing java api doc
|
||||
SUBDIRS = ccutil viewer cutil image ccstruct dict classify wordrec neural_networks/runtime textord cube ccmain api . training java tessdata testing doc
|
||||
#if USING_GETTEXT
|
||||
#SUBDIRS += po
|
||||
#AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
|
||||
@ -10,28 +10,6 @@ EXTRA_DIST = eurotext.tif phototest.tif ReleaseNotes \
|
||||
|
||||
#EXTRA_DIST = doc/html doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.pdf doc/@PACKAGE_NAME@_@PACKAGE_VERSION@.ps.gz
|
||||
|
||||
lib_LTLIBRARIES = libtesseract.la
|
||||
libtesseract_la_SOURCES =
|
||||
# Dummy C++ source to cause C++ linking.
|
||||
# see http://www.gnu.org/s/hello/manual/automake/Libtool-Convenience-Libraries.html#Libtool-Convenience-Libraries
|
||||
nodist_EXTRA_libtesseract_la_SOURCES = dummy.cxx
|
||||
libtesseract_la_LIBADD = \
|
||||
api/libtesseract_api.la \
|
||||
ccmain/libtesseract_main.la \
|
||||
cube/libtesseract_cube.la \
|
||||
neural_networks/runtime/libtesseract_neural.la \
|
||||
textord/libtesseract_textord.la \
|
||||
wordrec/libtesseract_wordrec.la \
|
||||
classify/libtesseract_classify.la \
|
||||
dict/libtesseract_dict.la \
|
||||
ccstruct/libtesseract_ccstruct.la \
|
||||
image/libtesseract_image.la \
|
||||
cutil/libtesseract_cutil.la \
|
||||
viewer/libtesseract_viewer.la \
|
||||
ccutil/libtesseract_ccutil.la
|
||||
|
||||
libtesseract_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
|
||||
dist-hook:
|
||||
# Need to remove .svn directories from directories
|
||||
# added using EXTRA_DIST. $(distdir)/tessdata would in
|
||||
|
1
README
1
README
@ -89,6 +89,7 @@ Non-Windows (or Cygwin):
|
||||
You have to tell Tesseract through a standard unix mechanism where to
|
||||
find its data directory. You must either:
|
||||
|
||||
./autogen.sh
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
|
@ -1,54 +1,59 @@
|
||||
SUBDIRS =
|
||||
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"\
|
||||
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct \
|
||||
-I$(top_srcdir)/image -I$(top_srcdir)/viewer \
|
||||
-I$(top_srcdir)/ccops -I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/textord -I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/classify -I$(top_srcdir)/ccmain \
|
||||
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil \
|
||||
-I$(top_srcdir)/textord
|
||||
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil
|
||||
|
||||
include_HEADERS = \
|
||||
apitypes.h baseapi.h pageiterator.h resultiterator.h tesseractmain.h
|
||||
lib_LTLIBRARIES =
|
||||
|
||||
if !USING_MULTIPLELIBS
|
||||
noinst_LTLIBRARIES = libtesseract_api.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_api.la
|
||||
lib_LTLIBRARIES += libtesseract_api.la
|
||||
libtesseract_api_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
endif
|
||||
|
||||
libtesseract_api_la_SOURCES = baseapi.cpp pageiterator.cpp resultiterator.cpp
|
||||
libtesseract_api_la_LIBADD = \
|
||||
../ccmain/libtesseract_main.la \
|
||||
../cube/libtesseract_cube.la \
|
||||
../neural_networks/runtime/libtesseract_neural.la \
|
||||
../textord/libtesseract_textord.la \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../image/libtesseract_image.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../ccutil/libtesseract_ccutil.la
|
||||
$(top_srcdir)/ccmain/libtesseract_main.la \
|
||||
$(top_srcdir)/cube/libtesseract_cube.la \
|
||||
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
|
||||
$(top_srcdir)/textord/libtesseract_textord.la \
|
||||
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
|
||||
$(top_srcdir)/classify/libtesseract_classify.la \
|
||||
$(top_srcdir)/dict/libtesseract_dict.la \
|
||||
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
|
||||
$(top_srcdir)/image/libtesseract_image.la \
|
||||
$(top_srcdir)/cutil/libtesseract_cutil.la \
|
||||
$(top_srcdir)/viewer/libtesseract_viewer.la \
|
||||
$(top_srcdir)/ccutil/libtesseract_ccutil.la
|
||||
endif
|
||||
libtesseract_api_la_SOURCES = baseapi.cpp pageiterator.cpp resultiterator.cpp
|
||||
|
||||
lib_LTLIBRARIES += libtesseract.la
|
||||
libtesseract_la_LDFLAGS =
|
||||
libtesseract_la_SOURCES =
|
||||
# Dummy C++ source to cause C++ linking.
|
||||
# see http://www.gnu.org/s/hello/manual/automake/Libtool-Convenience-Libraries.html#Libtool-Convenience-Libraries
|
||||
nodist_EXTRA_libtesseract_la_SOURCES = dummy.cxx
|
||||
libtesseract_la_LIBADD = \
|
||||
libtesseract_api.la \
|
||||
$(top_srcdir)/ccmain/libtesseract_main.la \
|
||||
$(top_srcdir)/cube/libtesseract_cube.la \
|
||||
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
|
||||
$(top_srcdir)/textord/libtesseract_textord.la \
|
||||
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
|
||||
$(top_srcdir)/classify/libtesseract_classify.la \
|
||||
$(top_srcdir)/dict/libtesseract_dict.la \
|
||||
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
|
||||
$(top_srcdir)/image/libtesseract_image.la \
|
||||
$(top_srcdir)/cutil/libtesseract_cutil.la \
|
||||
$(top_srcdir)/viewer/libtesseract_viewer.la \
|
||||
$(top_srcdir)/ccutil/libtesseract_ccutil.la
|
||||
|
||||
libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_la_LDFLAGS += -L./ -L../ -L../api -L../ccutil -L../viewer -L../cutil -L../image -L../ccstruct -L../dict -L../classify -L../wordrec -L../neural_networks/runtime -L../textord -L../cube -L../ccmain
|
||||
|
||||
bin_PROGRAMS = tesseract
|
||||
tesseract_SOURCES = tesseractmain.cpp
|
||||
if USING_MULTIPLELIBS
|
||||
tesseract_LDADD = \
|
||||
libtesseract_api.la \
|
||||
../ccmain/libtesseract_main.la \
|
||||
../textord/libtesseract_textord.la \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../image/libtesseract_image.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../ccutil/libtesseract_ccutil.la
|
||||
else
|
||||
tesseract_LDADD = \
|
||||
libtesseract.la
|
||||
endif
|
||||
|
||||
tesseract_SOURCES = $(top_srcdir)/api/tesseractmain.cpp
|
||||
tesseract_LDADD = libtesseract.la
|
||||
|
@ -36,7 +36,6 @@
|
||||
|
||||
#include "resultiterator.h"
|
||||
#include "thresholder.h"
|
||||
#include "tesseractmain.h"
|
||||
#include "tesseractclass.h"
|
||||
#include "pageres.h"
|
||||
#include "tessvars.h"
|
||||
|
@ -3,8 +3,7 @@ AM_CPPFLAGS = \
|
||||
-DUSE_STD_NAMESPACE \
|
||||
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct \
|
||||
-I$(top_srcdir)/image -I$(top_srcdir)/viewer \
|
||||
-I$(top_srcdir)/ccops -I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/classify \
|
||||
-I$(top_srcdir)/classify -I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil \
|
||||
-I$(top_srcdir)/neural_networks/runtime -I$(top_srcdir)/cube \
|
||||
-I$(top_srcdir)/textord
|
||||
@ -24,6 +23,17 @@ noinst_LTLIBRARIES = libtesseract_main.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_main.la
|
||||
libtesseract_main_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_main_la_LIBADD = \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../textord/libtesseract_textord.la \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../cube/libtesseract_cube.la
|
||||
|
||||
endif
|
||||
|
||||
libtesseract_main_la_SOURCES = \
|
||||
@ -36,5 +46,3 @@ libtesseract_main_la_SOURCES = \
|
||||
tessbox.cpp tessedit.cpp tesseractclass.cpp tessvars.cpp \
|
||||
tfacepp.cpp thresholder.cpp \
|
||||
werdit.cpp
|
||||
libtesseract_main_la_LIBADD = \
|
||||
../wordrec/libtesseract_wordrec.la
|
||||
|
@ -18,6 +18,11 @@ noinst_LTLIBRARIES = libtesseract_ccstruct.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_ccstruct.la
|
||||
libtesseract_ccstruct_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_ccstruct_la_LIBADD = \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../image/libtesseract_image.la \
|
||||
../viewer/libtesseract_viewer.la
|
||||
endif
|
||||
|
||||
libtesseract_ccstruct_la_SOURCES = \
|
||||
|
@ -20,6 +20,13 @@ noinst_LTLIBRARIES = libtesseract_classify.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_classify.la
|
||||
libtesseract_classify_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_classify_la_LIBADD = \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../image/libtesseract_image.la \
|
||||
../viewer/libtesseract_viewer.la
|
||||
endif
|
||||
|
||||
libtesseract_classify_la_SOURCES = \
|
||||
|
21
configure.ac
21
configure.ac
@ -19,7 +19,7 @@ AC_CANONICAL_HOST
|
||||
# documentation.
|
||||
# TODO(luc) Generate good documentation using doxygen or equivalent
|
||||
PACKAGE_YEAR=2011
|
||||
PACKAGE_DATE="08/25"
|
||||
PACKAGE_DATE="10/16"
|
||||
|
||||
AC_DEFINE_UNQUOTED(PACKAGE_NAME,["${PACKAGE_NAME}"],[Name of package])
|
||||
AC_DEFINE_UNQUOTED(PACKAGE_VERSION,["${PACKAGE_VERSION}"],[Version number])
|
||||
@ -83,7 +83,17 @@ if test "$enable_graphics" = "no"; then
|
||||
AC_DEFINE([DISABLE_GRAPHICS], [], [Disable graphics])
|
||||
fi
|
||||
|
||||
localedir='${prefix}/share/locale'
|
||||
# check whether to build multiple libraries
|
||||
AC_MSG_CHECKING(--enable-multiple-libraries argument)
|
||||
AC_ARG_ENABLE([multiple-libraries],
|
||||
[ --enable-multiple-libraries Enable multiple libraries.],
|
||||
[enable_mlibs=$enableval],
|
||||
[enable_mlibs="no"])
|
||||
AC_MSG_RESULT($enable_mlibs)
|
||||
AM_CONDITIONAL([USING_MULTIPLELIBS], [test "$enable_mlibs" = "yes"])
|
||||
|
||||
|
||||
#localedir='${prefix}/share/locale'
|
||||
|
||||
# Not used yet, so disable
|
||||
#AC_ARG_ENABLE([gettext],
|
||||
@ -100,13 +110,6 @@ localedir='${prefix}/share/locale'
|
||||
#fi
|
||||
#AM_CONDITIONAL([USING_GETTEXT], [test "$enable_gettext" = "yes"])
|
||||
|
||||
AC_ARG_ENABLE([multiple-libraries],
|
||||
[ --enable-multiple-libraries Enable multiple libraries (default).],
|
||||
[enable_mlibs=$enableeval],
|
||||
[enable_mlibs="yes"])
|
||||
AC_MSG_RESULT($enable_mlibs)
|
||||
AM_CONDITIONAL([USING_MULTIPLELIBS], [test "$enable_mlibs" = "yes"])
|
||||
|
||||
# Always look into a "gnu" directory.
|
||||
curwd=`pwd`
|
||||
if test -d $curwd/gnu/include ; then
|
||||
|
@ -26,6 +26,16 @@ noinst_LTLIBRARIES = libtesseract_cube.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_cube.la
|
||||
libtesseract_cube_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_cube_la_LIBADD = \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../neural_networks/runtime/libtesseract_neural.la \
|
||||
../image/libtesseract_image.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../dict/libtesseract_dict.la
|
||||
endif
|
||||
|
||||
libtesseract_cube_la_SOURCES = \
|
||||
|
@ -11,6 +11,9 @@ noinst_LTLIBRARIES = libtesseract_cutil.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_cutil.la
|
||||
libtesseract_cutil_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_cutil_la_LIBADD = \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../viewer/libtesseract_viewer.la
|
||||
endif
|
||||
|
||||
libtesseract_cutil_la_SOURCES = \
|
||||
|
@ -11,6 +11,12 @@ noinst_LTLIBRARIES = libtesseract_dict.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_dict.la
|
||||
libtesseract_dict_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_dict_la_LIBADD = \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../image/libtesseract_image.la \
|
||||
../viewer/libtesseract_viewer.la
|
||||
endif
|
||||
|
||||
libtesseract_dict_la_SOURCES = \
|
||||
|
@ -10,6 +10,9 @@ noinst_LTLIBRARIES = libtesseract_image.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_image.la
|
||||
libtesseract_image_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_image_la_LIBADD = \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../viewer/libtesseract_viewer.la
|
||||
endif
|
||||
|
||||
libtesseract_image_la_SOURCES = \
|
||||
|
@ -1,6 +1,4 @@
|
||||
datadir = @datadir@/tessdata
|
||||
data_DATA = $(wildcard *.traineddata) \
|
||||
$(wildcard *.cube.*)
|
||||
|
||||
data_DATA = ./ara.traineddata ./bul.traineddata ./cat.traineddata ./ces.traineddata ./chi_sim.traineddata ./chi_tra.traineddata ./dan-frak.traineddata ./dan.traineddata ./deu-frak.traineddata ./deu.traineddata ./ell.traineddata ./eng.traineddata ./fin.traineddata ./fra.traineddata ./heb.traineddata ./hin.traineddata ./hrv.traineddata ./hun.traineddata ./ind.traineddata ./ita.traineddata ./jpn.traineddata ./kor.traineddata ./lav.traineddata ./lit.traineddata ./nld.traineddata ./nor.traineddata ./osd.traineddata ./pol.traineddata ./por.traineddata ./ron.traineddata ./rus.traineddata ./slk-frak.traineddata ./slk.traineddata ./slv.traineddata ./spa.traineddata ./srp.traineddata ./swe.traineddata ./tgl.traineddata ./tha.traineddata ./tur.traineddata ./ukr.traineddata ./vie.traineddata \
|
||||
./ara.cube.bigrams ./ara.cube.fold ./ara.cube.lm ./ara.cube.nn ./ara.cube.params ./ara.cube.size ./ara.cube.word-freq ./eng.cube.bigrams ./eng.cube.fold ./eng.cube.lm ./eng.cube.nn ./eng.cube.params ./eng.cube.size ./eng.cube.word-freq ./hin.cube.bigrams ./hin.cube.fold ./hin.cube.lm ./hin.cube.nn ./hin.cube.params ./hin.cube.word-freq
|
||||
SUBDIRS = configs tessconfigs
|
||||
|
||||
|
@ -22,6 +22,15 @@ noinst_LTLIBRARIES = libtesseract_textord.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_textord.la
|
||||
libtesseract_textord_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_textord_la_LIBADD = \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../image/libtesseract_image.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../dict/libtesseract_dict.la
|
||||
endif
|
||||
|
||||
libtesseract_textord_la_SOURCES = \
|
||||
|
@ -2,109 +2,107 @@ SUBDIRS =
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct \
|
||||
-I$(top_srcdir)/image -I$(top_srcdir)/viewer \
|
||||
-I$(top_srcdir)/ccops -I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/textord -I$(top_srcdir)/dict \
|
||||
-I$(top_srcdir)/classify -I$(top_srcdir)/display \
|
||||
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil \
|
||||
-I$(top_srcdir)/textord
|
||||
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil
|
||||
|
||||
include_HEADERS = \
|
||||
commontraining.h mergenf.h tessopt.h
|
||||
commontraining.h tessopt.h mergenf.h
|
||||
|
||||
if !USING_MULTIPLELIBS
|
||||
noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
|
||||
libtesseract_training_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_tessopt_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
endif
|
||||
|
||||
libtesseract_training_la_SOURCES = \
|
||||
commontraining.cpp
|
||||
libtesseract_training_la_LDFLAGS = -static
|
||||
libtesseract_tessopt_la_SOURCES = \
|
||||
tessopt.cpp
|
||||
libtesseract_tessopt_la_LDFLAGS = -static
|
||||
|
||||
bin_PROGRAMS = cntraining combine_tessdata mftraining unicharset_extractor wordlist2dawg
|
||||
combine_tessdata_SOURCES = combine_tessdata.cpp
|
||||
if USING_MULTIPLELIBS
|
||||
combine_tessdata_LDADD = \
|
||||
../ccutil/libtesseract_ccutil.la
|
||||
$(top_srcdir)/ccutil/libtesseract_ccutil.la
|
||||
else
|
||||
combine_tessdata_LDADD = \
|
||||
../libtesseract.la
|
||||
$(top_srcdir)/api/libtesseract.la
|
||||
endif
|
||||
|
||||
cntraining_SOURCES = cntraining.cpp
|
||||
if USING_MULTIPLELIBS
|
||||
cntraining_LDADD = \
|
||||
libtesseract_training.la \
|
||||
libtesseract_tessopt.la \
|
||||
../textord/libtesseract_textord.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../image/libtesseract_image.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../ccmain/libtesseract_main.la \
|
||||
../cube/libtesseract_cube.la \
|
||||
../neural_networks/runtime/libtesseract_neural.la \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../ccutil/libtesseract_ccutil.la
|
||||
libtesseract_tessopt.la
|
||||
if USING_MULTIPLELIBS
|
||||
cntraining_LDADD += \
|
||||
$(top_srcdir)/textord/libtesseract_textord.la \
|
||||
$(top_srcdir)/classify/libtesseract_classify.la \
|
||||
$(top_srcdir)/dict/libtesseract_dict.la \
|
||||
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
|
||||
$(top_srcdir)/image/libtesseract_image.la \
|
||||
$(top_srcdir)/cutil/libtesseract_cutil.la \
|
||||
$(top_srcdir)/viewer/libtesseract_viewer.la \
|
||||
$(top_srcdir)/ccmain/libtesseract_main.la \
|
||||
$(top_srcdir)/cube/libtesseract_cube.la \
|
||||
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
|
||||
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
|
||||
$(top_srcdir)/ccutil/libtesseract_ccutil.la
|
||||
else
|
||||
cntraining_LDADD = \
|
||||
../libtesseract.la
|
||||
cntraining_LDADD += \
|
||||
$(top_srcdir)/api/libtesseract.la
|
||||
endif
|
||||
|
||||
mftraining_SOURCES = mftraining.cpp mergenf.cpp
|
||||
if USING_MULTIPLELIBS
|
||||
mftraining_LDADD = \
|
||||
libtesseract_training.la \
|
||||
libtesseract_tessopt.la \
|
||||
../textord/libtesseract_textord.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../image/libtesseract_image.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../ccmain/libtesseract_main.la \
|
||||
../cube/libtesseract_cube.la \
|
||||
../neural_networks/runtime/libtesseract_neural.la \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../ccutil/libtesseract_ccutil.la
|
||||
libtesseract_tessopt.la
|
||||
if USING_MULTIPLELIBS
|
||||
mftraining_LDADD += \
|
||||
$(top_srcdir)/textord/libtesseract_textord.la \
|
||||
$(top_srcdir)/classify/libtesseract_classify.la \
|
||||
$(top_srcdir)/dict/libtesseract_dict.la \
|
||||
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
|
||||
$(top_srcdir)/image/libtesseract_image.la \
|
||||
$(top_srcdir)/cutil/libtesseract_cutil.la \
|
||||
$(top_srcdir)/viewer/libtesseract_viewer.la \
|
||||
$(top_srcdir)/ccmain/libtesseract_main.la \
|
||||
$(top_srcdir)/cube/libtesseract_cube.la \
|
||||
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
|
||||
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
|
||||
$(top_srcdir)/ccutil/libtesseract_ccutil.la
|
||||
else
|
||||
mftraining_LDADD = \
|
||||
../libtesseract.la
|
||||
mftraining_LDADD += \
|
||||
$(top_srcdir)/api/libtesseract.la
|
||||
endif
|
||||
|
||||
unicharset_extractor_SOURCES = unicharset_extractor.cpp
|
||||
unicharset_extractor_LDADD = \
|
||||
libtesseract_tessopt.la
|
||||
if USING_MULTIPLELIBS
|
||||
unicharset_extractor_LDADD = \
|
||||
libtesseract_tessopt.la \
|
||||
../ccutil/libtesseract_ccutil.la
|
||||
unicharset_extractor_LDADD += \
|
||||
$(top_srcdir)/ccutil/libtesseract_ccutil.la
|
||||
else
|
||||
unicharset_extractor_LDADD = \
|
||||
../libtesseract.la
|
||||
unicharset_extractor_LDADD += \
|
||||
$(top_srcdir)/api/libtesseract.la
|
||||
endif
|
||||
|
||||
wordlist2dawg_SOURCES = wordlist2dawg.cpp
|
||||
wordlist2dawg_LDADD = \
|
||||
libtesseract_tessopt.la
|
||||
if USING_MULTIPLELIBS
|
||||
wordlist2dawg_LDADD = \
|
||||
libtesseract_tessopt.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../image/libtesseract_image.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../viewer/libtesseract_viewer.la \
|
||||
../ccmain/libtesseract_main.la \
|
||||
../cube/libtesseract_cube.la \
|
||||
../neural_networks/runtime/libtesseract_neural.la \
|
||||
../wordrec/libtesseract_wordrec.la \
|
||||
../textord/libtesseract_textord.la \
|
||||
../ccutil/libtesseract_ccutil.la
|
||||
wordlist2dawg_LDADD += \
|
||||
$(top_srcdir)/classify/libtesseract_classify.la \
|
||||
$(top_srcdir)/dict/libtesseract_dict.la \
|
||||
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
|
||||
$(top_srcdir)/image/libtesseract_image.la \
|
||||
$(top_srcdir)/cutil/libtesseract_cutil.la \
|
||||
$(top_srcdir)/viewer/libtesseract_viewer.la \
|
||||
$(top_srcdir)/ccmain/libtesseract_main.la \
|
||||
$(top_srcdir)/cube/libtesseract_cube.la \
|
||||
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
|
||||
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
|
||||
$(top_srcdir)/textord/libtesseract_textord.la \
|
||||
$(top_srcdir)/ccutil/libtesseract_ccutil.la
|
||||
else
|
||||
wordlist2dawg_LDADD = \
|
||||
../libtesseract.la
|
||||
wordlist2dawg_LDADD += \
|
||||
$(top_srcdir)/api/libtesseract.la
|
||||
endif
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "mf.h"
|
||||
#include "clusttool.h"
|
||||
#include "cluster.h"
|
||||
#include "mergenf.h"
|
||||
#include "tessopt.h"
|
||||
#include "featdefs.h"
|
||||
#include "efio.h"
|
||||
|
@ -18,6 +18,14 @@ noinst_LTLIBRARIES = libtesseract_wordrec.la
|
||||
else
|
||||
lib_LTLIBRARIES = libtesseract_wordrec.la
|
||||
libtesseract_wordrec_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
||||
libtesseract_wordrec_la_LIBADD = \
|
||||
../ccstruct/libtesseract_ccstruct.la \
|
||||
../ccutil/libtesseract_ccutil.la \
|
||||
../cutil/libtesseract_cutil.la \
|
||||
../classify/libtesseract_classify.la \
|
||||
../image/libtesseract_image.la \
|
||||
../dict/libtesseract_dict.la \
|
||||
../viewer/libtesseract_viewer.la
|
||||
endif
|
||||
|
||||
libtesseract_wordrec_la_SOURCES = \
|
||||
|
Loading…
Reference in New Issue
Block a user