Using VTK shared libraries in (CERN) ROOT

@Paulo_Carvalho Sorry, I was talking about the current “VTK-9.0.3/Common/Core/vtkAutoInit.h” source code (where also the VTK_AUTOINIT_DESTRUCT macro is not defined at all).

The destructors were no-ops (and unsafe if they did do anything on dlclose), so they were just no-op’d and dlclose on VTK was declared UB (due to callbacks that get registered). Note that unloading on macOS is already impossible because any library using thread-local storage is unloadable on the platform as a whole.

1 Like

So, I am sharing my “solution” on the ROOT Forum (and any future updates will also go there): “Load different Libraries (VTK Libraries) to the Root”

1 Like