-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add local Windows build instructions
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |