Installation problems on Windows 10

I installed Visual Studio 2019 from https://visualstudio.microsoft.com/downloads/ . I didn’t add any workloads.
I installed root_v6.16.00.win32.vc15.exe from https://root.cern.ch/content/release-61600 . My computer runs windows 64, but there wasn’t a 64-bit option on the downloads page.
It tried to start root using the Virtual Studio command prompt by typing root, and I get this error.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>root
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\$VERSION\InstallationFolder): returned 2: The system cannot find the file specified.
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10): returned 2: The system cannot find the file specified.
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
         ^~~~~
Assertion failed: OldBuilder->DeferredDeclsToEmit.empty() && "Should have emitted all decls deferred to emit.", file C:\build\ws\BUILDTYPE\Release\LABEL\windows10\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139

I don’t know anything about Linux, but would it be easier to install Linux and use it for Root?

I reinstalled everything, using Visual Studio 2017 this time.
I found instructions for downloading older versions of Visual Studio here: https://help.yoyogames.com/hc/en-us/articles/115005904868-How-to-download-Visual-Studio-versions-older-than-2017
However, I get the same error message.

To ROOT developers - PLEASE disable the ACCERT in the release version?? this is pointless!

RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows$VERSION\InstallationFolder): returned 2: The system cannot find the file specified.
RegOpenKeyEx(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10): returned 2: The system cannot find the file specified.
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\root\interpreter\llvm\src\tools\clang\lib\CodeGen\ModuleBuilder.cpp, line 139

Hi,

You could try to build ROOT from source, taking the master branch (see Building ROOT) with Visual Studio 2019

Cheers, Bertrand

I’m sorry, but I don’t know how to use those instructions for building ROOT on UNIX systems with my Windows computer.
I downloaded an Ubuntu app, and I can barely follow the instructions in the system they’re written for.

I’ve managed to get ROOT working using an Ubuntu subsystem. I’ll include the links to the resources I used below, in case anyone else needs them.

I’m not sure exactly how important it is, but it seems that, if you’re watching a tutorial, you should use the exact same version of everything as they do.

First, I downloaded Ubuntu 18.04 from the Microsoft store:

Throughout the process of installation, I followed this tutorial:

For basic instructions on using the Ubuntu terminal:
https://help.ubuntu.com/community/UsingTheTerminal

When I got a “13: Permission denied” error while installing prerequisites:

How to access Windows folders from the Ubuntu terminal:

When I got an error starting ROOT:

It looks like you don’t have any Windows 10 SDK. When you installed Visual Studio 2019, you should have checked the “Desktop development with C++”, including the Windows 10 SDK (the latest one and the version 10.0.17134.0 for compatibility reasons)

It seems like Desktop development with C++ should be in the build prerequisites then.

In case anybody still cares, I just reinstalled ROOT with a newer version, and it turns out that the YouTube tutorial still works. You don’t have to use the same version as them.

So It’s not good to use root6.18 in vs2019? I have the same problem