thiagoralves / OpenPLC_v2

OpenPLC with the new IEC ST to C compiler
http://www.openplcproject.com
GNU General Public License v3.0
189 stars 108 forks source link

Enable non-interactive building #8

Open blm768 opened 6 years ago

blm768 commented 6 years ago

These changes make it easier to run build.sh in a non-interactive environment. They also link libmodbus statically so we don't need to install it to the system with sudo. There are more tweaks I'd like to make eventually (including non-interactive building with DNP3), but this should be in a working state for now.

thiagoralves commented 6 years ago

Have you tested this setup with libmodbus linking statically? If that works it might even solve linking issues that I'm facing with some weird Linux distributions. We also need to make sure that it works under Cygwin as well. Thanks!

blm768 commented 6 years ago

It seems to work properly on my Debian virtual machine. I haven't run any tests on Cygwin yet, though.

EDIT: I'm getting a cryptic error message when I try to build the MATIEC compiler on Cygwin. Is that typical?