# ROOT installation Windows problems

**URL:** <https://root-forum.cern.ch/t/root-installation-windows-problems/44214>\
**Category:** ROOT\
**Created:** [March 30, 2021, 7:54am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214 "2021-03-30T07:54:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 30, 2021, 7:54am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/1 "2021-03-30T07:54:37Z")

</div>

Hello, I’d to format the computer, then I’m installing ROOT again…  
I downloade the sources and I followed this topic [Run ROOT 6.19.02 on Windows 10 - #14 by bellenot](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/14)

Here the last lines of building

[ROOT installation.txt](https://root-forum.cern.ch/uploads/short-url/pHl5zV5nRmqFU79UmqsOR5rKW4Q.txt) (617.1 KB)

but, when I try to run ROOT

```auto
C:\root-6.22.08-build>cd C:\root-6.22.08-build\macrorun
C:\root-6.22.08-build\macrorun>C:\root-6.22.08-build\bin\thisroot.bat

```

it says ROOT it can’t open it

```auto
C:\root-6.22.08-build\macrorun>root -l
"root" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.

```

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/0/2/0248567388c29f6686d0cf0e115f08a99e5de729.png)

@bellenot do you have any idea?

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_ROOT Version:_ Not Provided  
_Platform:_ Not Provided  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 30, 2021, 8:02am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/2 "2021-03-30T08:02:48Z")

</div>

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?)

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 30, 2021, 8:05am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/3 "2021-03-30T08:05:41Z")

</div>

Hello @bellenot I’m installing ROOT 6.22.08 [Release 62208 - ROOT](https://root.cern/releases/release-62208/) …isn’t it the last one?

Regarding of visual studio

```auto

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.2
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************

```

it’s 16.9.2

P.s Does the prebuilt binary works? I remember last year it didn’t work using last VS

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 30, 2021, 8:13am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/4 "2021-03-30T08:13:03Z")

</div>

> [@faca87](#):
>
> Hello @bellenot I’m installing ROOT 6.22.08 [Release 62208 - ROOT](https://root.cern/releases/release-62208/) …isn’t it the last one?

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

> [@faca87](#):
>
> P.s Does the prebuilt binary works? I remember last year it didn’t work using last VS

```auto
**********************************************************************
** 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]

```

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 30, 2021, 8:17am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/5 "2021-03-30T08:17:22Z")

</div>

ok thank you! I will try to install the prebuild!

Just 3 questions

1. what is the difference between [https://root.cern/download/root\_v6.22.08.win32.vc16.debug.exe](https://root.cern/download/root_v6.22.08.win32.vc16.debug.exe) and [https://root.cern/download/root\_v6.22.08.win32.vc16.exe](https://root.cern/download/root_v6.22.08.win32.vc16.exe) and which one should I install? Maybe does the debug version allow alic?
2. Where do I find the master ? I can’t see it
3. When will the 6.24.00 be released?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 30, 2021, 8:21am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/6 "2021-03-30T08:21:24Z")

</div>

1. One was built in debug mode, meaning it contains debug symbols if you need to debug your application, but it is slower (not optimized)
2. master is only available from source (well, not really, but since the binaries are built with an older version of Visual Studio, it doesn’t help)
3. Soon, but again, it is built with an old version of Visual Studio.

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 30, 2021, 8:32am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/7 "2021-03-30T08:32:40Z")

</div>

Thank you @bellenot I installaed  
[https://root.cern/download/root\_v6.22.08.win32.vc16.exe](https://root.cern/download/root_v6.22.08.win32.vc16.exe) and I tried a macro…it looks like working!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 30, 2021, 8:35am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/8 "2021-03-30T08:35:10Z")

</div>

Good news! And you’re welcome!

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 30, 2021, 1:16pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/9 "2021-03-30T13:16:20Z")

</div>

Sorry @bellenot one more question please…I was installing HepMC using ROOTIo [HepMC / HepMC3](https://gitlab.cern.ch/hepmc/HepMC3)

[log.txt](https://root-forum.cern.ch/uploads/short-url/gmtKTOuuYo6OEOY18JU0uNLSYo8.txt) (14.4 KB)

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

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 30, 2021, 1:25pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/10 "2021-03-30T13:25:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 30, 2021, 1:37pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/11 "2021-03-30T13:37:49Z")

</div>

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](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?

Thank you

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 30, 2021, 1:41pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/12 "2021-03-30T13:41:03Z")

</div>

Look at [Building ROOT from source - ROOT](https://root.cern/install/build_from_source/). For example, if you don’t specify a branch, you’ll get the `master` in the `master` directory:

```auto
git clone https://github.com/root-project/root.git master

```

Then proceed like with any source distribution

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 30, 2021, 7:09pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/13 "2021-03-30T19:09:30Z")

</div>

Thank you @bellenot I built Root master, but when i compile HepMC it still doesn’t look like to working fine using ROOTIO…

[logroot.txt](https://root-forum.cern.ch/uploads/short-url/hRvw21Ffipxai1UxrsxvfhGq6P2.txt) (10.8 KB)

Now I’m trying setting ROOTIO=OFF (actually I need HepMC for a Geant4 simulation…so I hope I don’t need ROOTIO)

Maybe do you know what ROOTIO=ON add to HepMC?  
Thank you

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 31, 2021, 6:04am UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/14 "2021-03-31T06:04:30Z")

</div>

I don’t see any error in the `logroot.txt` file, only warnings. What doesn’t work?

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 31, 2021, 1:10pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/15 "2021-03-31T13:10:53Z")

</div>

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

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/8/e/8ec219a105cd04b73beaea3a583b183851bc694a.png)

Unfortunately, running the Geant4 simulation, it looks like that CMAKE can’t find the HepMC

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/0/2/02912ff746bae800458f3b331f77c50e72c86630.png)

I know that it’s related to Geant4, but given that the error is from CMAKE, maybe do you know hot to set the HepMC-install path in CMAKE?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 31, 2021, 1:13pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/16 "2021-03-31T13:13:57Z")

</div>

Yes, use `CMake-GUI`

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 31, 2021, 1:17pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/17 "2021-03-31T13:17:34Z")

</div>

Thank you @bellenot but, how should I use Cmake-gui?

Consider that this is the Cmakelist of the Geant4 simulation requiring HepMC  
[CMakeLists.txt](https://root-forum.cern.ch/uploads/short-url/3u9VMJWh0gELvOatuS9Qbgsdku7.txt) (3.5 KB)

and this is the path of HepMC installation

`C:\Program Files\HepMC3-install`

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 31, 2021, 1:20pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/18 "2021-03-31T13:20:31Z")

</div>

Type `cmake-gui .` in the build directory, then simply fill the missing parts. It’s interactive, so just try…

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [March 31, 2021, 1:26pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/19 "2021-03-31T13:26:12Z")

</div>

I did it

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/3/6358ecae497c3d41285086dfb3ede899de590616.png)

but CMake can’t still find HepMC…

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/d/a/dadf22ee339b8bdd71c2fbf707ebf38ee91d078f.png)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [March 31, 2021, 1:27pm UTC](https://root-forum.cern.ch/t/root-installation-windows-problems/44214/20 "2021-03-31T13:27:59Z")

</div>

Look carefully, copy and paste exactly: `cmake-gui .`

[Next page](https://root-forum.cern.ch/t/root-installation-windows-problems/44214.md?page=2)
