Skip to content

Commit

Permalink
Fixed Android build breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
theraysmith committed Dec 6, 2016
1 parent 6551779 commit 7744da9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ccmain/tessedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ bool Tesseract::init_tesseract_lang_data(
// Load the unicharset
if (tessedit_ocr_engine_mode == OEM_LSTM_ONLY) {
// Avoid requiring a unicharset when we aren't running base tesseract.
#ifndef ANDROID_BUILD
unicharset.CopyFrom(lstm_recognizer_->GetUnicharset());
#endif
} else if (!tessdata_manager.SeekToStart(TESSDATA_UNICHARSET) ||
!unicharset.load_from_file(tessdata_manager.GetDataFilePtr())) {
return false;
Expand Down

0 comments on commit 7744da9

Please sign in to comment.