Skip to content

Building on Mac OSX

Thomas Beale edited this page Apr 9, 2017 · 11 revisions

Below are instructions for setting up a package-building environment for Mac OSX. It describes how to do a batch build of one or more apps and build an installer package.

Machine setup

Ideally the build environment will be on a dedicated machine. Building is preformed by running scripts in the adl-tools repository area. The various openEHR git repositories described in the building from source section must be cloned and the environment set up correctly.

Pre-requisites

  1. Python 2.x: Make sure a 2.x version of Python is installed.
  2. SCons build tool: Python script... installs into the Python install area.

Note: The python and scons command-line tools must be on the PATH in your terminal. Typically they will be installed in a location already on the user PATH. If not, create a shell script to add their locations to the PATH.

Install Eiffel Studio on Mac OSX

  1. Eiffel Studio

Building

Note: This assumes you have an "openEHR" directory containing all the required git repositories. If you've named this directory something else you'll have to adjust the paths accordingly.

  1. open a shell (Terminal.app) and cd into openEHR/ad-tools

  2. if the environment needs to be set up (PATH and/or other Eiffel Studio variables...) run the shell script you've created to do this

  3. run the following to begin the build:

     scons downloads/mac_osx/adl_workbench
    

If everything went well there should be a new package installer at openEHR/adl-tools/openehr/downloads/mac_osx/adl_workbench/ADLWorkbenchInstall

The build scripts

  • openEHR/adl-tools/SConstruct - This is the master SCons build script. This tells SCons to build apps in a standard way on all platforms and then decides which installer to invoke based on the platform it is running on.