Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mcs07

macrumors newbie
Original poster
I'm attempting to get the Tesseract OCR engine to work with the iPhone.
(http://code.google.com/p/tesseract-ocr/)
Currently what I have done is compile the C++ code through the terminal using the makefile provided with the source code. I then copied the unix executable into my Xcode project, and have written an Objective-C wrapper.

This works great in the simulator, but I'm pretty sure it won't work on the device because the tesseract C++ is compiled for the Mac, not for ARM/iPhone.

Searching for a solution I came across this blog post:
http://latenitesoft.blogspot.com/2008/10/iphone-programming-tips-building-unix.html

The section explaining "The Problem" sounds identical to my problem, but unfortunately I don't really understand "The Solution" section at all.

So I was wondering if anyone else had tried something like this and got it to work, or if anyone knows of a tutorial or explanation of what to do.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.