Windows

Prerequisits

Compiler

You will need Visual C++ 8.0 or later.
The free versions of Visual Studio will do, unless you want to run the unittests. Those will currently not build with the Visual Studio Express Editions.

Alternatively COPASI can be build with GCC if you have installed the GNU tools for windows. The build instructions should then be more like the ones described for Linux.

Libraries

  • 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 precompiled version of Qt 4.5 for Windows.
  • LAPACK, CLAPACK, or Intel MKL The binary packages are statically linked against Intel MKL. Just grab the latest version you can find and you should be fine
  • Expat The binary packages are statically linked against 2.0.1, older version will usually work, but you might miss out on some bugfixes.
  • 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.


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.
  • 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.bat, you will probably need to specify some of the following options:

    Optional Features:
      "STATIC_LINKAGE=<yes | no>" enable static linkage (default: no)
      "RUNTIME=<MT | MD>" select runtime environment (default: MD)
      "BUILD_GUI=<yes | no>" enable build of GUI (default: enabled, starting with Build-20)
    Required Packages:
      "EXPAT_PATH=<path>" Path to Expat XML Library
      "SBML_PATH=<path>" Path to SBML Library
      "QWT3D_PATH=<path>" Path to QWTPlot3D Library
      "QWT_PATH=<path>" Path to QWT Library
      "RAPTOR_PATH=<path>" Path to raptor Library
    Optional Packages
      "CLAPACK_PATH=<path>" Path to CLAPACK Library
      "LAPACK_PATH=<path>" Path to LAPACK Library
      "MKL_PATH=<path>"Path to MKL Library
      "SBW_PATH=<path>" Path to SBW Library

Please note, the double quotes must be appear in the command line as shown above. In addition configure.bat recognizes the following environment variables: CFLAGS, CXXFLAGS, and LDFLAGS.

If you specify a path with one of the path variables above, e.g. EXPAT_PATH, make sure that you do not include the trailing "\" in the path name.
E.g. "EXPAT_PATH=C:\expat-2.0.1" would be OK, whereas "EXPAT_PATH=C:\expat-2.0.1\" would not be OK.

The configure options for LAPACK, CLAPACK and MKL are mutually exclusive, you must use exactly one of them.

  1. Change to the copasi subdirectory.
  2. Run nmake release or nmake debug
  3. Optionally, open copasi.sln in Visual Studio.
  4. Optionally, run nmake install. This will create a windows installer file similar to the dowloadable packages if you have cygwin and Advanced Installer and available.