Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running make install #3

Open
JFChen3 opened this issue Oct 26, 2020 · 1 comment
Open

Error when running make install #3

JFChen3 opened this issue Oct 26, 2020 · 1 comment

Comments

@JFChen3
Copy link

JFChen3 commented Oct 26, 2020

Hello,

I was able to generate the build files using cmake-gui without issue, but when I tried to install the package using make install, I got these errors:

/home/jiming/openmm-ani/openmmapi/src/ANIForceImpl.cpp: In destructor ‘virtual ANIPlugin::ANIForceImpl::~ANIForceImpl()’:
/home/jiming/openmm-ani/openmmapi/src/ANIForceImpl.cpp:50:16: error: ‘molecule_instances’ is not a member of ‘neurochem’
     neurochem::molecule_instances.clear();
                ^~~~~~~~~~~~~~~~~~
/home/jiming/openmm-ani/openmmapi/src/ANIForceImpl.cpp: In member function ‘virtual void ANIPlugin::ANIForceImpl::initialize(OpenMM::ContextImpl&)’:
/home/jiming/openmm-ani/openmmapi/src/ANIForceImpl.cpp:89:84: error: cannot convert ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ to ‘unsigned int’ for argument ‘2’ to ‘void neurochem::instantiate_ani_ensemble(const string&, unsigned int)’
     neurochem::instantiate_ani_ensemble(paramFile,atomFitFile,netWorkDir,nEnsambles);

What can I do to resolve these?

@bgobbi
Copy link
Collaborator

bgobbi commented Nov 29, 2020

You are running into the c++ abi issue. I have fought for a long time around this and must admit that I still do not fully understand it. However, this all only works if both OpenMM and neurochem are compiled with compatible abi settings.
Here are some related links:
openmm/openmm-tensorflow#8
openmm/openmm-plumed#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants