Installation of amp_model_driver
I was trying to follow the instructions to install amp (https://bitbucket.org/schiotz/amp/src) for OpenKIM, so that I could use the potential trained from amp to do simulations in Lammps.
When I reached "Installation of amp_model_driver" part, I tried to install the amp_model_driver by:
\$ kim-api-v2-collections-management install user ./amp_model_driver
But it gives me errors:
CMake Error at CMakeLists.txt:43 (find_package):
Could not find a package configuration file provided by "KIM-API-V2"
(requested version 2.0) with any of the following names:
_**KIM-API-V2Config.cmake**_
_**kim-api-v2-config.cmake**_
Add the installation prefix of "KIM-API-V2" to CMAKE_PREFIX_PATH or set
"KIM-API-V2_DIR" to a directory containing one of the above files. If
"KIM-API-V2" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
Aborting!
The kim-api-v2-config.cmake could be found in “/kim-api/build/cmake/”directory. In addition, I have read the related issues in amp-users mailing (https://listserv.brown.edu/cgi-bin/wa?A1=ind1905&L=AMP-USERS), and I can’t solve it.
Let’s define CMAKE_PREFIX_PATH by using own path. In my case, I compiled kim-package in LAMMPS.
export CMAKE_PREFIX_PATH=~/src/mylammps/lib/kim/kim-api-2.0.2/build/cmake