Setting up XCode

In order to build a plugin that will work for everyone with a copy of Zoom you will need to set up XCode to match the compiler settings for Zoom. These settings are:

  • Architectures should be set to ppc and i386
  • You should set the SDK to be the 10.4 (universal) SDK
  • Prebinding should be turned off
  • ZeroLink and Fix & Continue should be turned off
  • Add a setting called ‘SDKROOT_ppc’ and set it to ‘/Developer/SDKs/MacOSX10.3.9.sdk’

To build a Glk interpreter, you will need to link against the GlkClient framework: you can get this from inside the Zoom application or as part of the GlkTerm package. You should create the project as a Foundation tool and set the target name to something like ‘mysystem-terp’ - the interpreter executable should have a different filename to what the plugin will eventually be called. Finally, you will need to change any references to glk.h to <GlkClient/glk.h> (or copy the glk header out of the GlkClient framework), and you will need to write a main.m file to get everything running.

On your interpreter executable, you should navigate to the Arguments tab of the Info inspector and add an environment variable called ‘DYLD_FRAMEWORK_PATH’ and set it to the directory containing the GlkClient framework, or you won’t be able to test your framework under XCode.