IRL2 / nanover-rs

Other
0 stars 1 forks source link

Build a static executable #1

Open jbarnoud opened 2 years ago

jbarnoud commented 2 years ago

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 of openmm-sys. However, doing so now raises an exception in OpenMM_XmlSerializer_deserializeSystem that cannot be caught:

Coordinate array built
fatal runtime error: Rust cannot catch foreign exceptions
Aborted (core dumped)
jbarnoud commented 1 year 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:

jbarnoud commented 1 year ago

Another issue is looming with plugins: