[Trilinos-Users] [EXTERNAL] Trilinos error

Perschbacher, Brent M bmpersc at sandia.gov
Thu May 9 13:19:48 MDT 2013


Yasser,
  I believe the issue is that you were trying to configure from the example's directory. That isn't how our build system works, many of the necessary calls are skipped by doing that which is why you have so many missing variables. To be able to configure Trilinos you always have to point cmake to the top level Trilinos source directory as that is where we do all of the necessary setup for the configure. If you only want to configure a portion of Trilinos you can control that through the package enables like Trilinos_ENABLE_Belos.

If you are just wanting to build the Belos examples you can do the following:


  1.  Point the cmake configure to the Trilinos base directory (C:/trilinos-11.2.2-Source in your case)
  2.  Enable only Epetra by setting Trilinos_ENABLE_Belos to ON
  3.  Enable examples by setting Trilinos_ENABLE_EXAMPLES to ON
  4.  Configure (this will configure Epetra and all of its examples and their dependencies)
  5.  Build the code (possibly just the example you are interested in)

Since you are running on windows I'm going to assume you are using the Visual Studio compilers, if that is wrong please let me know. If you want just that one examle, I'm not entirely sure how to build a single target in Visual Studio since I don't use it except in very rare cases. However, I would assume there is a way, you would want to look for a target named something like "Belos_BlockCG". If you can't find that a normal build will build the example you are looking for, but will take a bit longer to build since all of the Belos examples will be built.

I hope this helps,

Brent


From: Yasser Hussein <yafayez at yahoo.com<mailto:yafayez at yahoo.com>>
Date: Wednesday, May 8, 2013 11:55 AM
To: "trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>" <trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>>
Subject: [EXTERNAL] [Trilinos-Users] Trilinos error


I was trying to Cmake the BlockCG algorithm within the GUI "the example is in the below directory:

C:/trilinos-11.2.2-Source/packages/belos/example/epetra/example/BlockCG

However, I get the following error


CMake Error at C:/trilinos-11.2.2-Source/cmake/tribits/package_arch/AssertDefined.cmake:59 (MESSAGE):

Error, the variable _ENABLE_Triutils is not defined!

Call Stack (most recent call first):

CMakeLists.txt:5 (ASSERT_DEFINED)

CMake Error at C:/trilinos-11.2.2-Source/cmake/tribits/package_arch/AssertDefined.cmake:59 (MESSAGE):

Error, the variable _ENABLE_EpetraExt is not defined!

Call Stack (most recent call first):

CMakeLists.txt:6 (ASSERT_DEFINED)

CMake Error at C:/trilinos-11.2.2-Source/cmake/tribits/package_arch/AssertDefined.cmake:59 (MESSAGE):

Error, the variable _ENABLE_Ifpack is not defined!

Call Stack (most recent call first):

CMakeLists.txt:7 (ASSERT_DEFINED)



Any Advise, let me know...


Thanks,


Yasser


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20130509/386f2d2f/attachment.html 


More information about the Trilinos-Users mailing list