问题描述
我正在使用 ubuntu18.04.5 并且我已经安装了所有必需品并按照指南成功编译了 gem5:https://www.gem5.org/documentation/learning_gem5/introduction/
但是在编译过程中我收到了 2 个警告:
*** Summary of Warnings ***
Warning: Header file <png.h> not found.
This host has no libpng library.
disabling support for PNG framebuffers.
Warning: Couldn't find any HDF5 C++ libraries. disabling HDF5 support.
我该如何修复它们? 它将如何影响用户体验?
解决方法
对于 CentOS 8.3,我在构建 gem5 时收到相同的警告消息 -
***Summary of Warnings***
Warning: Header file <png.h> not found.
This host has no libpng library.
Disabling support for PNG framebuffers.
Warning: Couldn't find any HDF5 C++ libraries. Disabling HDF5 support.
并使用命令解决它 -
sudo yum install libpng-devel
sudo yum -y install hdf5-devel
对于 Ubuntu 18.04 或 20.04,使用以下命令 -
sudo apt-get install libhdf5-dev
sudo apt-get install libpng-dev