-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build Template Framework Project in Xcode 6.1/OSX10.10 targeting simulator #60
Comments
Yes, it not works for x86_64 Mac. |
What a disappointing resolution. Are there any plans to support development on a x86_64 Mac? What is the suggested workaround? |
As soon as possible. |
@tuler @zachberger This is a side effect of the recent commit I pushed to upgrade the Tesseract lib to 3.03. Unfortunately I'm not sure how to fix it to work on x86_64 (I was just using this script out-of-the-box to build the libs: https://gist.github.com/williamsodell/8846486), but I can confirm that you should be able to build the Template Framework Project for the iPhone 4S and iPhone 5 simulators since they use i386 (it works for me on OSX 10.10 in Xcode 6.1). I know it's not ideal since you don't get to test the screen resolution for the iPhone 5S/6/6+, but would doing that help you out? Alternatively, you could use an earlier commit for this repo that uses the old libs for the Tesseract library (3.02). This one should work for you: 2a98d82 Also note that despite the project not building in the simulator, it should work on any real iPhone hardware. I am using the latest commit in the repo and it works great on my iPhone 6. |
Thanks @kevincon for the excellent response. I've submitted a pull request that explains this limitation in the README. |
This should be resolved by #71, which is now the latest CocoaPods release. Update your podfile to use 3.1.1 and you should be able to use the x86_64-based simulators again:
I'll close the issue for now, but feel free to reopen it if it's still not working for you. |
TesseractOCR Group
(null): Ld: warning: ignoring file TesseractOCR/lib/libtesseract_all.a, missing required architecture x86_64 in file TesseractOCR/lib/libtesseract_all.a (4 slices)ignoring file TesseractOCR/lib/liblept.a, missing required architecture x86_64 in file TesseractOCR/lib/liblept.a (4 slices)
Template Framework Project Group
Undefined symbols for architecture x86_64:
"tesseract::TessBaseAPI::GetBoxText(int)", referenced from:
-[Tesseract characterBoxes] in TesseractOCR
"tesseract::TessBaseAPI::GetIterator()", referenced from:
-[Tesseract getConfidences:] in TesseractOCR
"tesseract::TessBaseAPI::GetUTF8Text()", referenced from:
-[Tesseract recognizedText] in TesseractOCR
"tesseract::TessBaseAPI::SetVariable(char const_, char const_)", referenced from:
-[Tesseract setVariableValue:forKey:] in TesseractOCR
-[Tesseract loadVariables] in TesseractOCR
"tesseract::TessBaseAPI::SetRectangle(int, int, int, int)", referenced from:
-[Tesseract setRect:] in TesseractOCR
"tesseract::TessBaseAPI::Init(char const_, char const_, tesseract::OcrEngineMode, char*, int, GenericVector const, GenericVector const_, bool)", referenced from:
tesseract::TessBaseAPI::Init(char const_, char const_) in TesseractOCR
"tesseract::TessBaseAPI::Version()", referenced from:
+[Tesseract version] in TesseractOCR
"tesseract::TessBaseAPI::SetImage(Pix const_)", referenced from:
-[Tesseract setImage:] in TesseractOCR
"tesseract::TessBaseAPI::Recognize(ETEXT_DESC_)", referenced from:
-[Tesseract recognize] in TesseractOCR
"tesseract::TessBaseAPI::TessBaseAPI()", referenced from:
-[Tesseract initPrivateWithDataPath:language:] in TesseractOCR
"tesseract::ImageThresholder::GetPixRect()", referenced from:
-[Tesseract setImage:] in TesseractOCR
"tesseract::ImageThresholder::SetImage(unsigned char const_, int, int, int, int)", referenced from:
-[Tesseract setImage:] in TesseractOCR
"tesseract::ImageThresholder::ImageThresholder()", referenced from:
-[Tesseract setImage:] in TesseractOCR
"tesseract::PageIterator::BoundingBox(tesseract::PageIteratorLevel, int_, int_, int_, int_) const", referenced from:
-[Tesseract getConfidences:] in TesseractOCR
"tesseract::LTRResultIterator::Confidence(tesseract::PageIteratorLevel) const", referenced from:
-[Tesseract getConfidences:] in TesseractOCR
"_pixDestroy", referenced from:
-[Tesseract dealloc] in TesseractOCR
-[Tesseract setImage:] in TesseractOCR
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: