sometimes you may come up with the following errors:
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
here is the solution:
In your Makefile.config change:
INCLUDE_DIRS := $(PYTHON_INCLUDE)/usr/local/include/usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial
本文详细介绍了在编译过程中遇到的与HDF5相关的链接错误,并提供了解决方案。通过修改Makefile.config中的INCLUDE_DIRS和LIBRARY_DIRS,可以成功解决/usr/bin/ld无法找到-lhdf5_hl和-lhdf5的问题。
973

被折叠的 条评论
为什么被折叠?



