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

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

Open
zhaodazhuang opened this issue Jan 21, 2024 · 1 comment
Open

Comments

@zhaodazhuang
Copy link

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

@peastman
Copy link
Member

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

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