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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-04-2011, 10:46 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Pune,Maharshtra,India
Posts: 90
Prajakta is on a distinguished road
Default trying to build tesserat oct libraries for ios

HI,

I am trying to build tesseract ocr libraries for iOS. downloaded the source from google source. and installed leptonica also. now it is showing following error while compiling

rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -f Makefile
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin11.1.0
checking host system type... arm-apple-darwin
checking --enable-graphics argument... yes
checking --enable-multiple-libraries argument... no
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
cp: api/.libs/libtesseract_api.a: No such file or directory
cp: ccutil/.libs/libtesseract_ccutil.a: No such file or directory
cp: ccmain/.libs/libtesseract_main.a: No such file or directory
cp: ccstruct/.libs/libtesseract_ccstruct.a: No such file or directory
cp: classify/.libs/libtesseract_classify.a: No such file or directory
cp: cutil/.libs/libtesseract_cutil.a: No such file or directory
cp: dict/.libs/libtesseract_dict.a: No such file or directory
cp: image/.libs/libtesseract_image.a: No such file or directory
cp: textord/.libs/libtesseract_textord.a: No such file or directory
cp: training/.libs/libtesseract_training.a: No such file or directory
cp: viewer/.libs/libtesseract_viewer.a: No such file or directory
cp: wordrec/.libs/libtesseract_wordrec.a: No such file or directory
make: *** No rule to make target `distclean'. Stop.
checking build system type... i386-apple-darwin11.1.0
checking host system type... i386-apple-darwin11.1.0
checking --enable-graphics argument... yes
checking --enable-multiple-libraries argument... no
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 accepts -g... yes
checking how to print strings... printf
checking for gcc... /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
checking whether we are using the GNU C compiler... yes
checking whether /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 accepts -g... yes
checking for /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 option to accept ISO C89... unsupported
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2... /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld
checking if the linker (/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking command to parse /usr/bin/nm output from /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... no
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... no
checking how to run the C preprocessor... /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/cpp-4.2
configure: error: C preprocessor "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/cpp-4.2" fails sanity check
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
cp: api/.libs/libtesseract_api.a: No such file or directory
cp: ccutil/.libs/libtesseract_ccutil.a: No such file or directory
cp: ccmain/.libs/libtesseract_main.a: No such file or directory
cp: ccstruct/.libs/libtesseract_ccstruct.a: No such file or directory
cp: classify/.libs/libtesseract_classify.a: No such file or directory
cp: cutil/.libs/libtesseract_cutil.a: No such file or directory
cp: dict/.libs/libtesseract_dict.a: No such file or directory
cp: image/.libs/libtesseract_image.a: No such file or directory
cp: textord/.libs/libtesseract_textord.a: No such file or directory
cp: training/.libs/libtesseract_training.a: No such file or directory
cp: viewer/.libs/libtesseract_viewer.a: No such file or directory
cp: wordrec/.libs/libtesseract_wordrec.a: No such file or directory
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_api_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_ccutil_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_main_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_ccstruct_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_classify_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_cutil_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_dict_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_image_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_textord_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_training_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_viewer_armv6.a (No such file or directory)
/usr/bin/lipo: can't open input file: outdir/arm/libtesseract_wordrec_armv6.a (No such file or directory)
Prajakta is offline   Reply With Quote
Old 11-04-2011, 11:01 PM   #2 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 577
Speed is on a distinguished road
Default

I had the same errors when trying to build it myself. However, I found this GitHub project which contained the already-compiled source: https://github.com/nolanbrown/Tesseract-iPhone-Demo

Due note though, it is incredibly in-accurate. The only way that I was able to read anything was on a full white picture with perfectly formed letters - good luck!
Speed is offline   Reply With Quote
Old 11-04-2011, 11:19 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Pune,Maharshtra,India
Posts: 90
Prajakta is on a distinguished road
Default

what type of image is required for this application. I have soured images from some software in iPhone album. but then now it is giving me error while processing this image.


Quote:
Originally Posted by Speed View Post
I had the same errors when trying to build it myself. However, I found this GitHub project which contained the already-compiled source: https://github.com/nolanbrown/Tesseract-iPhone-Demo

Due note though, it is incredibly in-accurate. The only way that I was able to read anything was on a full white picture with perfectly formed letters - good luck!
Prajakta is offline   Reply With Quote
Old 11-06-2011, 12:11 PM   #4 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 577
Speed is on a distinguished road
Default

It doesn't work on the simulator for whatever reason, but it will build on the device.
Speed is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 414
17 members and 397 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, dre, FrankWeller, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, n00b, pbart, reficul, Retouchable, Sami Gh, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:19 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0