paraview cannot load plugin
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Well designed build systems use -fvisibility=hidden to build (where that is appropriate, e.g. gcc, clang). Unfortunately, vtkPVPlugin.h does not correctly define its ABI export symbol (C_EXPORT), which causes ParaView to be unable to load any plugins build by a well-behaved build system, unless the build adds -fvisibility=default to the COMPILE_FLAGS of {PLUGIN_BINARY_DIR}/
{PLUGINNAME}_Plugin.cxx.
C_EXPORT should be defined to include 'attribute ((visibility("default")))' (see e.g. generate_export_header). Since add_paraview_plugin is already calling this, perhaps the easiest fix is to remove (or at least make condition on not being already defined) the definition of C_EXPORT from vtkPVPlugin.h and instead add to the generated ${PLUGINNAME}_Plugin.h to define this to the plugin's ABI export symbol prior to including vtkPVPlugin.h.