- 积分
- 44
- 注册时间
- 2005-3-18
- 仿真币
-
- 最后登录
- 1970-1-1
|
1. You need cmake installed in your computer.
2. You need msys installed in your computer.
3. Of course, visual studio also. The free express edition is OK.
4. You need BLAS and LAPACK compiler in you computer. I choose clapack beacuse it need no Fortran compiler which could be compiler by express edition of visual studio.
5. Download Trilinos and uncompress it.
6. Make a new dir in your Trilinos home, e.g. $(TRILINOS_HOME)\build
7. Write down a shell script in this new folder like below
#!/bin/sh
EXTRA_ARGS=$@
rm -r CMakeCache.txt CMakeFiles/
cmake \
-D Trilinos_ENABLE_TESTS:BOOL=ON \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_FEI:BOOL=ON \
-D Trilinos_ENABLE_Fortran:BOOL=OFF \
-D Trilinos_ENABLE_BLAS:BOOL=ON \
-D Trilinos_ENABLE_LAPACK:BOOL=ON \
-D TPL_BLAS_LIBRARIES:STRING="/c/Myprograms/solver/clapack-3.2.1/lib/win32/blas.lib;/c/Myprograms/solver/clapack-3.2.1/lib/win32/libf2c.lib" \
-D LAPACK_LIBRARY_NAMES:STRING=/c/Myprograms/solver/clapack-3.2.1/lib/win32/lapack.lib \
$EXTRA_ARGS \
${TRILINOS_HOME}
7. Just run it in msys, it will generate files neccesary for VS compiler.
8. Compile.
Problems:
1. Some files missing the definition of std::greater, just include <functional> to solver this problem
2. In my case, library of BLAS and LAPACK are not setuped rightfully. I introduced the right position of blas and lapack libaray into the project like: FEI_beam, FEI_beam_oldfei, FEI_test, FEI_unit manually.
|
|