In order to use UltraLite on the iPhone, you must first compile the library.
Extract the UltraLite for iPhone tarball by double-clicking it. This will create a sqlany folder in the same location as the tarball.
Navigate to the sqlany/UltraLite/iPhone/x86 directory you just extracted.
Extract the ulrt.tar.gz tarball by double-clicking it. This will extract many source files, along with an ulrt.make makefile.
Open the makefile using TextEdit or any editor of your choice.
Change the ISYSROOT variable so that it refers to your version of the iPhone SDK. If you are unsure of what version you have, navigate to: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/.
If you installed the iPhone SDK to a non-default location, adjust the other makefile variables to match the location of the installation.
Open a Terminal and cd to the directory that has the makefile.
Run the command: make -f ulrt.makeand
and wait for compilation to finish. If you receive any errors, go back and verify that the variables in the makefile point
to the correct location of the iPhone SDK.
Once compilation is complete, verify that the ulrt.a library archive has been created and move it so that it resides in the sqlany/UltraLite/iPhone/x86 directory since the example projects expect it at that location. Extracting the tar file using the Archive Utility might have created an additional ulrt folder.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |