Hi,
I am total newbie at this and I need to download ROOTCERN on my Windows10 Laptop for a project I’m working on but I have no idea where to start. I have a few questions:
Will downloading this require me to format my laptop first?
Which version should I download? I have seen a couple of youtube videos but they weren’t very clear.
I’ve heard that the installation process is complicated can anyone clarify that please?
Thanks guys
ROOT Version: Release 5.34/36 - 2016-04-05 Platform: Windows 10
Well, the problem is that you have to download and install Visual Studio as well, and you might have to build ROOT from source, which could be a bit complicated if you are a beginner with Visual Studio and Windows…
First, download and install Visual Studio Community 2019 Edition from https://visualstudio.microsoft.com/. Select the Desktop development with C++ option when installing
Then, download and install any of the Windows Visual Studio 2019 files from the Release 6.18/04 page. For example root_v6.18.04.win32.vc16.exe, and install it in a location not containing any space in the path.
It should work, even if it might print some warnings when starting ROOT
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
struct _CrtEnableIf<true, _Ty>
^~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: note: previous definition is here
struct _CrtEnableIf<true, _Ty>
^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:517:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
site here
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
site here
^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:524:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
site here
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
site here
^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:532:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
site here
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
site here
^
There is a pending pull request solving this issue
I watched a youtube video where it said launching the ROOT from the start menu would be mistake. Is that so?
If not, what is the right way to launch the application?
I would advise to open a x86 Native Tools Command Prompt for VS 2019, go to your preferred directory and run from there. And depending the way you installed ROOT, you might have to call root\bin\thisroot.bat to properly set-up the environment variables, valid for the current session only. Otherwise, you can set the ROOTSYS environment variable and add %ROOTSYS%\bin in your PATH in your Windows settings, so you won’t have to call thisroot.bat every time
I said how you installed ROOT. if you download the zip file, you unzip it somewhere and then you have to set the environment yourself, otherwise, the exe will install it and set the environment variables. It is like many other packages. The advantage with the zip file is that it is easy to have several versions on the same computer