I have recently (quite accidentally) got interested in VTK.
I am trying to use its shared libraries from inside of ROOT.
The current status is that I can dynamically load VTK libraries in a ROOT interactive session and I can run “Examples/Tutorial/Step*/Cxx/Cone*.cxx
” as interpreted C++ macros.
Unfortunately, nothing is displayed on the screen.
It seems that VTK plays some dirty tricks, hidden from a “casual” user, which perform the actual initialization of shared libraries at startup.
I failed to “mimic” this behavior.
I tried to inject (into the ROOT’s C++ interpreter):
root [0] #include "vtkAutoInit.h"
root [1] VTK_MODULE_INIT(vtkRenderingOpenGL2);
ROOT_prompt_1:1:1: error: namespaces can only be defined in global or namespace scope
VTK_MODULE_INIT(vtkRenderingOpenGL2);
^
/.../include/vtk-9.0/vtkAutoInit.h:88:3: note: expanded from macro 'VTK_MODULE_INIT'
{ \
^
root [2]
Could you, please, give me a hand with this. Thanks in advance.