Tesseract 3.0 for iPhone Compiling

258 views
Skip to first unread message

elninom

unread,
Feb 7, 2010, 7:04:26 PM2/7/10
to tesseract-ocr
Hello, I'm newbie. I' trying to compile Tesseract Svn for iPhone OS. I
entered these command

svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-
ocr
cd tesseract-ocr
./runautoconf
./configure
make
sudo make install

Then I copied build_fat.sh file to directory from
http://robertcarlsen.net/2009/07/15/cross-compiling-for-iphone-dev-884

Lastly, wrote ./build_fat.sh
However, I"ve got this error:
/usr/bin/lipo: specifed architecture type (arm) for file (lnsout/
libtesseract_full.a.arm) does not match it's cputype (7) and
cpusubtype (3) (should be cputype (12) and cpusubtype (0))

I'm using snow leopard 10.6.1
Why this happens? How do I get compile the latest version for iPhone
os?

elninom

unread,
Feb 14, 2010, 11:03:10 PM2/14/10
to tesseract-ocr
I succeeded on tesseract 2.04. I installed xcode and utilities again
and it was working.

I was tried to compiling tesseract 3.0 from http://tesseract-ocr.googlecode.com/svn/trunk/
I ran ./runautoconf,automake -a -c,build_fat.sh
Then, I've get these errors:

cp: ccmain/libtesseract_full.a: No such file or directory
/usr/bin/lipo: can't open input file: lnsout/libtesseract_full.a.arm
(No such file or directory)

It didn't create ccmain/libtesseract_full.a, so I couldn't get any
file in lnsout/
Anybody success on tesseract 3.0? Because of files are different from
2.04, build script must reconfigure.
Thanks in advance.

Kevin Lopez

unread,
Feb 27, 2010, 3:13:15 PM2/27/10
to tesseract-ocr
elninom,
I tried to compile tesseract 2.04 but I am getting the same error that
you got before:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo:

specifed architecture type (arm) for file (lnsout/
libtesseract_full.a.arm) does not match it's cputype (7) and
cpusubtype (3) (should be cputype (12) and cpusubtype (0))

Should I reinstall XCode (current version 3.1.4)? Also, you re-
installed utilities again, what does utility refer to?

Thanks,


On Feb 14, 8:03 pm, elninom <aki...@gmail.com> wrote:
> I succeeded on tesseract 2.04. I installed xcode and utilities again
> and it was working.
>

> I was tried to compiling tesseract 3.0 fromhttp://tesseract-ocr.googlecode.com/svn/trunk/

technophobe

unread,
Mar 2, 2010, 11:10:50 AM3/2/10
to tesseract-ocr
Edit the build_fat.sh file to reflect the actual version number and
location of the iPhone SDK you have on your computer. The 10.5 version
of the script is looking for SDK 2.2.1 and the 10.6 version of the
script is looking for SDK 3.0.

Regarding Tesseract 3.0 / svn....I haven't tried to use the script for
that version. However, I believe that the output of that version is ./
api/libtesseract_api.a so perhaps editing the build_fat.sh file to
look there rather than looking for libtesseract_full.a would get you
further.

-r

patrickq

unread,
Mar 6, 2010, 11:30:47 AM3/6/10
to tesseract-ocr
We have build the ScanBizCards iPhone application to scan business
card images (see http://scanbizcards.com) using Tesseract 3.0 - you
can install the free version from this page
http://itunes.apple.com/us/app/scanbizcards-lite-business/id338143149?mt=8

For those of you interested in OCR on the iPhone I'd like to invite
you to consider the possibility of saving yourself the trouble of
implementing everything from taking a picture (or using an existing
picture), cropping the image, determining orientation and scanning etc
simply by using ScanBizCards to do that (we have a free version so it
would not cost your users anything). ScanBizCards has a number of ways
to export the scanned data to other applications, including the
clipboard, email and even Excel so using ScanBizCards as the scanning
engine may work for you unless you really need a tight integration
between your app and the scanning process - but even so, talk to me to
discuss if there is something we could do to achieve that integration
through changes to our app.

Patrick

On Feb 7, 7:04 pm, elninom <aki...@gmail.com> wrote:
> Hello, I'm newbie. I' trying to compile Tesseract Svn for iPhone OS. I
> entered these command
>
> svn checkouthttp://tesseract-ocr.googlecode.com/svn/trunk/tesseract-
> ocr
> cd tesseract-ocr
> ./runautoconf
> ./configure
> make
> sudo make install
>

> Then I copied build_fat.sh file to directory fromhttp://robertcarlsen.net/2009/07/15/cross-compiling-for-iphone-dev-884

Maciek

unread,
Mar 9, 2010, 5:36:01 PM3/9/10
to tesseract-ocr
Hi Patrickq,

I have a funny idea how to enhance ScanBizCards to do some cool
things. Could you please contact me: maciej.jaskowski at my gmail
account so that I could share it with you?

Greetings,
Maciej Jaśkowski

On Mar 6, 5:30 pm, patrickq <patrick.questemb...@gmail.com> wrote:
> We have build the ScanBizCards iPhone application to scan business

> card images (seehttp://scanbizcards.com) using Tesseract 3.0 - you
> can install the free version from this pagehttp://itunes.apple.com/us/app/scanbizcards-lite-business/id338143149...

Reply all
Reply to author
Forward
0 new messages