Hi, You need to update the build script to reference the 3.2/4.1 SDK and compiler. Notably, you'll need to update SDKROOT, CPPFLAGS and CXX variables. For example, here's the relevant part of my build script, modified to work with 4.0:
export SDKROOT=$DEVROOT/SDKs/iPhoneOS4.0.sdk export PATH=$DEVROOT/usr/bin:$PATH # Set up relevant environment variables export CPPFLAGS="-I$SDKROOT/usr/lib/gcc/arm-apple-darwin10/4.0.1/ include/ -I$SDKROOT/usr/include/ -miphoneos-version-min=4.0" export CFLAGS="$CPPFLAGS -arch armv6 -pipe -no-cpp-precomp -isysroot $SDKROOT" export CPP="$DEVROOT/usr/bin/cpp $CPPFLAGS" export CXXFLAGS="$CFLAGS" # Dynamic library location generated by the Unix package LIBPATH=$LIBFILE.dylib LIBNAME=`basename $LIBPATH` export LDFLAGS="-L$SDKROOT/usr/lib/ -Wl,- dylib_install_name,@executable_path/$LIBNAME" # Static library that will be generated for ARM LIBPATH_static=$LIBFILE.a LIBNAME_static=`basename $LIBPATH_static` # TODO: add custom flags as necessary for package ./configure CXX=$DEVROOT/usr/bin/arm-apple-darwin10-g++-4.0.1 CC= $DEVROOT/usr/bin/arm-apple-darwin10-gcc-4.0.1 LD=$DEVROOT/usr/bin/ld -- host=arm-apple-darwin Cheers, Ivan On Sep 7, 9:40 am, shane <[email protected]> wrote: > Hi, I tried to build the tesseract-2.04 with script (http:// > robertcarlsen.net/2009/07/15/cross-compiling-for-iphone-dev-884) first > one, steps i followed > > * download the tesseract-2.04 from (http://code.google.com/p/ > tesseract-ocr/downloads/detail?name=tesseract-2.04.tar.gz&can=2&q=) > * run ./configure , make and make install > * run the above script (first one), im getting the following 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)) > > can any one help me to fix this.. > > Im using the Xcode 3.2.3 (64 bit,) SDK 3.2, MAc Os X version 10.6.2 -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en.

