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
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
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:
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)
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.