openmmexampleplugin icon indicating copy to clipboard operation
openmmexampleplugin copied to clipboard

Why is "Context.h" misplaced and missing during installation?

Open zhaodazhuang opened this issue 1 year ago • 1 comments

When I install https://github.com/openmm/openmmexampleplugin?tab=readme-ov-file, After I downloaded and unzipped the file, I renamed it openmm, and then ran the commands in sequence $ cd openmm $ mkdir build && cd build $ make The following error will occur [ 8%] Building CXX object CMakeFiles/ExamplePlugin.dir/openmmapi/src/ExampleForce.cpp.o In file included from /home/user/software/openmm/openmmapi/src/ExampleForce.cpp:32: /home/user/software/openmm/openmmapi/include/ExampleForce.h:35:10: fatal error: openmm/Context.h: No such file or directory 35 | #include "openmm/Context.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/ExamplePlugin.dir/build.make:76: CMakeFiles/ExamplePlugin.dir/openmmapi/src/ExampleForce.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:153: CMakeFiles/ExamplePlugin.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 What it means is that Context.h cannot be found, which has nothing to do with the path, because there is no such file in the original github folder. How should I install openMM correctly

zhaodazhuang avatar Jan 21 '24 07:01 zhaodazhuang

Context.h is is from OpenMM. It probably means you haven't set OPENMM_DIR correctly. See the instructions in the README.

peastman avatar Jan 22 '24 05:01 peastman