[petsc-dev] Trying to get the CMake instructions to work, unsuccessfully
Satish Balay
balay at mcs.anl.gov
Wed Feb 2 09:55:22 CST 2011
On Wed, 2 Feb 2011, Richard Tran Mills wrote:
> Hi Folks,
>
> I am attempting to use the CMake stuff that Jed put in place to build PETSc.
> I'm following the instructions currently found at
> http://www.mcs.anl.gov/petsc/petsc-2/developers/index.html:
>
> > The main reasons for using CMake are parallel builds, dependency analysis,
> > and IDE integration. The following instructions assume that you have CMake
> > version 2.6 or later installed.
> >
> > 1. Configure as usual with ./configure, provide
> > --with-cmake=/path/to/cmake if the CMake executable is not in your
> > PATH.
> > 2. Run make in the build directory ($PETSC_DIR/$PETSC_ARCH), the value of
> > the environment variables is not important.
> >
>
> Do these need updating? Or am I just doing something stupid? I've run
> configure with '--with-cmake' specified appropriately, and a top-level
> CMakeLists.txt file gets created. But when I try to run cmake with
> $PETSC_DIR/$PETSC_ARCH as my build directory, I get
>
> -----
> rmills at ubuntu:~/proj/petsc-dev/ubuntu-gnu_g$ cmake ..
You haeve to use 'make' or 'make -j 4' here - not 'cmake'
I just do: [from petsc-dev]
make -C ubuntu-gnu_g -j 4
Satish
> CMake Error at CMakeLists.txt:4 (include):
> include could not find load file:
>
> /home/rmills/proj/petsc-dev/conf/PETScConfig.cmake
>
>
> -- Configuring incomplete, errors occurred!
> -----
>
> Line 4 of the CMakeLists.txt file attempts
>
> include (${PETSc_BINARY_DIR}/conf/PETScConfig.cmake)
>
> It looks like PETSc_BINARY_DIR should be $PETSC_DIR/$PETSC_ARCH, but just
> $PETSC_DIR is being used. How is this supposed to be set? I don't know CMake
> very well, so my apologies if this is a dumb question.
>
> Thanks,
> Richard
>
>
More information about the petsc-dev
mailing list