Comments (7)
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.
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.
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.
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.
What shell are you using? e.g. windows cmd, window powershell, ?
from netcdf-cxx4.
I tried in 2 shells, and I got the same error on both:
- Windows CMD
- Cmder official website
from netcdf-cxx4.
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)
- Plain delete used on pointer allocated with new[] HOT 1
- Issue building with clang on macOS 11.3 HOT 3
- MacOS 11.3 Macports can't build netcdf-cxx @4.2 possibly due to VERSION
- Errors building 4.3.1 tag on macOS with Clang 12.0.5
- libnetcdf_c++4 vs. libnetcdf-cxx4 HOT 1
- Get attributes in the original order
- compile failure ncVar.cpp:630:11 error: 'nc_def_var_filter' was not declared in this scope (on static build) HOT 1
- header file is right? HOT 2
- Erroneous condition always evaluating true HOT 2
- Minimum required C++ standard?
- How to load data into a std::vector HOT 4
- 2 * field not copied in copy constructor ? HOT 1
- Does netcdf-cxx4 support parallel IO?
- netCDF::exceptions::NcHdfErr after calling getVar too often HOT 1
- CMake uninstall target conflicts with other previously registered uninstall targets
- Inconsistent constructor signatures
- HDF 1.14 + netcdf-c 4.9 Support? HOT 3
- Cmake modernization
- Testing: cxx4_test_filter (10/18) - Failed HOT 2
- [feature-request] `netcdfcpp_meta.h` file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcdf-cxx4.