HDF5库版本不匹配错误

时间:2015-07-18 15:41:42

标签: cmake version hdf5 mismatch

我从HDF5收到错误/警告,如下所示:

Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.8.14, library is 1.8.15

所以,我的问题是避免这种情况的最佳方法是什么?理想情况下我希望通过再次构建hdf5来避免它,但这一次确保版本完全匹配并且它不是从其他地方读取的,尽管我在cmake中明确指定在哪里查找hdf5(hdf5-1.8.5- patch1)甚至更多指定的HDF5_ROOT env变量!

我是这样的新手,所以如果你能给出关于如何做到这一点的简单说明那就太棒了。即使是在构建时指定此标志HDF5_DISABLE_VERSION_CHECK的方法也可以解决这个问题。

由于

0 个答案:

没有答案