Comments (10)
I am getting errors when compiling my code with H5CPP on Ubuntu 18.04.1 LTS. There is a scope problem.
||=== Build: Release in ConvolutionModelApplication (compiler: GNU GCC Compiler) ===|
/usr/local/include/h5cpp/H5Pall.hpp|132|error: H5Pset_file_space_page_size was not declared in this scope|
/usr/local/include/h5cpp/H5Pall.hpp|132|note: suggested alternative: H5Pset_file_space|
/usr/local/include/h5cpp/H5Pall.hpp|132|error: template argument 2 is invalid|
/usr/local/include/h5cpp/H5Pall.hpp|149|error: H5Pset_page_buffer_size was not declared in this scope|
/usr/local/include/h5cpp/H5Pall.hpp|149|note: suggested alternative: H5Pset_sieve_buf_size|
/usr/local/include/h5cpp/H5Pall.hpp|149|error: template argument 2 is invalid|
/usr/local/include/h5cpp/H5Pall.hpp|154|error: H5Pset_evict_on_close was not declared in this scope|
/usr/local/include/h5cpp/H5Pall.hpp|154|note: suggested alternative: H5Pset_fapl_core|
/usr/local/include/h5cpp/H5Pall.hpp|154|error: template argument 2 is invalid|
/usr/local/include/h5cpp/H5Pall.hpp|157|error: H5AC_cache_image_config_t was not declared in this scope|
/usr/local/include/h5cpp/H5Pall.hpp|157|note: suggested alternative: H5AC_cache_config_t|
/usr/local/include/h5cpp/H5Pall.hpp|157|error: template argument 2 is invalid|
/usr/local/include/h5cpp/H5Pall.hpp|157|error: H5Pset_mdc_image_config was not declared in this scope|
/usr/local/include/h5cpp/H5Pall.hpp|157|note: suggested alternative: H5Pset_mdc_config|
/usr/local/include/h5cpp/H5Pall.hpp|157|error: template argument 1 is invalid|
/usr/local/include/h5cpp/H5Pall.hpp|157|error: template argument 2 is invalid|
||=== Build failed: 11 error(s), 0 warning(s) (0 minute(s), 17 second(s)) ===|
It looks very similar to the problem you are reporting above.
from h5cpp.
Hello,
For now the best workaround is to install the latest HDF5 library from source
On my ubuntu based Linux Mint system I do:
./configure --prefix=/usr/local --enable-hl=no && make -j4 && sudo make install
There are lot's of changes with HDF5 to make it modern as well as perform well. H5CPP is a collaboration between my consulting company and Gerd Heber from HDFGroup to provide near bare hardware throughput at low latency: both parallel and serial. To achieve that H5CPP relies on newly or not yet published HDF5 routines.
hope it helps,
steven
from h5cpp.
That did the trick!
Thx,
David
from h5cpp.
Does it make sense to comment out offending lines and create pull requests? I am using libhdf5 1.10.0 (latest is 1.10.5) and would strongly prefer to use the system version (Ubuntu 18.04). Are the new features such that h5cpp is impossible, or only the new features will be missing in the wrapper?
from h5cpp.
Can you please try: commit 1734913 Date: Wed Jan 23 23:28:59 2019 -0500
or
commit 30d2ccf
Author: steven varga [email protected]
Date: Sun Dec 23 13:07:00 2018 -050
and let me know if that worked, so I can tag it.
from h5cpp.
I suppose this is a similar problem?
... /include/h5cpp/H5Pall.hpp:142:93: error: ‘H5Pset_file_space_page_size’ was not declared in this scope using file_space_page_size = impl::fcpl_call< impl::fcpl_args<hid_t,hsize_t>, H5Pset_file_space_page_size>;
This is h5cpp master commit be0a191 (cloned 20190930) using CentOS7 with hdf5 1.10.5 built using
./configure --prefix=/.../hdf5/1.10.5-no-cpp --with-zlib=yes --enable-build-mode=production --enable-hl=no
from h5cpp.
Hi,
yes; it is marked as 1.10 feature Did you check --with-default-api-version=(v16|v18|v110)
is set to v110? As an alternative just comment it out in the header file: there should be only a single reference to the function call.
from h5cpp.
Oh thanks! I missed the --with-default-api-version (sorry, obviously I didn't rtfm properly) .
Could you use the defines in the hdf5 include files to control this (so users have to try harder to mess it up :-) )?
H5pubconf.h:#define H5_VERSION "1.10.5"
H5public.h:#define H5_VERS_MAJOR 1 /* For major interface/format changes */
H5public.h:#define H5_VERS_MINOR 10 /* For minor interface/format changes */
from h5cpp.
Yes of course, that is the idea!
I am working on a feature update: full STL + sparse matrix support; more detailed documentation, ... And will eliminate this and some other version related issues. To give you an example, the h5::append
depends on H5Owrite_chunk
and H5Oread_chunk
calls which are available from v1.10.2. As it looks for full functionality you at least need this version.
from h5cpp.
Update 2019-Oct-09:
Property lists are CAPI version sensitive with limited tweak
granularity, from HDF5 CAPI v1.8.16.
Example implementation:
H5Pall.hpp and H5Pdapl.hpp
...
#if H5_VERSION_GE(1,10,0)
using layout = impl::dcpl_call< impl::dcpl_args<hid_t,H5D_layout_t>,H5Pset_layout>;
using chunk_opts = impl::dcpl_call< impl::dcpl_args<hid_t,unsigned>,H5Pset_chunk_opts>;
#endif
...
from h5cpp.
Related Issues (20)
- Clang (LLVM) Windows Issue
- guidance for OpenCV cv::Mat support HOT 7
- Eigen simplification (almost-patch) HOT 2
- Read single std::string attribute? HOT 6
- Request for .clangformat
- Packet table flush fails with one element in cache. HOT 10
- h5::pt_t move assignment behaves oddly. HOT 5
- eigen: vectors written as rank-2 arrays HOT 3
- unnecessary breakage with "HDF5" v1.12 HOT 5
- h5cpp.org is down HOT 1
- Exception when using append API with clang HOT 3
- Segmentation violation/abort when using h5::high_throughput with HDF5 1.12 HOT 7
- H5CPP doesn't play well with IDE's HOT 1
- h5cpp compiler warnings
- Eigen example results in HDF5 errors HOT 2
- writing an armadillo matrix produces a transposed matrix in h5 HOT 2
- Groups examples doesn't compile, some functions are missing HOT 1
- How to install the h5pp or the h5cpp-compiler on macOS? HOT 12
- Bug in pipeline_t::set_cache?
- memory leak as a result of using h5::open to create h5::pt_t
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 h5cpp.