I'm new to cross compiling. I have tried the way from Robert Carlsen's blog Cross-compiling for iPhone Development, but I got the error:
leptonica library missing
when I tried to compile with build_fat.sh.
But I can successfully build Tesseract with ./configure make.
I’m using Mac OS Lion, XCode 4.3, iOS5.0 SDK.
Does anybody have the updated script for this configuration? It has frustrated me for a few days now…
Have a look at how to: compile and use tesseract (3.01) on ios (sdk 5).
I tried that a few weeks ago, using Xcode 4.2.x, Mac OS Lion, and iOS5 SDK and it worked great. The article provides a list of sources to get (including leptonica) and provides a build script.
Related
I have integrated the Zxing Library for QRCode Reader in one of my iPhone app.
It was running fine when I was using iOS 4.3 SDK.
But after I have installed iOS 5 SDK and Mac OS Lion on my Mac, it has started giving errors like
How can it be resolved?
I was going mad with that problem, but I found the solution!
Redownload the 1.7 version, replace all files, build, close xcode and rebuild the project! It should work :)
Just installed xcode 3.2.2 (on Lion) so I can test my app for the iOS 3.0 and 3.2
Created a simple test app based on View application template.
Just trying to build it gives me the following error.
I doubt you can use XCode 3 with Lion, even I was using XCode 4 and had to update to 4.1 to run on Lion.
However if using XCode 3 is mandatory for you I found some post explaining how to do so but it seemed tricky. In his original post he clearly mentions the same problem as you're having.
You can (must? should?) use the latest version Xcode and still target the older iOS. I see that you're trying to do this presumably to use the simulator, but I'd strongly recommend testing on the actual devices with the older versions of iOS.
I have installed lion and afterwards I installed Xcode. But I have no IOS SDK.
If I look inside the directory: /Developer/SDKs/ I see a sdk for mac os x 10.6 and for
10.7 but no IOS SDK.
When I run my projects or I create a new blank project that uses this sdk I get the following build error:
ibtoold(5057,0x7fff73646960) malloc
auto_zone_set_associative_ref: object should point to a GC block or a global address, otherwise associations will leak. Break on auto_zone_association_error() to debug.
Any Ideas? I've tried re-installing it twice.
I am starting to think there is some bug using lion and Xcode together, I am going to ask this question on the apple developer forum. If I get an answer there, ill post it here.
Hi try doing a full clean un-install.
sudo /Developer/Library/uninstall-devtools --mode=all
Then make sure you download the LION version of XCode 4, I believe it's a free version now.
Good Luck.
The iOS SDK includes Xcode, but Xcode doesn't necessarily includethe iOS SDK. You should download and install the iOS SDK if that's what you want.
Im trying to get my xCode to contain all iPhone sdk's from 4 back to 2. But when I download the DMG files, it seems to only allow me to have an xCode with SDK versions 2 - 3.1 OR 3.2 - 4, not all together.
How can I install the SDK's into one xCode so I can build for all different OS versions?
Thanks
EDIT::
Ok so I know I can set the base SDK in xcode, but the options I have are only 3.2 or 4.0, I cant seem to install the 3.1 or earlier SDK's how can this be done?
Final Edit::
Ok got it solved, basically you only need to have an older version of xcode installed to get earlier simulators running, otherwise the articles given to me in my answers as well as others were very helpful:
http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/
Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs
How To Make iPhone App compatible with multiple SDK (firmware) versions
http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html (possibly the best one)
Is there any particular reason you need to do this? Are you trying to develop applications that will run on iOS 4.x and older versions (3.x)? You can still develop applications which will run on iOS 3.1.x with the iOS 4.x sdk.
Take a look at the following article: http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/
I tried the same thing some time ago, and it seems some minor SDK versions are automatically removed during the install process...
You may tried to copy them before installing the other XCode versions, and re-install them just after.
They are located in /Library/Platforms/iPhoneOS.platform/Developer/SDKs/ and /Library/Platforms/iPhoneSimulator.platform/Developer/SDKs/.
Note that you can also choose to install each XCode version in a separate directory.
You will lose a lot of hard disk space, and you'll have multiple versions of XCode, each one with different SDK versions.
Few days back i upgrade to 10.6 and have to install everything from start. So i downloaded new sdk and install it but problem it has simulator above 3.0! But sometimes i have to test things in 2.0 onward, so how i can do this? How i can install 2.0, 2.2 and 2.2.1 simulator now?
I did some research to find the answer to my question (link text) but it's sound similar. If you have access to Apple DevForums this is the link to thread Simulator 2.2.1 no longer available in SDK 3.2.1?
The main point of this thread is "The Simulator is not appropriate (nor has it ever been) for this kind of old-OS regression testing. Remember, the Simulator is not an emulator, has no OS, and doesn't accurately reflect the environment that your code will be running in."
And there is no any workaround to install Simulator 2.2.1 and lower to Snow Leopard.