Open jbarnoud opened 2 years ago
The issue is due to the OpenMM serialization code not being included in the static build upstream. Two things need to be solved for that particular failure to be fixed:
registerSerializationProxies
function must be exposed in the C wrapper; upstream it is called automatically when the shared library is loaded, but this does not work for static builds so we need to be able to call the function manuallyregisterSerializationProxies
when it is built with static OpenMMAnother issue is looming with plugins:
One goal for this server is to be distributable as a single file binary. This means linking OpenMM statically.
This can be done by using the
static-lib
feature ofopenmm-sys
. However, doing so now raises an exception inOpenMM_XmlSerializer_deserializeSystem
that cannot be caught: