Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-03-2009, 09:03 AM   #1 (permalink)
mcs07
New Member
 
Join Date: May 2009
Posts: 2
mcs07 is on a distinguished road
Default Compile C++ code for iPhone

I'm attempting to get the Tesseract OCR engine to work with the iPhone.
(tesseract-ocr - Google Code)
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:
Latenitesoft: Mac & iPhone Applications: iPhone Programming Tips: building Unix software

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.
mcs07 is offline   Reply With Quote
 

» Advertisements
» Online Users: 449
17 members and 432 guests
acegames, buggen, ChrisYates, ClerurcifeDer, e2applets, EvilElf, fredidf, gdogdev, guusleijsten, iAppDeveloper, jessicagx69, kevinbertman, muhimranss, pbart, SLIC, Wikiboo, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,637
Threads: 94,101
Posts: 402,820
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jessicagx69
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:07 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.