I download the lastest version(lammps-2Mar12) , do make and install about FFTW-2.1.5 and mpich2-1.2.lpl , then i modefy the Makefile.g++(lammps/src/MAKE) , when i type “make g++” , i get the file lmp_g++ . Well , to add other optional packages like blew:
1 make yes-all(lammmps/src)
2 make no-gpu, make no-reax . . . uninstall all the packages in the lammps/lib directory
3 enter the lammps/lib directory to build liberaries(gpu reax poems meam) i need, of course i get all the lib* . a files
4 modify the Makefile.g++(lammps/src/MAKE) again to add the packages upon information about *_SYSLIB and _SYSPATH
5 back to src directory, type “make g++”
i get the result is : /usr/bin/ld: cannot find -lifcore
i can not understand this about libifcoure is what and where , i really need help.
further , if i uninstall meam and reax , i can get the lmp_g++ , but one of them(meam and reax) is installed , the error will appear.
I download the lastest version\(lammps\-2Mar12\) , do make and install
about FFTW-2.1.5 and mpich2-1.2.lpl , then i modefy the
Makefile.g++(lammps/src/MAKE) , when i type "make g++" , i get the file
lmp_g++ . Well , to add other optional packages like blew:
1 make yes-all(lammmps/src)
2 make no-gpu, make no-reax . . . uninstall all the packages in
the lammps/lib directory
3 enter the lammps/lib directory to build liberaries(gpu reax
poems meam) i need, of course i get all the lib* . a files
If you do (2), why do you need to do (3). That is, if you aren't including
reax (no-reax), then you don't need to build lib/reax
4 modify the Makefile\.g\+\+\(lammps/src/MAKE\) again to add the
packages upon information about *_SYSLIB and *_SYSPATH
you don't need to do this step at all. If you are using the current
version of LAMMPS, there is no SYSLIB and SYSPATH info
anywhere in lammps/src that you need to edit
5 back to src directory, type "make g\+\+"
i get the result is : /usr/bin/ld: cannot find \-lifcore
if (and only if) you have typed make yes-reax, then when
you build the reax lib in lib/reax, you should check the Makefile.lammps
file in that dir to make sure the correct add-on libs (like -lificore)
are listed, if your box requires them
that's all you need to do. I suggest you read the Building LAMMPS section
of the doc pages carefully - it explains all of this.