I am having issues with running a C++ tesseract program on Mac

67 views
Skip to first unread message

Jayanth Culli

unread,
Jul 14, 2016, 6:42:56 AM7/14/16
to tesseract-ocr
Shows the following error: Any help is highly appreciated


Undefined symbols for architecture x86_64:

  "tesseract::TessBaseAPI::GetIterator()", referenced from:

      _main in main.o

  "tesseract::TessBaseAPI::End()", referenced from:

      _main in main.o

  "tesseract::TessBaseAPI::Init(char const*, char const*, tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*, GenericVector<STRING> const*, bool)", referenced from:

      tesseract::TessBaseAPI::Init(char const*, char const*) in main.o

  "tesseract::TessBaseAPI::SetImage(Pix*)", referenced from:

      _main in main.o

  "tesseract::TessBaseAPI::Recognize(ETEXT_DESC*)", referenced from:

      _main in main.o

  "tesseract::TessBaseAPI::TessBaseAPI()", referenced from:

      _main in main.o

  "tesseract::LTRResultIterator::WordFontAttributes(bool*, bool*, bool*, bool*, bool*, bool*, int*, int*) const", referenced from:

      _main in main.o

  "_pixDestroy", referenced from:

      _main in main.o

  "_pixRead", referenced from:

      _main in main.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reply all
Reply to author
Forward
0 new messages