[Trilinos-Users] Windows build using VS 2005
Michael.Sielemann at dlr.de
Michael.Sielemann at dlr.de
Fri Oct 23 10:47:16 MDT 2009
Mike,
Thanks for the quick answer. I tried Visual Studio 2008 and it worked
right away. All tests pass and I am happy. The ones interested read
details below.
Michael
Initially, the example LOCA_ContinuationManager_xyzt did not compile.
Also, NOX_LOCA_Tcubed_TurningPoint_Example threw an exception, because
the bordered solver factory thought that that the parameter list
Loca->Bifurcation->Transpose Solver Method = "Explicit Transpose"
contained an invalid strategy. Both are due to EpetraExt dependencies,
which is why I recommend the following setup for people interested in
NOX/Loca and Visual Studio 2008 (32 bit Windows XP). BTW, when running
the tests, I had to hit "ignore" several times to an error / warning
message "run-time check failure #2 stack corrupted". The test results
were still fine, though....
A. Get CLAPACK according to trilinos-10.0.1-Source/cmake/README.windows
and build it
B. Build Trilinos using the following do-configure.bat
set TRILINOS_HOME=[...]
cmake ^
-D Trilinos_ENABLE_Teuchos:BOOL=ON ^
-D Trilinos_ENABLE_Epetra:BOOL=ON ^
-D Trilinos_ENABLE_EpetraExt:BOOL=ON ^
-D Trilinos_ENABLE_Triutils:BOOL=ON ^
-D Trilinos_ENABLE_NOX:BOOL=ON ^
-D NOX_ENABLE_ABSTRACT_IMPLEMENTATION_EPETRA:BOOL=ON ^
-D NOX_ENABLE_ABSTRACT_IMPLEMENTATION_LAPACK:BOOL=ON ^
-D NOX_ENABLE_Epetra:BOOL=ON ^
-D NOX_ENABLE_EpetraExt:BOOL=ON ^
-D NOX_ENABLE_LAPACK:BOOL=ON ^
-D Trilinos_ENABLE_AztecOO:BOOL=ON ^
-D Trilinos_ENABLE_Ifpack:BOOL=ON ^
-D Trilinos_ENABLE_TESTS:BOOL=ON ^
-D Trilinos_ENABLE_EXAMPLES:BOOL=ON ^
-D DART_TESTING_TIMEOUT:STRING=600 ^
-D CMAKE_INSTALL_PREFIX:STRING=[...] ^
%1 %2 %3 %4 %5 %6 %7 %8 %9 ^
%TRILINOS_HOME%
________________________________
Von: Heroux, Michael A [mailto:maherou at sandia.gov]
Gesendet: Donnerstag, 22. Oktober 2009 19:02
An: Sielemann, Michael; trilinos-users at software.sandia.gov
Betreff: Re: [Trilinos-Users] Windows build using VS 2005
Michael,
We are just ramping up on Windows ourselves, so I am not sure of an
answer. Almost all Windows users have been using VS 2008, but I don't
know that this is the issue. I can do some testing of your situation
in VS 2008, but don't have access to VS 2005. At this point there is no
"easy solution", so it might be best to try some things on your own and
report back any additional observations or progress. I will do the
same.
Mike
On 10/21/09 2:36 AM, "Michael.Sielemann at dlr.de"
<Michael.Sielemann at dlr.de> wrote:
Dear all,
I am switching from Trilinos 9 and Cygwin to Trilinos 10 and
Visual
Studio. I tried VS 2005 with the build batch file given below.
Without
the implementations of the Nox abstract interface, everything
works fine
(the CLAPACK build is found automatically, all tests pass etc).
Using
Epetra and Lapack implementations of the NOX abstract interface
however,
error C 2259 pops up at many places ("cannot instantiate
abstract
class"). This is not resolved by /Zc:wchar_t-. I understand that
NOX/LOCA were tested with and adapted to Windows/Visual Studio,
so I am
wondering whether there is a particular version of Visual Studio
that
you recommend? Did I miss something else in the release notes? I
am
mostly sticking to trilinos-10.0.1-Source/cmake/README.windows
and
http://trilinos.sandia.gov/Trilinos10CMakeQuickstart.txt. I am
running
Windows XP and Cmake 2.8.0 rc3. If there is no "easy solution" I
may
also start fixing it myself. Just let me know.
[I sent this message two days ago already but apparently it did
not make
it to the list]
Best regards,
Michael
----- do-configure.bat -----
set TRILINOS_HOME=F:/F_Source/trilinos-10.0.1-source
cmake ^
-D Trilinos_ENABLE_NOX:BOOL=ON ^
-D NOX_ENABLE_ABSTRACT_IMPLEMENTATION_EPETRA:BOOL=ON ^
-D NOX_ENABLE_ABSTRACT_IMPLEMENTATION_LAPACK:BOOL=ON ^
-D Trilinos_ENABLE_AztecOO:BOOL=ON ^
-D Trilinos_ENABLE_Ifpack:BOOL=ON ^
-D Trilinos_ENABLE_TESTS:BOOL=ON ^
-D Trilinos_ENABLE_EXAMPLES:BOOL=ON ^
-D DART_TESTING_TIMEOUT:STRING=600 ^
-D
CMAKR_INSTALL_PREFIX:STRING=F:/H_Install/trilinos-10.0.1-install ^
%1 %2 %3 %4 %5 %6 %7 %8 %9 ^
%TRILINOS_HOME
_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users
More information about the Trilinos-Users
mailing list