Skip to content
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

Add instructions for OSX #170

Open
mcneish1 opened this issue Jun 5, 2020 · 1 comment
Open

Add instructions for OSX #170

mcneish1 opened this issue Jun 5, 2020 · 1 comment

Comments

@mcneish1
Copy link

mcneish1 commented Jun 5, 2020

Is your feature request related to a problem? Please describe.
Current master doesn't ship with executables for Mac, but instructions to create them don't seem to be present.

Describe the solution you'd like
The following steps worked for me, though they may need some adjustment.

  1. Grab EPANET 2.1 from https://github.com/OpenWaterAnalytics/EPANET/
  2. Edit build/CMake/CMakeLists.txt:19 to say
    add_library(epanet SHARED ${EPANET_SOURCES})
  3. cd build/CMake ; cmake . ; make
  4. Create a folder called epanet_matlab_toolkit/mac in this project. Copy runepanet and libepanet.dylib from build/CMake/bin here. Copy include/epanet.h here, renamed to libepanet.h
  5. Edit epanet_matlab_toolkit/epanet.m in this project to uncomment lines 427-430
@Mariosmsk
Copy link
Member

Hi @ mcneish1, thanks for the instructions. We have include mac libraries for dev 2.2 here:
https://github.com/OpenWaterAnalytics/EPANET-Matlab-Toolkit/tree/dev-2.2-edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants