OpenWaterAnalytics / EPANET

The Water Distribution System Hydraulic and Water Quality Analysis Toolkit
MIT License
272 stars 201 forks source link

OSX: How to reference boost library #794

Open JJHelly opened 1 month ago

JJHelly commented 1 month ago

Aloha. I've been stumbling around trying to find out how to build the 'tests'. I've installed boost (apparently) in /usr/local/boost_1_85_0 but can't quite grok how to get cmake to notice it.

Any advice would be welcome.

J

0tkl commented 1 month ago

brew install boost

JJHelly commented 1 month ago

Aloha.

I use macports.  Can't install brew with it.

J.

On 5/28/24 15:24, 0tkl wrote:

|brew install boost|

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/OpenWaterAnalytics/EPANET/issues/794*issuecomment-2136351521__;Iw!!Mih3wA!Dm-TeJiFSkIXIHb5XxsjY4XF3iCrVwv4tDCvgrV5GDHYr5hsRVxTwfEiPumgO4uKNaCLWswH5RIRB5qLqsS64sbl$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AZ3YXQAY526JKDGN26F76JLZEUU6VAVCNFSM6AAAAABIIGNSZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGM2TCNJSGE__;!!Mih3wA!Dm-TeJiFSkIXIHb5XxsjY4XF3iCrVwv4tDCvgrV5GDHYr5hsRVxTwfEiPumgO4uKNaCLWswH5RIRB5qLql-mPRzO$. You are receiving this because you authored the thread.Message ID: @.***>

-- John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------5Df1SK1JWbihRosZaQwxtVg3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

<!DOCTYPE html>

Aloha.

I use macports.  Can't install brew with it.

J.

On 5/28/24 15:24, 0tkl wrote:

brew install boost


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: <OpenWaterAnalytics/EPANET/issues/794/2136351521@github.com>


-- 
John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography 
https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------5Df1SK1JWbihRosZaQwxtVg3--

0tkl commented 1 month ago

Does LD_LIBRARY_PATH=/usr/local/boost_1_85_0:$LD_LIBRARY_PATH cmake <arguments> work?

JJHelly commented 1 month ago

Yes.  That's does it.  I have a similar problem with swmm5.  Do you have any idea how to fix these library paths so they don't have to be in the command-line?  I mean is there some way to properly reference the PATHs so there is no need for a command-line modifier or shell wrapper?

J.

On 5/28/24 16:28, 0tkl wrote:

LD_LIBRARY_PATH=/usr/local/boost_1_85_0:$LD_LIBRARY_PATH cmake

-- John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

JJHelly commented 1 month ago

Another way to think of this is 'Where does brew put it'?

J.

On 5/28/24 16:28, 0tkl wrote:

Does |LD_LIBRARY_PATH=/usr/local/boost_1_85_0:$LD_LIBRARY_PATH cmake

| work? — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you authored the thread.Message ID: ***@***.***>

-- John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------QL0P3AH2GYEzomYxxUwP0YAv Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

<!DOCTYPE html>

Another way to think of this is 'Where does brew put it'?

J.

On 5/28/24 16:28, 0tkl wrote:

Does LD_LIBRARY_PATH=/usr/local/boost_1_85_0:$LD_LIBRARY_PATH cmake <arguments> work?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: <OpenWaterAnalytics/EPANET/issues/794/2136403761@github.com>


-- 
John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography 
https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------QL0P3AH2GYEzomYxxUwP0YAv--

LRossman commented 1 month ago

You do realize that the unit tests and regression tests are run whenever you submit a pull request. Personally I've never bothered to install Boost and build the unit test executables locally. Instead I work with a fork of the repo, make my code changes on it, submit a PR for them and then review the Appveyor report of the test results.

JJHelly commented 1 month ago

Aloha.

I don't understand the import of your message.  I am running on OSX and am attempting to learn EPANET and assumed the tests would be illuminating as to how to use it.  Sounds like the tests are irrelevant to a user.  Is that your point?

J.

On 5/28/24 18:18, Lew Rossman wrote:

You do realize that the unit tests and regression tests are run whenever you submit a pull request. Personally I've never bothered to install Boost and build the unit test executables locally. Instead I work with a fork of the repo, make my code changes on it, submit a PR for them and then review the Appveyor report of the test results.

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/OpenWaterAnalytics/EPANET/issues/794*issuecomment-2136482957__;Iw!!Mih3wA!G9xo3JrFLe8eiGcp-U1fu8R8xW4XyK9yf3so_OqJDlmCAQOgjjXgTsZ6gRNQ4GIqbMbaHDo2kg9liIMu-CgrsT5I$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AZ3YXQBCRTOXIB6G4RBBV5LZEVJLBAVCNFSM6AAAAABIIGNSZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGQ4DEOJVG4__;!!Mih3wA!G9xo3JrFLe8eiGcp-U1fu8R8xW4XyK9yf3so_OqJDlmCAQOgjjXgTsZ6gRNQ4GIqbMbaHDo2kg9liIMu-NLsY21R$. You are receiving this because you authored the thread.Message ID: @.***>

-- John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------100zXhC1zK3ZPQOvUE1ceE8S Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

<!DOCTYPE html>

Aloha.

I don't understand the import of your message.  I am running on OSX and am attempting to learn EPANET and assumed the tests would be illuminating as to how to use it.  Sounds like the tests are irrelevant to a user.  Is that your point?

J.

On 5/28/24 18:18, Lew Rossman wrote:

You do realize that the unit tests and regression tests are run whenever you submit a pull request. Personally I've never bothered to install Boost and build the unit test executables locally. Instead I work with a fork of the repo, make my code changes on it, submit a PR for them and then review the Appveyor report of the test results.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: <OpenWaterAnalytics/EPANET/issues/794/2136482957@github.com>


-- 
John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography 
https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------100zXhC1zK3ZPQOvUE1ceE8S--

LRossman commented 1 month ago

I'd say the tests are more important for developers than for users since they are so artificial in nature (they just check that the various API functions do what they are supposed to do).

If you want to learn how to use the API then you should read its documentation. It includes several more useful examples than the unit tests. If you want to learn more in general about EPANET then you should read the US EPA's User Manual.

JJHelly commented 1 month ago

Reading's fine.  Learning from examples, better. J.

On 5/28/24 19:40, Lew Rossman wrote:

I'd say the tests are more important for developers than for users since they are so artificial in nature (they just check that the various API functions do what they are supposed to do).

If you want to learn how to use the API then you should read its documentation https://urldefense.com/v3/__http://wateranalytics.org/EPANET/__;!!Mih3wA!DRNwyk5zxKkP_KSCx-xnXNDB_PhhRMKPKdReajgiP3_UF_XzZ2o3bq-1ZfBJvh7xPzd1mdOvm_S2JW5syw9rcjwv$. It includes several more useful examples than the unit tests. If you want to learn more in general about EPANET then you should read the US EPA's User Manual https://urldefense.com/v3/__https://epanet22.readthedocs.io/en/latest/__;!!Mih3wA!DRNwyk5zxKkP_KSCx-xnXNDB_PhhRMKPKdReajgiP3_UF_XzZ2o3bq-1ZfBJvh7xPzd1mdOvm_S2JW5sy2Tjt3EY$.

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/OpenWaterAnalytics/EPANET/issues/794*issuecomment-2136552544__;Iw!!Mih3wA!DRNwyk5zxKkP_KSCx-xnXNDB_PhhRMKPKdReajgiP3_UF_XzZ2o3bq-1ZfBJvh7xPzd1mdOvm_S2JW5sy1AasTwJ$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AZ3YXQDGGRXLTXEDYUCC7GLZEVS4XAVCNFSM6AAAAABIIGNSZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGU2TENJUGQ__;!!Mih3wA!DRNwyk5zxKkP_KSCx-xnXNDB_PhhRMKPKdReajgiP3_UF_XzZ2o3bq-1ZfBJvh7xPzd1mdOvm_S2JW5sy63yeJ7z$. You are receiving this because you authored the thread.Message ID: @.***>

-- John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------Mso33eEy0J9xZGjsBW20VwKT Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

<!DOCTYPE html>

Reading's fine.  Learning from examples, better. 
J.

On 5/28/24 19:40, Lew Rossman wrote:

I'd say the tests are more important for developers than for users since they are so artificial in nature (they just check that the various API functions do what they are supposed to do).

If you want to learn how to use the API then you should read its documentation. It includes several more useful examples than the unit tests. If you want to learn more in general about EPANET then you should read the US EPA's User Manual.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: <OpenWaterAnalytics/EPANET/issues/794/2136552544@github.com>


-- 
John Helly / San Diego Supercomputer Center / Scripps Institution of Oceanography 
https://www.sdsc.edu/~hellyj / 808 205 9882 / 760 8408660

--------------Mso33eEy0J9xZGjsBW20VwKT--