← Back to team overview

dolfin team mailing list archive

Re: cmake.local - try it

 

On 13 August 2010 15:23, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
> I've added a 'cmake.local' file to DOLFIN (analogous to 'scons.local')
> to make building with CMake easy. It would be good if any who is
> interested could try it out and send feedback. My impression is that
> partial re-builds are *much* faster with CMake compared to SCons.

Running cmake.local crashes on my machine:

[ 17%] Building CXX object dolfin/CMakeFiles/dolfin.dir/graph/ParMETIS.cpp.o
cd /home/oelgaard/software/fenics/dolfin/dolfin && /usr/bin/c++
-Ddolfin_EXPORTS -DPACKAGE_VERSION=\"0.9.8\" -DHAS_MPI -DHAS_CGAL
-DHAS_MTL4 -DHAS_PETSC -DHAS_SLEPC -DHAS_UMFPACK -DHAS_CHOLMOD
-DHAS_PARMETIS -DHAS_SCOTCH -DHAS_GMP -ansi -pipe -O2 -Wall
-frounding-math -g -fPIC -I/home/oelgaard/software/fenics/dolfin
-I/usr/include/libxml2 -I/home/oelgaard/local/include
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi
-I/home/oelgaard/local/lib/mtl4
-I/home/oelgaard/local/lib/petsc-3.0.0-p12/linux-gnu-cxx-debug/include
-I/home/oelgaard/local/lib/petsc-3.0.0-p12/include
-I/usr/lib/openmpi/lib
-I/home/oelgaard/local/lib/slepc-3.0.0-p7/include
-I/usr/include/suitesparse
-I/home/oelgaard/local/lib/scotch_5.1/include   -o
CMakeFiles/dolfin.dir/graph/ParMETIS.cpp.o -c
/home/oelgaard/software/fenics/dolfin/dolfin/graph/ParMETIS.cpp
/home/oelgaard/software/fenics/dolfin/dolfin/graph/ParMETIS.cpp: In
static member function ‘static void
dolfin::ParMETIS::compute_partition(std::vector<unsigned int,
std::allocator<unsigned int> >&, const dolfin::LocalMeshData&)’:
/home/oelgaard/software/fenics/dolfin/dolfin/graph/ParMETIS.cpp:100:
error: ‘ParMETIS_V3_PartMeshKway’ was not declared in this scope

I switched off parmetis using ccmake to make it work.

Cmake also failed to find trilinos (I have libtrilinos and
libtrilinos-dev 10.0.4.dfsg-1 installed through synaptic):

CMake Warning at CMakeLists.txt:117 (find_package):
  Could not find a configuration file for package Trilinos.

  Set Trilinos_DIR to the directory containing a CMake configuration file for
  Trilinos.  The file will have one of the following names:

    TrilinosConfig.cmake
    trilinos-config.cmake

Kristian

> Garth
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp
>



Follow ups

References