There are several topics you can find on this forum, for example:
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)