-
Notifications
You must be signed in to change notification settings - Fork 6
/
windows_manual_build.txt
65 lines (56 loc) · 2.05 KB
/
windows_manual_build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# install MinGW (here installed in G:\msys64)
# install other dependencies
pacman --noconfirm -Syu
pacman --noconfirm -S msys/git
pacman --noconfirm -S mingw64/mingw-w64-x86_64-gcc
pacman --noconfirm -S mingw64/mingw-w64-x86_64-gcc-fortran
pacman --noconfirm -S mingw64/mingw-w64-x86_64-cmake
pacman --noconfirm -S mingw64/mingw-w64-x86_64-doxygen
pacman --noconfirm -S msys/make
pacman --noconfirm -S mingw-w64-x86_64-pkg-config
pacman --noconfirm -S mingw-w64-x86_64-hdf5
pacman --noconfirm -S mingw-w64-x86_64-libzip
pacman --noconfirm -S mingw-w64-x86_64-netcdf
# checkout and build in g:\workspace
mkdir g:\workspace
cd g:\workspace
git clone https://github.com/virtualcell/vcell-solvers.git
cd vcell-solvers
mkdir build
mkdir build/bin
cd build
# the following needs to run in powershell
$Env:Path = "G:\msys64\mingw64\bin" + ";" + "G:\msys64\usr\bin" + ";" + $Env:Path
Write-Host "calling cmake in " + $pwd
# NFsim only
cmake -G "Unix Makefiles" `
-DCMAKE_BUILD_TYPE="Release" `
-DOPTION_TARGET_MESSAGING=OFF `
-DOPTION_TARGET_PARALLEL=OFF `
-DOPTION_TARGET_CHOMBO2D_SOLVER=OFF `
-DOPTION_TARGET_CHOMBO3D_SOLVER=OFF `
-DOPTION_TARGET_SMOLDYN_SOLVER=OFF `
-DOPTION_TARGET_FV_SOLVER=OFF `
-DOPTION_TARGET_STOCHASTIC_SOLVER=OFF `
-DOPTION_TARGET_NFSIM_SOLVER=ON `
-DOPTION_TARGET_MOVINGBOUNDARY_SOLVER=OFF `
-DOPTION_TARGET_SUNDIALS_SOLVER=OFF `
-DOPTION_TARGET_HY3S_SOLVERS=OFF `
..
# All local windows solvers
cmake -G "Unix Makefiles" `
-DCMAKE_BUILD_TYPE="Release" `
-DOPTION_TARGET_MESSAGING=OFF `
-DOPTION_TARGET_PARALLEL=OFF `
-DOPTION_TARGET_CHOMBO2D_SOLVER=OFF `
-DOPTION_TARGET_CHOMBO3D_SOLVER=OFF `
-DOPTION_TARGET_SMOLDYN_SOLVER=ON `
-DOPTION_TARGET_FV_SOLVER=ON `
-DOPTION_TARGET_STOCHASTIC_SOLVER=ON `
-DOPTION_TARGET_NFSIM_SOLVER=ON `
-DOPTION_TARGET_MOVINGBOUNDARY_SOLVER=OFF `
-DOPTION_TARGET_SUNDIALS_SOLVER=ON `
-DOPTION_TARGET_HY3S_SOLVERS=OFF `
..
# run make in build directory
make