Setting up a Development Environment for Mac OS X

Welcome to developing with Orx on the Mac OS X operating system. These instructions will help you install the tools you need in order to work and develop with Orx on your system.

This guide has been prepared on a fresh installation of High Sierra in order to cover all the very basic requirements.

The setup is very simple, and contrary to popular belief, the Xcode IDE is not required.

There are three tools that will be installed. These are:

  1. GCC compiler
  2. GIT command
  3. One MacOSX SDK

And the nice thing is, all of the above will be installed in one go via the Xcode Commandline Developer Tools. Let's do this now.

  1. Open a Terminal
  2. Type gcc

You will not have gcc on your system, but Mac OSX has stubs on the system that catch this command and a prompt will appear allowing you to download the Xcode Commandline Developer Tools.

Please note: Do not click the Get Xcode button. That would download the entire Xcode. Instead, just click the Install button.

The download will begin. Should be around a 45MB download, which is quite reasonable:

Once download completes, the following prompt appears:

Now you can explore what you have just downloaded. Use finder, and visit the following location:

MacintoshHD / Library / Developer / CommandLineTools

In the SDKs folder is (as you'd imagine) the SDK that the tools installed. The CommandLineTools/usr folder contains the gcc compiler tools as well as git plus many other tools we don't need to cover.

And that's it. Your Mac system is ready to start developing with Orx.

The next article will cover using git to download the Orx library, and then how to compile it using the gcc compiler against the MacOSX SDK.