-
Notifications
You must be signed in to change notification settings - Fork 24
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
Build openmm-plumed in a container #85
Comments
Check whether you have |
No actually it is not there. well in this case what should I set Plumed_include and library directories to ? |
You need to figure out where Plumed is installed. How did you install it? |
I re-installed it then, found the wrapper file here |
|
oh, right ! i don't know if the way i installed plumed made it install an old version ! |
What compiler are you using? |
gcc 11.4 ! |
That version should be fine. I have no idea. Does this only happen when building inside a container, not when building natively? |
When I build it natively i also get the same exact error. |
Does this mean that i build it wrongly, or is it a compatibility issue ? |
I don't know. Can you show the exact sequence of commands you execute for building natively and the full output from them? |
git clone https://github.com/openmm/openmm-plumed.git Cloning into 'openmm-plumed'... cd openmm-plumed/ the output for this
near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first CMake Deprecation Warning at CMakeLists.txt:5 (CMAKE_MINIMUM_REQUIRED): Update the VERSION argument value or use a ... suffix to tell -- Configuring done make install Consolidate compiler generated dependencies of target OpenMMPlumed |
any ideas ? |
I've never seen that error before, including with recent versions of gcc, so I'm not sure. The specific error is
Plumed.h is the header file Plumed provides that allows other programs to call it. Apparently it uses the
That's confusing, because according to the documentation it's actually defined in #if __cplusplus > 199711L && __PLUMED_WRAPPER_LIBCXX11 But when it actually uses #if __cplusplus > 199711L So if That said, I don't know why this problem is appearing for you but not for our standard builds. |
I have the same issue when I am trying to install within a conda environment. Any updates, @gorgW ? |
So I was trying to build the plugin on the container using cmake as following :
RUN cd /opt &&
git clone https://github.com/openmm/openmm-plumed.git &&
cd openmm-plumed &&
mkdir build &&
cd build &&
cmake .. &&
export OPENMM_DIR=/usr/local/lib/python3.10/dist-packages/openmm &&
export PLUMED_INCLUDE_DIR=/usr/local/lib/python3.10/dist-packages/openmm-plumed/include/plumed &&
export PLUMED_LIBRARY_DIR=/usr/local/lib/python3.10/dist-packages/openmm-plumed/lib &&
export CMAKE_INSTALL_PREFIX=$OPENMM_DIR
RUN cd /opt/openmm-plumed/build &&
make install
RUN make PythonInstall
and I was getting this error
`=> ERROR [ 8/17] RUN CD /opt/openmm-plumed/build && make install 0.5s
is there a way to fix this ?
Thanks.
The text was updated successfully, but these errors were encountered: