Hello everyone,
I posted a similar message yesterday, where I had a bunch of errors while compiling LAMMPS. I'm on a different machine now (using Windows 8.1 as the subject line says) and still having trouble, but in different ways. I need to use a slightly modified 'pair_coul_dsf.cpp' file (in the src folder), which is why I want to recompile it myself instead of using a pre-made executable. The modified file uses the actual error function instead of an approximation. I have a feeling I'm a little confused about exactly how to build LAMMPS myself, so if I say something here that's incorrect, I'd really appreciate somebody clearing it up for me. As I understand it from this page: http://lammps.sandia.gov/doc/Section_start.html#start_2_6, to build on Windows, you need to use cygwin to go to C:\(...)\src\MAKE\MACHINES and run the Makefile.cygwin makefile. I have CMake and cygwin installed on my computer with the appropriate folders added to my path, but I had no luck in running it. I used the!
command:
$ make -f Makefile.cygwin
in the cygwin prompt, and got the following error:
Makefile.cygwin:72: Makefile.package.settings: No such file or directory
Makefile.cygwin:73: Makefile.package: No such file or directory
make: *** No rule to make target 'Makefile.package'. Stop.
I'm in unfamiliar territory and don't understand what I would need to do to correct this. I also tried to compile LAMMPS by doing it the same way I tried on the Mac, by going to the STUBS folder, typing 'make', 'cd ..', and then 'make serial', but that also failed. The output began with a bunch of lines that said "command not found", followed by a long list of things that appeared to work okay, and then it ended with:
In file included from ../pointers.h:24:0,
from ../read_data.h:24,
from ../read_data.cpp:19:
../read_data.cpp: In member function 'void LAMMPS_NS::ReadData::header()':
../lmptype.h:89:19: error: 'INT64_MAX' was not declared in this scope
#define MAXBIGINT INT64_MAX
^
../read_data.cpp:727:43: note: in expansion of macro 'MAXBIGINT'
if (atom->natoms < 0 || atom->natoms >= MAXBIGINT ||
^
Makefile:102: recipe for target 'read_data.o' failed
make[1]: *** [read_data.o] Error 1
make[1]: Leaving directory '/cygdrive/c/LAMMPS/lammps-9Dec14/src/Obj_serial'
Makefile:94: recipe for target 'serial' failed
make: *** [serial] Error 2
Further down on the Getting Started page I linked above, in the "Building for Windows" section under "packages that require extra libraries", it says I need to run makefiles in each folder in the lib folder, but I tried to do that (from the Windows command prompt) also without success. I used the suggested commands given in the README.txt files, but it didn't work. The instructions page says I may need to tailor each makefile to my particular machine, and I don't have any idea how to do that.
I apologize if anything I'm doing is senseless - I feel a little lost. Any push in the right direction would be greatly appreciated. Thanks in advance!
Regards,
Nathan