# Run ROOT 6.19.02 on Windows 10

**URL:** <https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529>\
**Category:** ROOT\
**Created:** [March 23, 2020, 12:56am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529 "2020-03-23T00:56:53Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven\_sani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@steven\_sani](https://root-forum.cern.ch/u/steven_sani)\
**Post date:** [March 23, 2020, 12:56am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/1 "2020-03-23T00:56:53Z")

</div>

Hi,

I tried to run ROOT 6.19.02 on Windows 10 from Visual Studio 2019 Developer Command Prompt but I got the following message:

> input\_line\_1:1:10: fatal error: ‘new’ file not found  
> #include   
> ^ ~~~~  
> Assertion failed: OldBuilder-\>DeferredDeclsToEmit.empty() && “Should have emitted all decls deferred to emit.”, file C:\build\ws\BUILDTYPE\Release\LABEL\windows10\V\6-20\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139

After this, the ROOT does not start. Could you help me to solve this problem?

---

<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 23, 2020, 7:16am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/2 "2020-03-23T07:16:21Z")

</div>

This is most probably due to different versions of Visual Studio (and/or Windows 10 SDK) between the one installed on your system and the one used to build ROOT. While we will work to get rid of this limitation, I think the only solution would be to build ROOT from source

---

<div class="post-metadata">

**Author:** ![steven\_sani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@steven\_sani](https://root-forum.cern.ch/u/steven_sani)\
**Post date:** [March 23, 2020, 11:10pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/3 "2020-03-23T23:10:27Z")

</div>

The problem was the different versions of Windows 10 SDK. Now it works. Thank you very much for your help!

---

<div class="post-metadata">

**Author:** ![demetrius2003](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@demetrius2003](https://root-forum.cern.ch/u/demetrius2003)\
**Post date:** [March 26, 2020, 4:14am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/4 "2020-03-26T04:14:39Z")

</div>

Hi! What version of SDK should I install on Windows 10 to work with root\_v6.20.02.win32.vc16? 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 26, 2020, 7:34am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/5 "2020-03-26T07:34:33Z")

</div>

Windows SDK version 10.0.18362.0

---

<div class="post-metadata">

**Author:** ![demetrius2003](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@demetrius2003](https://root-forum.cern.ch/u/demetrius2003)\
**Post date:** [March 26, 2020, 11:41am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/6 "2020-03-26T11:41:29Z")

</div>

Try to install Windows SDK version 10.0.18362.0, but it setup 18362.1 instead and with it ROOT cannot work properly - i still get a bunch of errors!

---

<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 26, 2020, 12:10pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/7 "2020-03-26T12:10:11Z")

</div>

> [@demetrius2003](#):
>
> Try to install Windows SDK version 10.0.18362.0, but it setup 18362.1 instead

How did you get it? The latest one is 10.0.18362.0

---

<div class="post-metadata">

**Author:** ![demetrius2003](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@demetrius2003](https://root-forum.cern.ch/u/demetrius2003)\
**Post date:** [March 26, 2020, 12:30pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/8 "2020-03-26T12:30:50Z")

</div>

![Безымянный1](https://root-forum.cern.ch/uploads/default/original/3X/f/6/f6ccbaa280b536488da6f2192459ad6de2b1661e.png)  
Just run vs install utility. See uploaded pictures.

---

<div class="post-metadata">

**Author:** ![demetrius2003](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@demetrius2003](https://root-forum.cern.ch/u/demetrius2003)\
**Post date:** [March 26, 2020, 12:31pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/9 "2020-03-26T12:31:24Z")

</div>

But then:

 ![Безымянный2](https://root-forum.cern.ch/uploads/default/original/3X/d/1/d13f61a36d02ad4526f81fdbc035fe91178a5bfe.png)

---

<div class="post-metadata">

**Author:** ![demetrius2003](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@demetrius2003](https://root-forum.cern.ch/u/demetrius2003)\
**Post date:** [March 26, 2020, 12:33pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/10 "2020-03-26T12:33:02Z")

</div>

And if you try to download Windows SDK version 10.0.18362.0 from MS site, you get new version! 1 not 0!

---

<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 26, 2020, 12:34pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/11 "2020-03-26T12:34:40Z")

</div>

OK, so you will have to build ROOT from source

---

<div class="post-metadata">

**Author:** ![steven\_sani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@steven\_sani](https://root-forum.cern.ch/u/steven_sani)\
**Post date:** [March 26, 2020, 12:58pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/12 "2020-03-26T12:58:29Z")

</div>

I installed Windows SDK version 10.0.18362.1 and ROOT 6.20.02 works without any problem.

---

<div class="post-metadata">

**Author:** ![demetrius2003](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@demetrius2003](https://root-forum.cern.ch/u/demetrius2003)\
**Post date:** [March 26, 2020, 3:01pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/13 "2020-03-26T15:01:05Z")

</div>

No luck! How can i compile ROOT from sources? Is any tutorial?

---

<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 26, 2020, 3:16pm UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/14 "2020-03-26T15:16:24Z")

</div>

There are several topics you can find on this forum, for example:

> [@Compiling ROOT on Windows 10](https://root-forum.cern.ch/t/compiling-root-on-windows-10/29147):
>
> Hi all, I know you guys are doing progress on supporting ROOT on Windows, so I decided to go ahead and test out and see how this whole experience is slight_smile I have cloned the master branch and made a rootbuild directory. However, after running cmake ..\root, CMake complains that it cannot find headers related to pthread. My guess is that I don’t have everything installed to build ROOT on my box. So part of my question is then also what are the prerequisites for Windows? (I can’t seem to …

You need CMake (latest version), and then you can:

- Unzip the source tar file in a directory **not containing** any space
- Open a `x86 Native Tools Command Prompt for VS 2019` **!!!And NOT a x64 one!!!**
- Create a build directory of your choice and cd into it
- Then configure ROOT with: `cmake -G "Visual Studio 16 2019" -A Win32 -Thost=x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_STANDARD=14 [path to source]`
- Then, if there was no error, build ROOT: `cmake --build . --config Debug`

Note that if you need more options, you can open a `cmake-gui` where you can select the different options before building ROOT (be aware that all of them are not supported on Windows)

---

<div class="post-metadata">

**Author:** ![demetrius2003](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@demetrius2003](https://root-forum.cern.ch/u/demetrius2003)\
**Post date:** [March 27, 2020, 10:17am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/15 "2020-03-27T10:17:16Z")

</div>

Thanks! Its work! Its took me something about 7-8 hours to compile ROOT on Xeon X5460 with 4 Gb RAM/

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [April 10, 2020, 10:17am UTC](https://root-forum.cern.ch/t/run-root-6-19-02-on-windows-10/38529/16 "2020-04-10T10:17:19Z")

</div>

Closed on April 10, 2020, 10:17am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
