USEPA / Stormwater-Management-Model

Dynamic hydrology-hydraulic water quality simulation model
236 stars 174 forks source link

Experimental build for linux and macos #131

Open cbuahin opened 1 year ago

cbuahin commented 1 year ago

While SWMM has traditionally been compiled for Windows, the C source code can be compiled to run on other operating systems. Building linux and macos binaries will provide support for those that work on other operating systems. A caveat to this effort is that it is an experimental effort, and in the near term, the resulting binaries will not be going through the rigorous review and regression testing that the windows build undergoes.

LRossman commented 1 year ago

The SWMM 5 engine will compile under Linux with no problems using cmake. The GUI is another story -- I don't think the free community edition of Delphi has Linux support for the VCL code used in SWMM. You would have to re-write it with a different Delphi platform called FireMonkey. Or better yet, convert it to Lazarus which is Delphi-based, cross-platform, and free.

FYI - SWMM can run under Linux using Wine-- see the screenshot below. Swmm-linux

cbuahin commented 1 year ago

Thank you for the background @LRossman! My thinking was to start with building the engine. Out of all the options for the GUI, I am partial to looking closely into Lazarus.