[Trilinos-Users] Building trilinos

Shepherd, Jason F jfsheph at sandia.gov
Thu Oct 8 16:43:16 MDT 2009


Hi Mike,

My guess is that the Trilinos functions and classes are not be correctly exported under windows, so the *.lib files are not being created for the shared option...  Just a guess...

Jason


________________________________
From: Heroux, Michael A
Sent: Thursday, October 08, 2009 3:38 PM
To: Shepherd, Jason F; trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] Building trilinos

Jason,

I just tried this set of options and ran into what appears to be the same problem.  I am new to Visual Studio so I don't have any suggestions.  I was able to build everything fine with shared libraries turned off.  On Linux, shared libraries need the LD_LIBRARY_PATH defined in order to have the linker find the libraries, if the libraries are not in a standard location.  Could there be a similar issue with Windows?

Mike


On 10/8/09 3:26 PM, "Shepherd, Jason F" <jfsheph at sandia.gov> wrote:

Hi all,

I'm trying to build trilinos on WinXP using Cmake 2.8b with the following settings:

* BUILD_SHARED_LIBS = ON
* TPL_ENABLE_BLAS = ON
* TPL_ENABLE_LAPACK = ON
* TPL_ENABLE_MPI = ON
* Trilinos_ENABLE_Anasazi = ON
* Trilinos_ENABLE_Epetra = ON
* Trilinos_ENABLE_Fortran = OFF
* Trilinos_ENABLE_Teuchos = ON

Clapack was built previously using clapack-3.2.1-CMAKE

I'm getting the following linking errors.  Are the relative paths setup correctly?

Jason



LINK : fatal error LNK1104: cannot open file '..\..\epetra\src\Debug\epetra.lib'
Build log was saved at "file://c:\Software\Trilinos_repository\trilinos_build\packages\anasazi\src\anasazi.dir\Debug\BuildLog.htm <file://c:\Software\Trilinos_repository\trilinos_build\packages\anasazi\src\anasazi.dir\Debug\BuildLog.htm> "
anasazi - 1 error(s), 0 warning(s)

LINK : fatal error LNK1104: cannot open file '..\..\..\src\Debug\anasazi.lib'
Build log was saved at "file://c:\Software\Trilinos_repository\trilinos_build\packages\anasazi\epetra\util\ModeLaplace\ModeLaplace.dir\Debug\BuildLog.htm <file://c:\Software\Trilinos_repository\trilinos_build\packages\anasazi\epetra\util\ModeLaplace\ModeLaplace.dir\Debug\BuildLog.htm> "
ModeLaplace - 1 error(s), 2 warning(s)

LINK : fatal error LNK1104: cannot open file '..\..\src\Debug\anasazi.lib'
Build log was saved at "file://c:\Software\Trilinos_repository\trilinos_build\packages\anasazi\epetra\src\anasaziepetra.dir\Debug\BuildLog.htm <file://c:\Software\Trilinos_repository\trilinos_build\packages\anasazi\epetra\src\anasaziepetra.dir\Debug\BuildLog.htm> "
anasaziepetra - 1 error(s), 0 warning(s)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091008/b7a947c9/attachment-0001.html 


More information about the Trilinos-Users mailing list