我正在使用 ubuntu18.04.5,并且我已经安装了所有必需程序并按照指南成功编译了 gem5:https://www.gem5.org/documentation/learning_gem5/introduction/
但是在编译过程中我收到两个警告:
*** 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
关于compilation - Gem5编译过程中的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67071814/