Compile C++ code for iPhone

Discussion in 'iOS Programming' started by mcs07, May 3, 2009.

  1. mcs07 macrumors newbie

    May 2, 2009
    I'm attempting to get the Tesseract OCR engine to work with the iPhone.
    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:

    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.

Share This Page