Skip to content
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

TesseractOCR/TesseractOCR.h Not found #6

Closed
UMAD opened this issue Nov 1, 2013 · 10 comments
Closed

TesseractOCR/TesseractOCR.h Not found #6

UMAD opened this issue Nov 1, 2013 · 10 comments

Comments

@UMAD
Copy link

UMAD commented Nov 1, 2013

hey man, I am getting <TesseractOCR/TesseractOCR.h> not found when trying to build the template project. any ideas?

@gali8
Copy link
Owner

gali8 commented Nov 4, 2013

It works for me.
Have you downloaded all the project? Download the zip from https://github.com/gali8/Tesseract-OCR-iOS

@gali8 gali8 closed this as completed Nov 4, 2013
@UMAD
Copy link
Author

UMAD commented Nov 4, 2013

Weird. Doesn't work for me although creating a project on my own and following the instructions work. But not the template project.

@gali8
Copy link
Owner

gali8 commented Nov 4, 2013

strange!

@ghost
Copy link

ghost commented Nov 18, 2013

Hi, I get the same problem when I try to run the sample project

@gali8
Copy link
Owner

gali8 commented Nov 21, 2013

Can you explain me the issue? Are you using XCode 5? iOS7? Have you warning or error messages?

@neoneye
Copy link
Contributor

neoneye commented Nov 27, 2013

I have just cloned the latest repository.

I cannot compile the "Template Framework Project.xcodeproj" and get this error

/Users/johndoe/Tesseract-OCR-iOS/Template Framework Project/Template Framework Project/G8ViewController.m:10:9: fatal error: 'TesseractOCR/TesseractOCR.h' file not found
#import <TesseractOCR/TesseractOCR.h>
        ^
1 error generated.

Xcode 5.0.2 (5A3005)
Mac OS X 10.8.5
This error happens both when I compile for simulator and for device.
This error happens both when I clone the repository and when I download the zip file.
I have not modified the project.


This error goes away if I compile the "Tesseract OCR iOS.xcodeproj" project with target set to "Template Framework Project". However this causes a runtime error Please call SetImage before attempting recognition.

@aaarbk
Copy link

aaarbk commented Dec 7, 2013

I believe the problem is with the "Framework Search Paths" value in the Build Settings. It has been set to the following location in the "Template Framework Project": /Users/Daniele/XCode/Tesseract-OCR-iOS/Products
One way to fix this is to remove the reference to the TesseractOCR.framework from the project navigator and then re-add it.

@Eldrinarion
Copy link

or add

"$(SRCROOT)/../Products/"

to your framework search path

@gali8
Copy link
Owner

gali8 commented Apr 6, 2014

+1 Eldrinarion

@manuelpaulo
Copy link

Rename the "headers" dir to "Headers" on the TesseractOCR Framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants