Differences between revisions 1 and 2
Revision 1 as of 2009-09-18 14:37:48
Size: 1555
Comment:
Revision 2 as of 2009-09-18 16:40:23
Size: 3492
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
 * Windows, using MinGW
 * Windows, using Cygwin
 * Windows, using [[http://www.mingw.org|MinGW]]
 * Windows, using [[http://www.cygwin.com|Cygwin]]
Line 27: Line 27:
 * MATLAB (if you want to compile MEX for MATLAB)
 * Octave (if you want to compile MEX for Octave, see [[http://www.octave.org]])
 * Boost libraries, version 1.34 or later (mandatory, see [[http://www.boost.org]])
 * Bison, version 2.3 or later (only if you get the source through SVN, see [[http://www.gnu.org/software/bison/]])
 * [[http://www.mathworks.com/products/matlab/|MATLAB]] (if you want to compile MEX for MATLAB)
 * [[http://www.octave.org|GNU Octave]], with the development headers (if you want to compile MEX for Octave)
 * [[http://www.boost.org|Boost libraries]], version 1.34 or later (mandatory)
 * [[http://www.gnu.org/software/bison/|Bison]], version 2.3 or later (only if you get the source through SVN)
 * [[http://flex.sourceforge.net/|Flex]], version 2.5.4 or later (only if you get the source through SVN)
 * [[http://www.gnu.org/software/autoconf/|Autoconf]], version 2.61 or later (only if you get the source through SVN)
 * [[http://www.gnu.org/software/automake/|Automake]] (only if you get the source through SVN)
 * [[http://www-cs-faculty.stanford.edu/~knuth/cweb.html|CWEB]], with its tools {{{ctangle}}} and {{{cweave}}} (only if you want to build Dynare++ and get the source through SVN)
 * An implementation of BLAS and LAPACK: either [[http://math-atlas.sourceforge.net/|ATLAS]], Netlib ([[http://www.netlib.org/blas/|BLAS]], [[http://www.netlib.org/lapack/|LAPACK]]) or [[http://software.intel.com/en-us/intel-mkl/|MKL]] (only if you want to build Dynare++)
 * An implementation of [[http://en.wikipedia.org/wiki/POSIX_Threads|POSIX Threads]] (only if you want to build Dynare++)
 * A decent LaTeX distribution (if you want to compile PDF documentation). The following extra components may be needed:
   * The Econometrica bibliography style: you need [[http://www.ctan.org/tex-archive/macros/latex/contrib/harvard/|harvard]] and [[http://www.ctan.org/tex-archive/biblio/bibtex/contrib/economic/|economic]] packages from CTAN (only if you want to build Dynare user guide)
   * [[http://www.tug.org/eplain/|Eplain]] TeX macros (only if you want to build Dynare++ source documentation)
 * [[http://dblatex.sourceforge.net/|DBLaTeX]] (if you want to build Dynare reference manual in PDF)
 * [[http://xmlsoft.org/XSLT/xsltproc2.html|xsltproc]] and [[http://wiki.docbook.org/topic/DocBookXslStylesheets|DocBook XSL Stylesheets]] (if you want to build Dynare reference manual in HTML)
 * [[http://www.stack.nl/~dimitri/doxygen/|Doxygen]] (if you want to build Dynare preprocessor source documentation)

This page explains how to build from source:

  • Dynare (unstable version), including preprocessor and MEX files for MATLAB and Octave
  • Dynare++
  • all the associated documentation (PDF and HTML) from source

This source can be retrieved in two forms:

Note that if you use the SVN version, you will need to install more tools (see below).

The first section of this page gives general instructions, which apply to all platforms. Then some specific platforms are discussed:

For Windows users, there is no pareto-optimum between MinGW and Cygwin, it depends on what you want to do:

  • MinGW is simpler to setup if you just want to quiclky compile the binaries,
  • Cygwin is recommended for those who update through SVN, or who want to build documentation.

General instructions

Prerequisites

A number of tools and libraries are needed in order to recompile everything. You don't necessarily need to install everything, depending on what you want to compile.

  • MATLAB (if you want to compile MEX for MATLAB)

  • GNU Octave, with the development headers (if you want to compile MEX for Octave)

  • Boost libraries, version 1.34 or later (mandatory)

  • Bison, version 2.3 or later (only if you get the source through SVN)

  • Flex, version 2.5.4 or later (only if you get the source through SVN)

  • Autoconf, version 2.61 or later (only if you get the source through SVN)

  • Automake (only if you get the source through SVN)

  • CWEB, with its tools ctangle and cweave (only if you want to build Dynare++ and get the source through SVN)

  • An implementation of BLAS and LAPACK: either ATLAS, Netlib (BLAS, LAPACK) or MKL (only if you want to build Dynare++)

  • An implementation of POSIX Threads (only if you want to build Dynare++)

  • A decent LaTeX distribution (if you want to compile PDF documentation). The following extra components may be needed:
    • The Econometrica bibliography style: you need harvard and economic packages from CTAN (only if you want to build Dynare user guide)

    • Eplain TeX macros (only if you want to build Dynare++ source documentation)

  • DBLaTeX (if you want to build Dynare reference manual in PDF)

  • xsltproc and DocBook XSL Stylesheets (if you want to build Dynare reference manual in HTML)

  • Doxygen (if you want to build Dynare preprocessor source documentation)

DynareWiki: BuildingDynareFromSource (last edited 2013-06-19 16:52:12 by HoutanBastani)