[Trilinos-Users] [EXTERNAL] Trilinos error

Yasser Hussein yafayez at yahoo.com
Wed May 15 11:17:11 MDT 2013


Hello Brent and all,
Just wanted a helping hand please on this. I have everything, but I need to configure VS with all builds and library to run one of the examples. Please find below is my original question. Thank you all.
Hello Brent,
Thanks a million. I tried to build a code with all necessary .obj and lib but still with no luck. Can you kindly let me know, for example, how can I build the block Grems example within VS and be able to compile and run. For examples, which library I need to use and how to configure VS to use those libraries. if it's something you need to access my computer, please let me know and I can open an online session for that. Again, thanks for your help. I look forward to your kind thoughts,

Yasser


--- On Tue, 5/14/13, Yasser Hussein <yafayez at yahoo.com> wrote:

From: Yasser Hussein <yafayez at yahoo.com>
Subject: Re: [EXTERNAL] [Trilinos-Users] Trilinos error
To: "Brent MPerschbacher" <bmpersc at sandia.gov>
Date: Tuesday, May 14, 2013, 3:35 PM

Hello Brent,
Thanks a million. I tried to build a code with all necessary .obj and lib but still with no luck. Can you kindly let me know, for example, how can I build the block Grems example within VS and be able to compile and run. For examples, which library I need to use and how to configure VS to use those libraries. if it's something you need to access my coomputer, please let me know and I can open an online session for that. Again, thanks for your help. I look forward to your kind thoughts,

Yasser

--- On Tue, 5/14/13, Perschbacher, Brent M <bmpersc at sandia.gov> wrote:

From: Perschbacher, Brent M <bmpersc at sandia.gov>
Subject: Re:
 [EXTERNAL] [Trilinos-Users] Trilinos error
To: "Yasser Hussein" <yafayez at yahoo.com>, "trilinos-users at software.sandia.gov" <trilinos-users at software.sandia.gov>
Date: Tuesday, May 14, 2013, 3:21 PM



 


Yasser,
  I'm sorry I didn't get back to you sooner. Cmake is not the tool to use to compile Trilinos, Cmake is used to configure Trilinos and generate a build system that can be used to compile Trilinos. For linux that tends to be makefiles and for windows that
 tends to be visual studio projects. Once you have successfully configured Trilinos using Cmake you will then need to use the generated build system to actually build Trilinos.



The errors you posted are from trying to run Cmake with a source directory other than the top level of Trilinos. The error:



Error, the variable _ENABLE_Triutils is not defined!



Is because that variable is supposed to be named "Belos_ENABLE_Triutils", however, because the configure was not run against top level of Trilinos the Belos package was never created and the variables used internally weren't set up correctly and this error
 is reached.



To build Trilinos you will want to do the following:





Point the cmake configure to the Trilinos base directory (C:/trilinos-11.2.2-Source in your case)Enable only Belos by setting Trilinos_ENABLE_Belos to ONEnable examples by setting Trilinos_ENABLE_EXAMPLES to ONConfigure using Cmake. This will generate build files that you will use later.Build the code using the generated files from the step 4, most likely this will be done from Visual StudioRun the example you are interested in. You can do this either by using ctest, or by running it by hand.




I hope this helps



Brent











From: Yasser Hussein <yafayez at yahoo.com>

Date: Monday, May 13, 2013 11:13 PM

To: "trilinos-users at software.sandia.gov" <trilinos-users at software.sandia.gov>, "Perschbacher, Brent M" <bmpersc at sandia.gov>

Subject: Re: [EXTERNAL] [Trilinos-Users] Trilinos error














Hello All,



Please let me know if anyone has a thought on this. I's appreciate it very much if someone could lend me a hand. I installed everything, so I can arrange an access to my PC online if that would make it easy for you. I look forward to the group feedback,
 Thanks a million.






Regards,
Yasser




--- On Thu, 5/9/13, Yasser Hussein <yafayez at yahoo.com> wrote:




From: Yasser Hussein <yafayez at yahoo.com>

Subject: Re: [EXTERNAL] [Trilinos-Users] Trilinos error

To: "trilinos-users at software.sandia.gov" <trilinos-users at software.sandia.gov>, "Brent MPerschbacher" <bmpersc at sandia.gov>

Date: Thursday, May 9, 2013, 3:55 PM











Dear Brent,



Thanks very much for your feedback. I actually was able to configure/generate Trillion from base sub-directory with no errors.  The only issue is when I was trying to compile one of the examples using Cmake, which I got the below error. Is there any other
 way to compile the examples other than Cmake. i.e. how can I run one of the examples once Trilinos was correctly configured and built.  I look forward to your thoughts. Thanks in advance.



Sincerely, Yasser




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)





--- On Thu, 5/9/13, Perschbacher, Brent M <bmpersc at sandia.gov> wrote:




From: Perschbacher, Brent M <bmpersc at sandia.gov>

Subject: Re: [EXTERNAL] [Trilinos-Users] Trilinos error

To: "Yasser Hussein" <yafayez at yahoo.com>, "trilinos-users at software.sandia.gov" <trilinos-users at software.sandia.gov>

Date: Thursday, May 9, 2013, 12:19 PM





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:




Point the cmake configure to the Trilinos base directory (C:/trilinos-11.2.2-Source in your case)Enable only Epetra by setting Trilinos_ENABLE_Belos to ONEnable examples by setting Trilinos_ENABLE_EXAMPLES to ONConfigure (this will configure Epetra and all of its examples and their dependencies)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>

Date: Wednesday, May 8, 2013 11:55 AM

To: "trilinos-users at software.sandia.gov" <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/20130515/cd573b34/attachment.html 


More information about the Trilinos-Users mailing list