mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 07:29:07 +08:00
Fix linker error with disabled legacy engine (issue #2532)
Commit 3871caae86
introduced a build
regression when the legacy engine was disabled.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
c11110992b
commit
fd001c3ab9
@ -7,6 +7,10 @@ AM_CPPFLAGS += \
|
|||||||
-I$(top_srcdir)/src/opencl
|
-I$(top_srcdir)/src/opencl
|
||||||
AM_CPPFLAGS += $(OPENCL_CPPFLAGS)
|
AM_CPPFLAGS += $(OPENCL_CPPFLAGS)
|
||||||
|
|
||||||
|
if DISABLED_LEGACY_ENGINE
|
||||||
|
AM_CPPFLAGS += -DDISABLED_LEGACY_ENGINE
|
||||||
|
endif
|
||||||
|
|
||||||
if VISIBILITY
|
if VISIBILITY
|
||||||
AM_CPPFLAGS += -DTESS_EXPORTS \
|
AM_CPPFLAGS += -DTESS_EXPORTS \
|
||||||
-fvisibility=hidden -fvisibility-inlines-hidden
|
-fvisibility=hidden -fvisibility-inlines-hidden
|
||||||
|
@ -469,6 +469,7 @@ bool BlamerBundle::GuidedSegsearchNeeded(const WERD_CHOICE *best_choice) const {
|
|||||||
!ChoiceIsCorrect(best_choice);
|
!ChoiceIsCorrect(best_choice);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(DISABLED_LEGACY_ENGINE)
|
||||||
// Setup ready to guide the segmentation search to the correct segmentation.
|
// Setup ready to guide the segmentation search to the correct segmentation.
|
||||||
void BlamerBundle::InitForSegSearch(const WERD_CHOICE* best_choice,
|
void BlamerBundle::InitForSegSearch(const WERD_CHOICE* best_choice,
|
||||||
MATRIX* ratings, UNICHAR_ID wildcard_id,
|
MATRIX* ratings, UNICHAR_ID wildcard_id,
|
||||||
@ -501,6 +502,8 @@ void BlamerBundle::InitForSegSearch(const WERD_CHOICE* best_choice,
|
|||||||
}
|
}
|
||||||
} // end for blamer_bundle->correct_segmentation_cols/rows
|
} // end for blamer_bundle->correct_segmentation_cols/rows
|
||||||
}
|
}
|
||||||
|
#endif // !defined(DISABLED_LEGACY_ENGINE)
|
||||||
|
|
||||||
// Returns true if the guided segsearch is in progress.
|
// Returns true if the guided segsearch is in progress.
|
||||||
bool BlamerBundle::GuidedSegsearchStillGoing() const {
|
bool BlamerBundle::GuidedSegsearchStillGoing() const {
|
||||||
return segsearch_is_looking_for_blame_;
|
return segsearch_is_looking_for_blame_;
|
||||||
|
Loading…
Reference in New Issue
Block a user