dump_xtc.h:28:21: fatal error: rpc/rpc.h: No such file or directory

Dear Lammps users,

Not sure where I could direct this question to, so kindly bear with me if this is not the correct place to ask. I am trying to compile LAMMPS on Cygwin and I ran into the error:

dump_xtc.h:28:21: fatal error: rpc/rpc.h: No such file or directory

However, when I run “locate rpc”, it is clearly there, albeit in various places:

/cygdrive/c/Dev-Cpp/include/rpc.h

/usr/include/tirpc/rpc/rpc.h

/usr/i686-pc-mingw32/sys-root/mingw/include/rpc.h

May I know whether anyone can point me in the direction to resolve this, as well as similar problems if it ever occurs again, or have some experience compiling LAMMPS on Cygwin? Thank you very much!

Best Regards,
Jingjie Yeo
Ph.D. Student
School of Mechanical and Aerospace Engineering
Nanyang Technological University, Singapore

Dear Lammps users,

Not sure where I could direct this question to, so kindly bear with me if
this is not the correct place to ask. I am trying to compile LAMMPS on
Cygwin and I ran into the error:

dump_xtc.h:28:21: fatal error: rpc/rpc.h: No such file or directory

However, when I run "locate rpc", it is clearly there, albeit in various
places:

/cygdrive/c/Dev-Cpp/include/rpc.h

/usr/include/tirpc/rpc/rpc.h

/usr/i686-pc-mingw32/sys-root/mingw/include/rpc.h

May I know whether anyone can point me in the direction to resolve this, as
well as similar problems if it ever occurs again, or have some experience
compiling LAMMPS on Cygwin? Thank you very much!

the directions to resolve this are in the LAMMPS manual (where else?).
specifically in:
http://lammps.sandia.gov/doc/Section_start.html#start_2
and:
http://lammps.sandia.gov/doc/dump.html

you have to change the line:
LMP_INC = -DLAMMPS_GZIP
into:
LMP_INC = -DLAMMPS_GZIP -DLAMMPS_XDR
in your makefile and all should work.

axel.

Thank you so much Dr. Axel, it works beautifully now! I kept thinking it was a Cygwin problem, did not occur to me that it was xtc.

Best Regards,
Jingjie Yeo
Ph.D. Student
School of Mechanical and Aerospace Engineering
Nanyang Technological University, Singapore