How to run HDFView-3.1.1 on Windows10 (64bit) after installation


#1

My research collaborator in the distant country sent me some file to open via HDF viewer.
So, I downloaded HDFView-3.1.1-win10_64-vs16.zip from this page to my Windows10 (64bit).
https://www.hdfgroup.org/downloads/hdfview/

After installation of HDFView, my desktop has an icon of HDFView.
When I double click to start HDFView, it shows small black window for maybe 0.5 seconds, and it disappears,
and nothing happens after that.
When I choose “Run as administrator”, a question window pops up, and asks “Do you want to allow this app to make changes to your device?” “Windows command processor” . Then nothing happens after that.

Because the HDFView download page has this instruction;

“Windows ONLY: HDFView was built with VS, and it requires that the Visual C++ Redistributable Packages be installed on your machine. If you cannot access HDF5 files then you do not have these packages. You can obtain the latest supported Microsoft Visual C++ downloads HERE.”,

so I downloaded Visual Studio 2015, 2017 and 2019, x64: vc_redist.x64.exe, from this page.
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

After installation of Visual Studio, I don’t know what to do the next, to run HDFView. For example, I ran VisualStudio, then next I tried to run “HDFView”, but still nothing happens.
Do anybody know how to run HDFView from here?


#2

Were you able to get HDFView working? I’m puzzled by your comment about running Visual Studio. HDFView uses HDF5 libraries that are linked to runtime libraries from Visual Studio. These libraries are installed by vc_redist.x64.exe but Visual Studio is a separate installation. If you already have
a current Visual Studio you shouldn’t need vc_redist.x64.exe.


#3

I have the same problem. I installed both Visual Studio Enterprise 2019 and build tool
2019. However, still not working. Try to install vc_redist.x64.exe, and got newer version already installed.
Therefor I still could not start the HDFView, Do you need anything other than unpack the HDFViewApp-3.1.2-win10_64-vs16.zip and install the visual studio?

Thanks
Jen


#4

They key point is that the directory with the libraries needs to be in the PATH variable. It turns out the files are installed, but the PATH isn’t adjusted. See HDFView Known Problems.


#5

Then what is the solution, assuming I have the redistributables and still can’t launch ?


#6

And the batch file from the download site does not help?
One other workaround is to copy all the dlls to the same folder as the HDFView.exe.

Running it from the command prompt might also show more information.


#7

I am facing same problem on Win 10 64 bit. Installed “HDFView-3.1.2-win10_64-vs16.zip”, then downloaded “Visual C++ Redistributable Packages” from “https://www.microsoft.com/en-us/download/details.aspx?id=48145” website and installed Visual Studio. I have also downloaded hdfview.bat and placed it in HDF installed directory. But still when I launch HDFView, a black screen appears for a couple of seconds and then nothing happens. If anybody knows solution, kindly let me know.


#8

Launch the batch file from a command prompt, there should be more info on why it failed to execute.