dcjones / quip

Compressing next-generation sequencing data with extreme prejudice.
http://www.cs.washington.edu/homes/dcjones/quip/
BSD 3-Clause "New" or "Revised" License
78 stars 10 forks source link

<< Using with LAMMPS >> #29

Open icamps opened 5 years ago

icamps commented 5 years ago

Hi,

I am trying to use/compile LAMMPS with QUIP.

I cloned the repository and compile QUIP with mpicc and mpic++. In the final stage of linking QUIP library with LAMMPS, I am getting the following error:

[100%] Linking CXX executable lmp /usr/bin/ld: CMakeFiles/lmp.dir/home/icamps/Downloads/LAMMPS/mylammps/src/USER-QUIP/pair_quip.cpp.o: in functionLAMMPS_NS::PairQUIP::settings(int, char**)': pair_quip.cpp:(.text+0x189): undefined reference to `quip_lammps_api_version'

/usr/bin/ld: CMakeFiles/lmp.dir/home/icamps/Downloads/LAMMPS/mylammps/src/USER-QUIP/pair_quip.cpp.o: in function LAMMPS_NS::PairQUIP::compute(int, int)': pair_quip.cpp:(.text+0x61a): undefined reference toquip_lammps_wrapper'

/usr/bin/ld: CMakeFiles/lmp.dir/home/icamps/Downloads/LAMMPS/mylammps/src/USER-QUIP/pair_quip.cpp.o: in function LAMMPS_NS::PairQUIP::coeff(int, char**)': pair_quip.cpp:(.text+0x105e): undefined reference toquip_lammps_potential_initialise'

/usr/bin/ld: pair_quip.cpp:(.text+0x10c4): undefined reference to quip_lammps_potential_initialise' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/lmp.dir/build.make:5790: lmp] Error 1 make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/lmp.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Do you have any idea about this?

Thanks in advance.

Regards,

Camps

hanyecn commented 3 years ago

I've got the same error, have you solved this problem? Thanks.

icamps commented 3 years ago

@hanyecn , no.

hanyecn commented 3 years ago

I have solved this problem by editing the Makefile of lammps. I changed the CXX to icc, it works for me. I used intel compiler to compile libquip and lammps.

icamps commented 3 years ago

@hanyecn thanks for the tips! I will try it.