The HDF group now have binary builds of HDFVIEW version 3 available for download (requires login):
https://www.hdfgroup.org/downloads/hdfview/ I have confirmed it works on Ubuntu 18.04, though it needs a java path changed as mentioned here: https://askubuntu.com/questions/907159/hdfview-working-in-ubuntu-17-04 -Chris