[Trilinos-Users] Build on MinGW?

John R. Cary cary at colorado.edu
Tue Jul 6 12:34:00 MDT 2010


Has anyone built trilinos on MinGW?

I can get it to configure with

cmake -DCMAKE_INSTALL_PREFIX:PATH=/contrib/trilinos-10.2.0-ser 
-DCMAKE_BUILD_
TYPE:STRING=RELEASE -DSVN_BINDIR:PATH='C:/Program 
Files/CollabNet/Subversion Cl
ient' -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE:STRING=RELEASE 
-DCMAKE_VERBOSE_MAK
EFILE:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH='gcc' 
-DCMAKE_CXX_COMPILER:FILEPATH
='g++' -DCMAKE_Fortran_COMPILER:FILEPATH='gfortran' 
-DCMAKE_C_FLAGS:STRING='-fP
IC' -DCMAKE_CXX_FLAGS:STRING='-fPIC' 
-DCMAKE_Fortran_FLAGS:STRING='-fPIC' -DTri
linos_ENABLE_Amesos:BOOL=ON -DTrilinos_ENABLE_ML:BOOL=ON 
-DTrilinos_ENABLE_Azte
cOO:BOOL=ON -DTrilinos_ENABLE_EpetraExt:BOOL=ON 
-DTrilinos_ENABLE_Epetra:BOOL=O
N -DTrilinos_ENABLE_Triutils:BOOL=ON -DTrilinos_ENABLE_Teuchos:BOOL=ON 
-DTrilin
os_ENABLE_Ifpack:BOOL=ON -DTrilinos_ENABLE_Galeri:BOOL=ON 
-DTrilinos_ENABLE_Ana
sazi:BOOL=ON -DDART_TESTING_TIMEOUT:STRING=600 
-DTrilinos_EXTRA_LINK_FLAGS:STRI
NG='-L/home/cary/vpall -Wl,-rpath,/home/cary/vpall'  
-DLAPACK_LIBRARY_DIRS:PATH
='/contrib/clapack_cmake-3.2.1-ser/lib' 
-DLAPACK_LIBRARY_NAMES:STRING='lapack;f
2c' -DBLAS_LIBRARY_DIRS:PATH='/contrib/clapack_cmake-3.2.1-ser/lib' 
-DBLAS_LIBR
ARY_NAMES:STRING='blas'  /home/cary/vpall/builds/trilinos-10.2.0

but then it errors out with

c:/msys/1.0/home/cary/vpall/builds/trilinos-10.2.0/packages/ml/src/Utils/ml_epetra_utils.cpp: 
In function 'void ML_BreakForDebugger(const Epetra_Comm&)':
c:/msys/1.0/home/cary/vpall/builds/trilinos-10.2.0/packages/ml/src/Utils/ml_epetra_utils.cpp:3463:43: 
error: 'gethostname' was not declared in this scope
c:/msys/1.0/home/cary/vpall/builds/trilinos-10.2.0/packages/ml/src/Utils/ml_epetra_utils.cpp:3470:12: 
error: 'sleep' was not declared in this scope
make[2]: *** 
[packages/ml/src/CMakeFiles/ml.dir/Utils/ml_epetra_utils.cpp.obj] Error 1


Is there some define to prevent having these unix system calls?

Thx....John




More information about the Trilinos-Users mailing list