Open nakajimayoshi opened 7 months ago
This is blocked on https://github.com/aldanor/hdf5-rust/issues/262
For reference: The static
feature builds from source and is not a binary blob per se :)
Commenting for posterity. Specifying the static feature was the happy path to a successful windows/msvc build for me, and as a rust newb this instruction was not clear to me either.
cargo add netcdf --features static
will update your project's Cargo.toml file.
I did not try the conda method but ci.yml shows you which environment variables to set.
Platform: macOS 14.2 apple silicon
I am trying to use netcdf5 in a Tauri application. I'm starting with the basic print file example but it's running into issues at the build step with the following error:
I checked home-brew cellar and verified I already have hdf5 v1.14.3 installed.
Even after commenting out all the example code, and only importing the library, the build error persists
Solution
resolved the issue by enabling the "static" feature in the Cargo.toml:
That said, it would be nice to have some detailed instructions or a link to them for those who don't want to use a binary blob.