Setting up LIGGGHTS in Windows

Submitted by MC Pang on Mon, 01/20/2020 - 16:00

Hi all,

I am new to LIGGGHTS and aspire to learn more about using DEM. I am using Windows 10 and have used various methods to install LIGGGHTS. I have managed to build LIGGGHTS with the instructions from Christian:
https://www.cfdem.com/forums/alternative-cmake-build-environment

I am running Cygwin in Windows and was trying to run this command just now:
$ make -f Makefile.shlib auto

But I get the following error:

make[1]: Entering directory '/cygdrive/c/Users/XXX/LIGGGHTS-PUBLIC-master/src/Obj_auto'
Warning: VTK has been disabled due to compilation on Windows
Warning: SUPERQUADRICS has been disabled due to compilation on Windows
Warning: MPI has been disabled due to compilation on Windows
Warning: XDR has been enabled due to compilation on Windows
"Warning: both CXX and CXX_USR are set, precedence is given to CXX = g++ (CXX_USR = )"
Makefile:571: *** 'Could not compile a simple c++ example. Please make sure that you have run "make stubs" before compiling LIGGGHTS itself. Test was done with CXX=g++, EXTRA_INC= -I../STUBS, EXTRA_LIB= -L../STUBS and EXTRA_ADDLIBS= -lmpi_stubs.'. Stop.
make[1]: Leaving directory '/cygdrive/c/Users/XXX/LIGGGHTS-PUBLIC-master/src/Obj_auto'

I have build vtk 8.0.1 in a separate directory and installed different versions of MPI (including LAMMPS-64bit-latest-MPI), but it seems that something is still not correct. Can anyone help me with correcting these errors?

Thanks,
MC