Git Product home page Git Product logo

Comments (7)

WardF avatar WardF commented on July 20, 2024

When you run cmake .., you will need to specify the HDF5_DIR location. For example, on my system, I have to invoke the following:

$ cmake .. -DCMAKE_PREFIX_PATH=[path to netcdf install] -DHDF5_DIR=[path to netcdf install]/cmake/hdf5 

I will get our instructions updated, but in the meantime, does this help?

from netcdf-cxx4.

nyckmaia avatar nyckmaia commented on July 20, 2024

Thank you @WardF ...

My command now is this below, but I got the same error messages:

cmake .. -DCMAKE_PREFIX_PATH="C:\Program Files\netCDF 4.7.1" -DHDF5_DIR="C:\Program Files\netCDF 4.7.1\lib\cmake\hdf5"

NetCDF

The NetCDF is installed here: C:\Program Files\netCDF 4.7.1
Inside this folder I have 3 folders:

  • bin
  • include
  • lib

Inside lib I have:

  • cmake
  • pkgconfig
  • *.lib files

HDF5 C

The HDF5 C library is installed here: C:\Program Files\HDF_Group\HDF5\1.10.5
Inside this folder I have:

  • bin
  • cmake
  • hdf5_java_doc
  • HDF5Examples
  • include
  • lib
  • Other *.cmake or *.txt files

So, could you help me to write the cmake .. command?

from netcdf-cxx4.

WardF avatar WardF commented on July 20, 2024

Drop the 'lib' in the -HDF5_DIR, use -DHDF5_DIR=C:\Program Files\ netCDF 4.7.1\cmake\hdf5. Does that give you the same error? I'm also unsure if you need to escape the spaces from the Windows command line. Try it without and let me know if that works.

from netcdf-cxx4.

nyckmaia avatar nyckmaia commented on July 20, 2024

Yes, I tried it:
cmake .. -DCMAKE_PREFIX_PATH="C:\Program Files\netCDF 4.7.1" -DHDF5_DIR="C:\Program Files\netCDF 4.7.1\cmake\hdf5"

But if you look my folder structure in my post above, the cmake folder is inside the lib folder.
So I can't remove the lib in the path....but I tried too like this last command above.

Yes,, I got the same error messages.

About "escape spaces", I'm putting all path inside the " ".
I tried to use "double back slashes" (\\) , but it doesn't work too.

Is there another thing to try?

from netcdf-cxx4.

DennisHeimbigner avatar DennisHeimbigner commented on July 20, 2024

What shell are you using? e.g. windows cmd, window powershell, ?

from netcdf-cxx4.

nyckmaia avatar nyckmaia commented on July 20, 2024

I tried in 2 shells, and I got the same error on both:

from netcdf-cxx4.

doedsjarl666 avatar doedsjarl666 commented on July 20, 2024

The issue is in find_package() usage. I would recommend setting HDF5_DIR as an environmental variable and look at issue#88, that will help.

from netcdf-cxx4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.