[lammps-users] compile lammps w/h MEAM on TACC

I had a similar issue however the following changes to the Makefile worked
for me (OpenMPI GCC 4.1.1).
Replace Path to with path to the relevant libraries.

LINKFLAGS = -O3 -LPath to/lib/meam -LPath to/fftw-2.1.5/lib \
                -LPath to/fftw-2.1.5/include
USRLIB = -lfftw -lmeam -lgfortran

--
---
LT Kong
App Math, UWO
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 6
Date: Thu, 15 Jan 2009 16:50:25 -0600
From: "HeeSung Choi" <[email protected]...>
Subject: Re: [lammps-users] compile lammps w/h MEAM on TACC
To: "Steve Plimpton" <[email protected]>
Cc: [email protected]
Message-ID:
   <[email protected]...>
Content-Type: text/plain; charset="iso-8859-1"

Dear Steve,

I followed your suggestion, but it does not work, neither.
There are some error messages below.
I searched them in the website and found that the problem is a link

problem

with c++ and fortran.

pair_meam.o: In function `LAMMPS_NS::PairMEAM::~PairMEAM()':
pair_meam.cpp:(.text+0x2f): undefined reference to `meam_cleanup_'
pair_meam.o: In function `_ZN9LAMMPS_NS8PairMEAMD9Ev':
pair_meam.cpp:(.text+0x353): undefined reference to `meam_cleanup_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::~PairMEAM()':
pair_meam.cpp:(.text+0x687): undefined reference to `meam_cleanup_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::compute(int, int)':
pair_meam.cpp:(.text+0x13de): undefined reference to `meam_dens_init_'
pair_meam.cpp:(.text+0x1589): undefined reference to `meam_dens_final_'
pair_meam.cpp:(.text+0x1815): undefined reference to `meam_force_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::coeff(int, char**)':
pair_meam.cpp:(.text+0x1dfa): undefined reference to `meam_setup_done_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::read_files(char*, char*)':
pair_meam.cpp:(.text+0x2ace): undefined reference to `meam_setup_global_'
pair_meam.cpp:(.text+0x2fb8): undefined reference to `meam_setup_param_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::~PairMEAM()':
pair_meam.cpp:(.text+0x4107): undefined reference to `meam_cleanup_'
make[1]: [../lmp_lonestar_meam] Error 1 (ignored)
size ../lmp_lonestar_meam
size: '../lmp_lonestar_meam': No such file
make[1]: Leaving directory
`/home/01049/hschoi/lammps-15Jan09/src/Obj_lonestar_meam'

I have no idea why these errors occur only when I installed meam package.
Do you have any idea or other suggestions?
Thanks.

HeeSung

> Sometimes make can get confused. I would try
> make yes-all; make no-poems; make tacc_meam
> to do a clean build. If this doesn't work, then post
> the syntax of the error message.
>
> Can you (or someone) post a Makefile.tacc or Makefile.lonestar
> that we can add to the distribution?
>
> Steve
>
> > Dear all,
> >
> > Did anybody compile Lammps w/h MEAM on TACC?
> > I tried to compile this on TACC (lonestar), but failed it after

careful

> > reading a manual.
> > Strangely, without MEAM package, I compiled lammps linked with meam
> library.
> > But whenever I installed MEAM package, I failed to compile.
> > Please show me your makefile if you compiled lammps with meam package

on