'Warning while compling Gem5

i am trying to compile gem5 on ubuntu 20.04 OS using below command:

scons build/X86/gem5.opt -j8

i got below warning: Warning: Header file <png.h> not found. This host has no libpng library. Disabling support for PNG framebuffers. Warning: Deprecated namespaces are not supported by this compiler. Please make sure to check the mailing list for deprecation announcements. Warning: Couldn't find HDF5 C++ libraries. Disabling HDF5 support

i tried below solutions:

sudo apt-get install libhdf5-dev

sudo apt-get install libpng-dev

then tried to compile gem5 again with same build command, but still getting the same warnings



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source