Hello,
I'm having some issues with linking when I attempt to use Tesseract with
OpenCV on Xcode 4.6.3. I have the C++ standard library set to libstdc++,
and this works for all of my OpenCV code. I also have my header search path
set to /usr/local/include/**, and this successfully works with my OpenCV
code, and also seems to work for the Tesseract code because Xcode isn't
giving me any inline errors, and the autocomplete options for Tesseract
show up when I type the code. However, when I go to compile I get several
linking errors.
Undefined symbols for architecture x86_64:
"tesseract::TessBaseAPI::GetUTF8Text()", referenced from:
tesseractTest() in main.o
"tesseract::TessBaseAPI::End()", referenced from:
tesseractTest() 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 const*)", referenced from:
tesseractTest() in main.o
"tesseract::TessBaseAPI::TessBaseAPI()", referenced from:
tesseractTest() in main.o
"_pixDestroy", referenced from:
tesseractTest() in main.o
"_pixRead", referenced from:
tesseractTest() 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)
The code I am using is taken verbatim from the APIExample on the Tesseract
Wiki. Any help with this would be greatly appreciated! Thanks.
--
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
---
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.