Installing GULP on windows 10

Hi Connor,
Here’s my preferred way of installing on Windows:

  1. Back up your data
  2. Wipe the hard disk
  3. Install Linux
    Problem solved. :slight_smile:
    Dual boot is another option.
    Strictly speaking GULP is not supported on Windows since I don’t have access to this O/S. However, according to one of my colleagues, Peter Spackman, it is possible to run on Windows by cross compiling using Mingw.
    You can add the patch below to the mkgulp file:

Blockquote
#mingw
mingw)
if [ “$debug” = “” ]
then
echo ‘OPT=-O3 -ffpe-summary=invalid,zero,overflow -static’ >> makefile
echo ‘OPT2=-O2 -ffpe-summary=invalid,zero,overflow -static’ >> makefile
echo ‘OPT1=-O1 -ffpe-summary=invalid,zero,overflow -static’ >> makefile
else
echo ‘OPT=’ >> makefile
echo ‘OPT1=’ >> makefile
echo ‘OPT2=-ffloat-store’ >> makefile
echo 'BAGGER=-g -Wall -Wunused-parameter -fbounds-check ’ >> makefile
fi
if [ “$parallel” = “” ]
then
echo ‘RUNF90=x86_64-w64-mingw32-gfortran’ >> makefile
echo ‘RUNCC=x86_64-w64-mingw32-gfortran’ >> makefile
echo 'SLIBS= ’ >> makefile
#–USER–Start
echo ‘MLIBS=lapack.o blas.o’ >> makefile
#–USER–End
else
echo 'RUNF90=mpif90 ’ >> makefile
echo 'RUNCC=mpif90 ’ >> makefile
fi
;;

NB: Apparently the link fails because of the difference between executable names (gulp vs gulp.exe) but this can be overcome (probably by editing the Makefile)

Note there are some Windows exes available from the GULP website if you look at old versions, but I can’t vouch they work with Windows 10. I’ll see if we can put an exe up there in future.

Cheers

Julian

1 Like