[Trilinos-Users] Error compiling with CMake

Nunion m.skates82 at gmail.com
Tue Nov 16 10:31:56 MST 2010


I followed another email thread with someone else having trouble
installing.  From that post, I made my commands into a do-configure
executable, but when I run ./do-configure in the subdirectory
(TrilinosBuild) that contains the do-configure file, I get the message about
in-source-building, but the TrilinosBuild is a subdirectory of my source
directory (i.e. ..trilinos/trilinos-10.4.1-Source/ is the source directory,
and trilinos/trilinos-10.4.1-Source /TrilinosBuild is the build directory).

Mark


On Tue, Nov 16, 2010 at 11:16 AM, Bartlett, Roscoe A <rabartl at sandia.gov>wrote:

>  My guess is that there are whitespace problems in your driver script.
>
>
>
> - Ross
>
>
>
>
>
> *From:* trilinos-users-bounces at software.sandia.gov [mailto:
> trilinos-users-bounces at software.sandia.gov] *On Behalf Of *Nunion
> *Sent:* Tuesday, November 16, 2010 9:53 AM
> *To:* Willenbring, James M; trilinos-users at software.sandia.gov
> *Cc:* Salinger, Andrew
>
> *Subject:* Re: [Trilinos-Users] Error compiling with CMake
>
>
>
> Hello all,
>
>
> I decided to start over with a fresh install.  My goal is to interface
> Trilinos/PETSc, so I am using the directions on the DOxygen page.  After
> setting the environment variables I created a subdirectoy, 'TrilinosBuild',
> after I 'cd' to that directory I try the following script.
>
> =====================================================================================
>
> cmake \
>   -D Trilinos_ENABLE_STRONG_C_COMPILE_WARNINGS:BOOL=OFF \
>   -D CMAKE_INSTALL_PREFIX:PATH="${PWD}" \
>   -D TPL_ENABLE_MPI:BOOL=OFF \
> \
>   -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
>   -D Trilinos_ENABLE_Amesos:BOOL=ON \
>   -D Trilinos_ENABLE_Anasazi:BOOL=ON \
>   -D Trilinos_ENABLE_AztecOO:BOOL=ON \
>   -D Trilinos_ENABLE_Belos:BOOL=ON \
>   -D Trilinos_ENABLE_CTrilinos:BOOL=ON \
>   -D Trilinos_ENABLE_Didasko:BOOL=ON \
>   -D Trilinos_ENABLE_Epetra:BOOL=ON \
>   -D Trilinos_ENABLE_EpetraExt:BOOL=ON \
>   -D Trilinos_ENABLE_Galeri:BOOL=ON \
>   -D Trilinos_ENABLE_Intrepid:BOOL=ON \
>   -D Trilinos_ENABLE_Ifpack:BOOL=ON \
>   -D Trilinos_ENABLE_Isorropia:BOOL=ON \
>   -D Trilinos_ENABLE_Komplex:BOOL=ON \
>   -D Trilinos_ENABLE_Meros:BOOL=ON \
>   -D Trilinos_ENABLE_Mesquite:BOOL=ON \
>   -D Trilinos_ENABLE_Moertel:BOOL=ON \
>   -D Trilinos_ENABLE_Moocho:BOOL=ON \
>   -D Trilinos_ENABLE_Nox:BOOL=ON \
>   -D Trilinos_ENABLE_ML:BOOL=ON \
>   -D Trilinos_ENABLE_Stokhos:BOOL=ON \
>   -D Trilinos_ENABLE_Teuchos:BOOL=ON \
>   -D Trilinos_ENABLE_Tpetra:BOOL=ON \
>   -D Trilinos_ENABLE_TrilinosCouplings:BOOL=ON \
>   -D Trilinos_ENABLE_Triutils:BOOL=ON \
>   -D Trilinos_ENABLE_Zoltan:BOOL=ON \
> \
>   -D EpetraExt_USING_PETSC:BOOL=ON \
>   -D TPL_ENABLE_PETSC:BOOL=ON \
>   -D PETSC_LIBRARY_DIRS:FILEPATH=${PETSC_LIB_PATH} \
>   -D PETSC_INCLUDE_DIRS:FILEPATH=${PETSC_INCLUDE_PATH} \
>   -D TPL_PETSC_LIBRARIES:STRING="${PETSC_LIB}" \
>   -D TPL_PETSC_INCLUDE_DIRS:STRING="${PETSC_INCLUDE_PATH}" \
> \
>   -D TrilinosCouplings_ENABLE_TESTS:BOOL=ON \
>   -D TrilinosCouplings_ENABLE_EXAMPLES:BOOL=ON \
>   -D Trilinos_ENABLE_TESTS:BOOL=ON \
>   -D ML_ENABLE_TESTS:BOOL=ON \
>   -D ML_ENABLE_EXAMPLES:BOOL=ON \
>   -D DART_TESTING_TIMEOUT:STRING=600 \
>   ${TRILINOS_HOME}
>
> =================================================================================
>
> However, now I get the message; "CMake Error: The source directory
> "/home/turnley2/Desktop/trilinos/trilinos-10.4.1-Source/TrilinosBuild/DART_TESTING_TIMEOUT:STRING=600"
> does not exist.".  However, when I take that line out, the CMake Error is
> generated right before where the last line ends, i.e. if the script stops at
> the line:   -D Trilinos_ENABLE_Zoltan:BOOL=ON \, then the CMake error reads,
> "CMake Error: The source directory
> "/home/turnley2/Desktop/trilinos/trilinos-10.4.1-Source/TrilinosBuild/Trilinos_ENABLE_Zoltan:BOOL=ON"
> does not exist."
>
> Does this script have to be broken up and processed in segments?
>
> Thanks.
>
> On Mon, Nov 15, 2010 at 3:36 PM, Willenbring, James M <jmwille at sandia.gov>
> wrote:
>
> If you have the examples and tests you want to build enabled at configure
> time, you just have to type make in the directory where the examples are.
> If you don’t have tests and examples enabled, you don’t have to start over,
> you simply need to:
>
>
>
> (Option A: enable all tests and examples)
>
>
>
> rm CMakeCache.txt
>
>
>
> then add
>
>
>
> -DTrilinos_ENABLE_TESTS:BOOL=ON
>
>
>
> to your list of configure arguments, and then run cmake again.  Then you
> can use “make” to build the tests and examples.
>
>
>
> It is most common to simply turn on all tests and examples for the packages
> you are building.
>
>
>
> To enable ML examples specifically, you can
>
>
>
> rm CMakeCache.txt
>
>
>
> then add
>
>
>
> -DML_ENABLE_EXAMPLES:BOOL=ON
>
>
>
> To your list of configure arguments, then run cmake and make again.
>
>
>
> Jim
>
>
>
> *From:* michael.turnley at gmail.com [mailto:michael.turnley at gmail.com] *On
> Behalf Of *Nunion
> *Sent:* Monday, November 15, 2010 2:10 PM
> *To:* Salinger, Andrew
> *Cc:* Willenbring, James M
> *Subject:* Re: [Trilinos-Users] Error compiling with CMake
>
>
>
> Thanks for the response.  I have already installed several trilinos
> packages, ie. ML, Epetra, Aztec, etc.   I simply want to compile and run the
> examples in the example directories.  I guess I just need an example of the
> commands to do that from within the package, for example to compile the
> BasicExample files within ML.
>
> On Mon, Nov 15, 2010 at 10:37 AM, Andy Salinger <agsalin at sandia.gov>
> wrote:
>
>
> I'm wondering if Mark is pointing to the ML CMakeLists.txt
> and not the to the top Trilinos one when he runs cmake.
> Make sure to run  "cmake [-D options] .." if you are building
> in a subdirectory of Trilinos or  "cmake [-D options] ../Trilinos"
> if you are in a directory even with Trilinos.
>
> Andy
>
>
>
> On Mon, 2010-11-15 at 09:14 -0700, Willenbring, James M wrote:
> > Mark,
> >
> >
> >
> > Please outline exactly what you did to arrive at this error.  The
> > Quickstart is appropriate for building and installing Trilinos.
> >
> >
> >
> > Jim
> >
> >
> >
> > From:trilinos-users-bounces at software.sandia.gov<From%3Atrilinos-users-bounces at software.sandia.gov>
> > [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of
> > Nunion
> > Sent: Sunday, November 14, 2010 11:37 AM
> > To: trilinos-users at software.sandia.gov
> > Subject: [Trilinos-Users] Error compiling with CMake
> >
> >
> >
> >
> >
> > Hello,
> >
> > I am new to the Trilinos package, and am trying to compile and run
> > some of the ML code located in the /examples/BasicExamples/ directory.
> > In particular, I am trying to compile with cmake.  However, I am not
> > clear as to how I am to proceed using this.  The Quickstart guide on
> > CMake seems to be tailored for installing the Trilinos package.  In
> > particular, I am getting the error:
> >
> >
> > INCLUDE Could not find include file: PackageAddExecutableAndTest
> > ...
> > ...
> > Unknown CMake command "PACKAGE_ADD_EXECUTABLE".
> >
> > These are present in the CMakeLists.txt file.  Is this file to be
> > edited and a specific file name is to be put in its place, i.e.
> > INCLUDE("package name")?
> >
> > Thanks in advance,
> >
> > Mark
> >
> >
> >
> >
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20101116/bb508ece/attachment.html 


More information about the Trilinos-Users mailing list