mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
another fix MinGW+MSYS
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@709 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
d4d4b8aad8
commit
3115fbfdcb
@ -26,7 +26,7 @@ they are present in tessdata directory)
|
||||
To compile ScrollView.jar you need to download piccolo.JAVA[1] from
|
||||
http://www.piccolo2d.org/download.html and extract
|
||||
piccolo-1.2/build/piccolo.jar to tesseract/java as piccolo-1.2.jar and
|
||||
piccolo-1.2/build/piccolox.jar to tesseract/java as piccolo-1.2x.jar.
|
||||
piccolo-1.2/build/piccolox.jar to tesseract/java as piccolox-1.2.jar.
|
||||
|
||||
Than run:
|
||||
$ make ScrollView.jar
|
||||
|
@ -65,6 +65,11 @@ bin_PROGRAMS = tesseract
|
||||
tesseract_SOURCES = $(top_srcdir)/api/tesseractmain.cpp
|
||||
tesseract_LDADD = libtesseract.la
|
||||
tesseract_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
if MINGW
|
||||
tesseract_LDADD += -lws2_32
|
||||
endif
|
||||
|
||||
if VISIBILITY
|
||||
tesseract_CPPFLAGS += -DTESS_IMPORTS
|
||||
endif
|
||||
|
@ -20,10 +20,9 @@ noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
|
||||
|
||||
libtesseract_training_la_SOURCES = \
|
||||
commontraining.cpp
|
||||
#libtesseract_training_la_LDFLAGS = -static
|
||||
|
||||
libtesseract_tessopt_la_SOURCES = \
|
||||
tessopt.cpp
|
||||
#libtesseract_tessopt_la_LDFLAGS = -static
|
||||
|
||||
bin_PROGRAMS = ambiguous_words classifier_tester cntraining combine_tessdata dawg2wordlist mftraining shapeclustering unicharset_extractor wordlist2dawg
|
||||
|
||||
@ -216,3 +215,15 @@ else
|
||||
wordlist2dawg_LDADD += \
|
||||
../api/libtesseract.la
|
||||
endif
|
||||
|
||||
if MINGW
|
||||
ambiguous_words_LDADD += -lws2_32
|
||||
classifier_tester_LDADD += -lws2_32
|
||||
cntraining_LDADD += -lws2_32
|
||||
combine_tessdata_LDADD += -lws2_32
|
||||
dawg2wordlist_LDADD += -lws2_32
|
||||
mftraining_LDADD += -lws2_32
|
||||
shapeclustering_LDADD += -lws2_32
|
||||
unicharset_extractor_LDADD += -lws2_32
|
||||
wordlist2dawg_LDADD += -lws2_32
|
||||
endif
|
@ -1,3 +1,5 @@
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/ccutil
|
||||
|
||||
if VISIBILITY
|
||||
AM_CPPFLAGS += -DTESS_EXPORTS \
|
||||
-fvisibility=hidden -fvisibility-inlines-hidden
|
||||
|
Loading…
Reference in New Issue
Block a user