Installation on Windows

Operating System: Windows 11
Compiler/Version: Visual Studio 18 2026


Hi :slight_smile:
Is there a full guide, step-by-step, to install a Geant4 application and all the dependencies on Windows, supporting:

  • multithreading
  • QT visualization
  • HDF5
  • GDML
  • ROOT

Thanks a lot in advance

Michael

Installing Geant4 itself is covered in the Installation Guide. Building an application is covered in both the Installation Guide: How to Use and the Application Developer Guide.

Installation of Qt, Xerces-C, HDF5 and ROOT will be covered on their respective sites.

Thanks @bmorgan

last question: which are the flags I need to enable during HDF5 build from cmake in order to support also multithreading?

Thanks

Check the HDF5 install guide here:

or the relevant one for the version you’re installing. It should be HDF5_ENABLE_THREADSAFE pretty consistently though. Bear in mind HDF5 support is still considered experimental in Geant4, especially on Windows.

Thanks,

And last do you suggest also the installation of VecGeom?

Honestly I don’t get the difference between installing and not :face_with_peeking_eye:

Thanks

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