-
Notifications
You must be signed in to change notification settings - Fork 11
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
macos confusion about libpbg version #168
Comments
OK, this was fixed for macos by changing the CMakeLists.txt file to:
This was as described here: https://stackoverflow.com/questions/36523911/osx-homebrew-cmake-libpng-version-mismatch-issue @kgerheiser @aerorahul did I do the right thing here? Also, I presume that the g2 project would have the same problem with macOS and PNG, and we will discover it as we add tests to that project... |
Please do not make changes like this anymore. If PNG installation is broken on Mac it should be fixed there. Or if Mac specific code needs to be added to this project then it must be in added Mac specific if section. |
What do we mean by "changes like this?" ;-) I will be making many changes to this library. We (the NCEPLIBS team and Arun) recently had a meeting in which we mapped out our development plans with respect to GRIB code. We have some nice ambitious plans! ;-) No longer will these libraries languish, neglected and untested. A new day is dawning for this code! However, backward compatibly will be preserved. |
By 'changes like this' I mean changes that are platform specific. "/usr/local/lib" does not necessarily exist on all platforms. Platform specific code should be in if(....) .... endif() sections. |
When I added a test for PNG and it ran on the mac, I get this:
Turns out this is a known macos issue: https://stackoverflow.com/questions/36523911/osx-homebrew-cmake-libpng-version-mismatch-issue
The text was updated successfully, but these errors were encountered: