Skip to content

Building on Mac OSX

Patrick Langford edited this page Jun 10, 2016 · 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] (http://www.scons.org/) built 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] (http://dev.eiffel.com/EiffelOnMac)

Building

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

  1. open a shell in openEHR/ad-tools

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

  3. run the scons 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

The build scripts are as follows:

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

Mac user installation

[detailed notes] (http://www.openehr.org/downloads/ADLworkbench/installation_notes)

Clone this wiki locally