MantisBT - ParaView
View Issue Details
0013652ParaView(No Category)public2012-11-13 13:302013-01-10 20:28
Cory Quammen 
Utkarsh Ayachit 
normalminorhave not tried
closedfixed 
 
3.98.0 
TBD
incorrect functionality
0013652: External plugin linking error involving vtkRenderingMatplotlib in v3.98-RC2
When compiling a ParaView plugin outside the ParaView build, I get a linker error:

Undefined symbols for architecture x86_64:
  "vtkRenderingMatplotlib_AutoInit_Construct()", referenced from:
      vtkRenderingFreeType_AutoInit::vtkRenderingFreeType_AutoInit()in BinningFilter_Plugin.cxx.o
      vtkRenderingFreeType_AutoInit::vtkRenderingFreeType_AutoInit()in moc_BinningFilter_Plugin.cxx.o
  "vtkRenderingMatplotlib_AutoInit_Destruct()", referenced from:
      vtkRenderingFreeType_AutoInit::~vtkRenderingFreeType_AutoInit()in BinningFilter_Plugin.cxx.o
      vtkRenderingFreeType_AutoInit::~vtkRenderingFreeType_AutoInit()in moc_BinningFilter_Plugin.cxx.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [bin/libBinningFilter.dylib] Error 1
make[1]: *** [Plugins/BinningFilter/CMakeFiles/BinningFilter.dir/all] Error 2
make: *** [all] Error 2

This linker error started with ParaView commit c369423b81ab182e7af26ed6dec90458ada9b77b and does not occur with v3.98-RC1.
No tags attached.
Issue History
2012-11-13 13:30Cory QuammenNew Issue
2012-11-14 15:01Sebastien JourdainAssigned To => David C. Lonie
2012-11-14 16:50Cory QuammenNote Added: 0029719
2012-11-15 09:42Cory QuammenNote Added: 0029720
2012-11-24 09:26Utkarsh AyachitNote Added: 0029786
2012-11-24 09:26Utkarsh AyachitStatusbacklog => gatekeeper review
2012-11-24 09:26Utkarsh AyachitFixed in Version => 3.98.0
2012-11-24 09:26Utkarsh AyachitResolutionopen => fixed
2012-11-24 09:26Utkarsh AyachitAssigned ToDavid C. Lonie => Utkarsh Ayachit
2012-11-24 09:27Utkarsh AyachitStatusgatekeeper review => customer review
2013-01-10 20:28Alan ScottNote Added: 0030069
2013-01-10 20:28Alan ScottStatuscustomer review => closed

Notes
(0029719)
Cory Quammen   
2012-11-14 16:50   
I dug into this a bit in commit dca265f507f6306d4ae487cfe8597a62f1f87ecf.

In ParaView/CMake/VTKModules.cmake, vtkRenderingMatplotlib is added to _vtk_modules. The variable PARAVIEW_DEFAULT_VTK_MODULES is then set to the value of _vtk_modules.

In ParaView/ParaViewCore/ServerManager/SMApplication/module.cmake, PARAVIEW_DEFAULT_VTK_MODULES is listed under COMPILE_DEPENDS and not DEPENDS. As a result, vtkRenderingMatplotlib is never added to the dependencies of the vtkPVServerManagerApplication module (nor any other module in ParaView). If we could get that dependency added to vtkPVServerManagerApplication or one of the modules it depends on, then the linker error should be fixed.
(0029720)
Cory Quammen   
2012-11-15 09:42   
I pushed a candidate patch that fixes the problem to gerrit:

http://review.source.kitware.com/#/c/8542/ [^]
(0029786)
Utkarsh Ayachit   
2012-11-24 09:26   
This has been fixed in RC3.
(0030069)
Alan Scott   
2013-01-10 20:28   
Trusting that Utkarsh tested correctly. Closing.