在rosetta中的main/source目录下执行命令sudo ./scons.py -j16 bin mode=release extras=hdf5
报错
scons: *** [build/src/release/linux/5.10/64/x86/gcc/6.3/hdf5/protocols/indexed_ structure_store/H5FragmentStoreBackend.os] Error 1
scons: *** [build/src/release/linux/5.10/64/x86/gcc/6.3/hdf5/protocols/indexed_ structure_store/H5StructureStoreBackend.os] Error 1
In file included from src/protocols/indexed_structure_store/StructureStoreManag er.cc:30:0:
src/protocols/indexed_structure_store/H5StructureStoreBackend.hh:32:19: fatal e rror: H5Cpp.h: No such file or directory
#include “H5Cpp.h”
^
compilation terminated.
进入Rosetta/main/source/tools/build/目录
找见site.settings文件
在相应位置添加代码"include_path" : (os.environ["INCLUDE"].split(":") if "INCLUDE" in os.environ else []) + ["/usr/include/hdf5/serial/"],
注意:前提是已经安装好hdf5,链接,才有相应的hdf5目录/usr/include/hdf5/serial/
sudo ./scons.py -j16 bin mode=release extras=hdf5