compilation - Gem5编译过程中的警告

标签 compilation warnings gem5

我正在使用 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/

相关文章:

在 Linux coreutils 包中编译特定的源文件

c++ - 编译器如何遍历一个类?

java - 在java中强制警告

c++ - VC++ 警告 C4356 : static data member cannot be initialized via derived class

python - 构建 gem5.opt 时,我得到 'ImportError: no module named six'

c++ - 字段 ‘value’ 的类型不完整

c - 重复代码的分离 - common.h 文件 - 带有自定义参数的函数声明

delphi - 如何关闭特定的 Delphi 警告和提示?

gem5 - 如何计算 gem5 基准测试开始和结束之间的 CPU 时钟周期数?

linux - 卸载或创建多个 gem5 模拟