Well, yes, as you can see the build failed, so it cannot work. You have the choice of downloading a pre-built binary or to build from source a more recent version (e.g. master), since apparently you use a recent version of Visual Studio (BTW, can you specify which version exactly?)
Yes, it’s the latest release, but if you build from source you can build the master, or the coming soon 6.24.00, they both support the latest version of VS 2019
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.2
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
C:\Users\sftnight>Downloads\root\bin\thisroot.bat
C:\Users\sftnight>root
------------------------------------------------------------------
| Welcome to ROOT 6.22/08 https://root.cern |
| (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win32 on Mar 10 2021, 14:20:04 |
| From tags/v6-22-08@v6-22-08 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0]
as you can read, there are some errors related to ROOT (then the HepMC install directory is empty at the end of the process)…do you think they are ROOT bugs, or due to VS version? and do you know if it’s possible to fix it?
Thank you
The error comes from ROOT, but i’s not a bug, it’s an incompatibility between LLVM/Clang and Visual C++, fixed in master and 6.24. I think the only way to fix this is to build ROOT (e.g. master) yourself with your version of Visual Studio
Thank you @bellenot… but sincerly, I didn’t understand where to download and how to build the master…
you said that master is just from the source, but the only source that I found is this one https://root.cern/download/root_v6.22.08.source.tar.gz (the one that gave me the error in the morning)…maybe do I have to build in different way?
Hello @bellenot…you are right, because I did a mistake to upload the log file…I upladed the file related to the HepMC building instead of the one releated to the installation (moreover, I deleted the log file, so I don’t have it anymore to show you)
…anyway, when I install HepMC using the ROOTIO option, it dowsn’t install anything and the HepMC-install directory is empty. I tried to install without the ROOTIO option and it looks like that it could install it, because there are directories in the HepMC-install directory