Compiling the UltraLite iPhone library

In order to use UltraLite on the iPhone, you must first compile the library.

 To compile the library for the iPhone simulator
  1. Extract the UltraLite for iPhone tarball by double-clicking it. This will create a sqlany folder in the same location as the tarball.

  2. Navigate to the sqlany/UltraLite/iPhone/x86 directory you just extracted.

  3. Extract the ulrt.tar.gz tarball by double-clicking it. This will extract many source files, along with an ulrt.make makefile.

  4. Open the makefile using TextEdit or any editor of your choice.

  5. 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/.

  6. If you installed the iPhone SDK to a non-default location, adjust the other makefile variables to match the location of the installation.

  7. Open a Terminal and cd to the directory that has the makefile.

  8. 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.

  9. 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.