forked from tesseract-ocr/tesseract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
zdenop@gmail.com
committed
Oct 16, 2011
1 parent
bf3ae64
commit 67f4700
Showing
19 changed files
with
191 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
libtesseract_api_la_LIBADD = \ | ||
$(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 | ||
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 | ||
|
||
bin_PROGRAMS = tesseract | ||
tesseract_SOURCES = tesseractmain.cpp | ||
if USING_MULTIPLELIBS | ||
tesseract_LDADD = \ | ||
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 \ | ||
../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 | ||
$(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 = $(top_srcdir)/api/tesseractmain.cpp | ||
tesseract_LDADD = libtesseract.la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.