Compiling DOLFIN

From The FEniCS project

(Redirected from Compiling DOLFIN with SCons)

If someone like to test the new SCons based build, and give some feedback, we will be very happy! There are still some small issues that has to be resolved, but we are at least able to build DOLFIN on 32bit and 64bit Linux as well as MacOSX Tiger and Leopard. We are therefore getting closer.

To help out, you need to do the following:

  • Make sure that you have SCons installed. This should be either
apt-get install scons

or you need to go to http://www.scons.org and grab the latest version.

  • Navigate to a suitable location and clone the dolfin-scons repository:
hg clone http://www.fenics.org/hg/dolfin

You should now be ready to test by running 'scons' in the top level directory. If everything works as expected you can try to enable some optional packages with the enable<package> options. For instance, to enable PETSc, you can do

scons enablePetsc=yes

If you get a warning about missing packages, set the <package>_DIR environment variable to point to the installation path of the package. In the case of PETSc this could be, e.g.,

export PETSC_DIR=/usr/lib/petsc 

See 'scons --help' and 'scons -H' for more options. When you are ready to install DOLFIN, simply do

scons install prefix=<somewhere>

If you want to try out some of the included demos, just run

scons enableDemos=yes

This will build the demos.

Please report both failure and success, either on the dolfin-dev mailinglist or directly to aasmund@simula.no or johannr@simula.no.

Personal tools