compilation - Gem5 编译时的警告
问题描述
我正在使用 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
推荐阅读
- asp.net-core - 安装自定义 Nuget 包时,Css 和 js 文件不包含在目标项目中
- android - 什么是 Android 中的 RemoteService 错误?
- javascript - 动态添加和删除输入字段有效,但值未显示在 Google 表格中
- html - 悬停时如何替换div但不更改其他div
- java - Android Studio 自定义 ArrayAdapter 传递 HashMap 而不是 ArrayList
- sql - 更新具有不同位置和设置值的多条记录?
- asp.net-core - 在 POST 请求中将原始 HTML 从视图传递到控制器时的数据丢失——XSS 安全和信息丢失
- javascript - 水平居中 4 列列表
- mapbox - 从 Mapbox 中的视图生成地图
- excel - 如果第三行不为空,则每第一行求和