Hi Connor,
Here’s my preferred way of installing on Windows:
Back up your data
Wipe the hard disk
Install Linux
Problem solved.
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:
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.
Then install the package, there will come a point where it asks you to select extra packages to install. In the top of this section there is a search bar. Go into the search bar and search for the following terms:
vim: Install the main one titled ‘vim’, we also installed a bunch of others to be sure, not knowing what might work. If you don’t know what it is it’s just a text editing tool which comes in handy when using the terminal.
gcc: I guess it depends on your chipset, but we installed all the x86 packages that were labelled as developer (or ‘devel’), along with others which weren’t labelled with any particular chipset to be on the safe side, so that’s ‘gcc-fortran’, and some others, also all labelled ‘devel’.
make: Install make and cmake, just searching make will bring up both of these, go for the packages which are labelled simply ‘make’, and ‘cmake’, we didn’t install any others.
others?: There may have been some others but I don’t have the list to hand right now, if you know of any other requirements post them below.
Once you’ve downloaded all the packages above you can run the compilation command within Cygwin just as you would within a Unix terminal: cd Src followed by ./mkgulp . If you run into any problems during compilation it will generally give you a prompt which will let you know what extra packages you need to include in you Cygwin installation. Rerun the Cygwin setup, and select the new packages and try again!
One final note, there is an Include header in the standard gulp make file which points to a folder which doesn’t exist on the windows operating system, it’s something like usr/local/include. That means on compilation you’ll get a warning on every compile that usr/local/include is a bad include and doesn’t exist. Don’t worry about it, it makes no difference to the compilation, and we compiled and ran gulp just fine!
You should now have a working gulp binary! Try running some of the examples in the examples folder within Cygwin!
Thanks again Julian for the great information! Fortunately I didn’t have to mess around with makefiles this time!! Out of interest I see GULP is now 6.0 and it seemed to compile fine with gcc-10.2.*, was that the purpose of the update? Or are there more new features?
I agree that it would be inappropriate to wipe someone else’s computer of course.
Thanks for providing further information on an alternative way to install under Windows and I’m glad it wasn’t too painful.
In regard to version 6.0, I haven’t been able to post anything in the news on the GULP website about the new features due to issues accessing the web development site while working from home. However, there are some more significant changes than working with gfortran version 10 (though there is a compiler option to work around the problems with this version anyway). The main things are:
rigid molecules are now allowed for optimisation and properties (not MD)
Tersoff potential implementation has had some major changes to support more general models and improve things for mixed systems.
Hello everyone.
just to let you know, I have been able to compile gulp on Windows 10, using mingwin through the MSYS2 environment. All recent versions including version 6.0. Slight modification of the mkgulp script may be needed to point to the correct path of the libraries, but nothing other than that. The source compiles without errors and works flawlessly.
Best Regards,
Kyriakos.
I’m afraid the code can’t be shared via this site since that would be a breach of license conditions and therefore illegal. Obtaining the code has to be done via the GULP web site after registration. We’ll see if we can add a Windows (yuk!) exe for version 6.0 in lieu of access to a real operating system.
There should now a Windows version for 6.0 available from the official website for registered users. It has been cross-compiled using Mingw32 and so should hopefully work. Without having access to a Windows machine I haven’t been able to test, but I’m told the process should work. If it doesn’t then remember that Windows is not an officially supported platform & the code can be compiled using a Linux emulator under Windows.
Hey Julian,
I really appreciate your follow up and continues support, I’ll work with PC-Version and libraries for a while and try to share if I see something strange. Of course, I will use the Windows version for light work and I will definitely need a cluster for the main calculations.
I have done a calculation, the program asked for 4 different “.dll” files, once I downloaded and put the files in the root folder of program, it worked.
I have downloaded the files from this website. I have uploaded the files as well.