-
Notifications
You must be signed in to change notification settings - Fork 51
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
Please clarify H5Free #151
Comments
You should be able to pass |
That option applied to? 1. hdf5 2. netcdf-c 3. netcdf-cxx? |
Actually, that error was caused by:
which comes from:
so apparently that variable is null. Ok, that's a bizarre looking variable, so I define it by hand:
Why do I have to do this? hdf5 has both Now all that remains is finding the hdf5 include files. |
And the solution seems to be:
|
I had the same issue today trying to build on my windows machine. I was not able to get it to work in the end. It build but it did not run. My feeling is that especially the MSVC cmake configuration of netcdf-cxx4 is quite broken. First thing I found was here:
The MSVC section of the if does not work since When trying to build the examples. I got a strange error that zlib is required but the file
someone managed to ship their personal system paths into the config file that is supposed to help with including netcdf in your cmake project. So I changed that to:
and I was a step further. But the next error was already waiting to emerge. Now the tests were not able to link netcdf-cxx's own library. I tried removing the BUILD_SHARED_LIBS which worked for compiling but I feel like it caused issues when running the tests as all my tests failed. because apparently my netcdf installation does not support these features which I highly doubt as not even the simple surface pressure example in this repo is running. I am not sure why all of these things are not an issue on my linux system but I assume that is because zlib, hdf5 and other dependencies are not bundled there but instead installed separately via package managers. |
Victor.
The text was updated successfully, but these errors were encountered: