Skip to content

Commit

Permalink
add local Windows build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
danv61 committed Jul 31, 2018
1 parent 10da60c commit c54367b
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions windows_manual_build.txt
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

0 comments on commit c54367b

Please sign in to comment.