Latest Version

4.15 (Build 95) March 4, 2015



Mac OS X Build Instructions



You will need gcc 3 or gcc 4.
You need to install the Mac OS X development tools (XCode) which is on the Mac OS X installation DVD, but which is usually not installed per default.
Make sure you have enough free space on your harddisk for this.


  • QT 4 The binary packages are statically linked against QT 4.5, but all version of QT 4 newer than 4.5 should work. If you only intend to build a non-GUI version of COPASI, Qt 4 version older than 4.5 should work as well as long as qmake is available. Nokia provides pre-compiled version of Qt 4, just make sure they include compatibility support for Qt 3. Alternatively one can use MacPorts or Fink to install a version of Qt 4 or compile it yourself. Be aware that building Qt 4 takes a long time (several hours) depending on your computer.
  • Expat The binary packages are statically linked against 2.0.1, older version will usually work, but you might miss out on some bugfixes. Usually the version that comes pre-installed with Mac OS X distribution should do.
  • libsbml COPASI up to Build 32 is using a patched version of libsbml 3.4.1 which contains some bugfixes from libsbml 4. We build libsbml without support for reading and writing of compressed files. If you want file compression, you have additional dependencies to zlib and the bzip2 library. libsbml has to be compiled with support for the SBML layout extension. (./configure --enable-layout=yes --enable-compression=no --with-expat). Starting with COPASI Build 33, we switched to libsbml 4 (currently libsbml 4.1.0). The libsbml sources have to be patched to provide support for the SBML render extension which is now supported in COPASI. The patch can be downloaded here. You need to enable the render extension ion libsbml with the --enable-render option.
  • raptor The latest version of this RDF parsing library should be OK. We are currently using version 1.4.19. The version we are using is build against expat and without www support. (configure options --with-xml-parser=expat --with-www=none). If you are using a version that comes with MacPorts? or Fink, it will probably be compiled against libxml2 and you will have to include this dependency into COPASI build system before COPASI will compile.

additional library dependencies for the GUI version

  • Qt 4 was already mentioned above, but if you want to build the GUI version, you have to make sure that Qt 4 has been build with Qt 3 compatibility support since parts of the GUI have not been fully converted to Qt 4 yet. This will hopefully change soon. On Mac OS X 10.6 (alias Snow Leopard) Qt 3 compatibility can only be compiled if Qt 4 is build as a 32 Bit version. So on Snow Leopard COPASI can only be build as a 32 Bit application if you want the GUI.
  • Qwt Just get the latest version and make sure it is compiled against Qt 4
  • QwtPlot3D Get the latest version of this 3D plotting library and make sure it is compiled against Qt 4.
  • SBW Systems Biology Workbench allows us to send and receive SBML models from other SBW enabled programs. The latest version should be OK. COPASI can also be build without SBW support.

Build Steps

  1. Download the source installation package.
  2. Expand the contents of the tarball into a directory of your choice with tar -xzvf Copasi-*-SRC.tar.gz.
  3. Change to the newly created copasi-*-src directory.
  4. Run configure, you will probably need to specify some of the following options:
    Optional Features:
      --enable-debug enable debug build (default: enabled)
      --enable-release enable release build (disables debug, default: disabled)
      --enable-static enable static linkage (default: disabled)
      --enable-gui enable build of GUI (default: enabled, starting with Build 20)
    Required Packages:
      --with-expat=PATH Path to Expat XML Library
      --with-sbml=PATH Path to SBML Library
      --with-qwt=PATH Path to QWT Library
      --with-qwt3d=PATH Path to QWTPlot3D Library
      --with-raptor=PATH Path to raptor Library
    Optional Packages
      --with-sbw=PATH Path to SBW Library

To get a full list of configure options, please run "./configure --help".

The Mac OS X build does not need LAPACK, CLAPACK or MKL because it uses some libraries provided by Mac OS X, consequently you do not need to provide these configure options.

In addition configure recognizes the following environment variables: CFLAGS, CXXFLAGS, LDFLAGS, and QMAKE_ARG (additional arguments provides to qmake).
  1. Run make
  2. Optionally, run make install. This will create a dmg image similar to the dowloadable packages.

Created by: shoops. Last Modification: Tuesday 27 of September, 2011 13:06:46 EDT by shoops.