[Paraview] How to create a vtkModule in Paraview
Simon-Pierre Desjardins
sp_desjardins at hotmail.com
Thu Jun 22 13:20:42 EDT 2017
Hi,
Still no success trying to make the module produce a .lib. Does anyone have an idea of what I could be missing?
Thank you,
Simon-Pierre Desjardins
________________________________
De : Simon-Pierre Desjardins <sp_desjardins at hotmail.com>
Envoyé : 6 juin 2017 14:52
À : Utkarsh Ayachit
Cc : paraview at paraview.org
Objet : RE: [Paraview] How to create a vtkModule in Paraview
Hi Utkarsh,
I have tried adding the path to my external module via PARAVIEW_EXTERNAL_MODULE_ROOTS in cmake. I am able to compile the module in VS2015 but it only creates a .dll file. Usually, at least from what I've seen with the other modules, a library is also created which is needed to use the plugins in the modules. I have checked all the documentation and did a really simple module containing only a single plugin.
Here is an overview of what it looks like:
module.cmake:
vtk_module(vtkSPXModule
GROUPS
StandAlone
DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtkCommonMisc
vtkPVVTKExtensionsRendering
vtkFiltersGeneral
TEST_DEPENDS
vtkTestingCore
KIT
vtkRemote
)
and the Cmakelist.txt:
set(Module_SRCS
TestPlugin.cxx
)
vtk_module_library(vtkSPXModule ${Module_SRCS})
I referred myself to this example that seemed to work https://github.com/lorensen/vtkAddon/blob/master/module.cmake
Overall, to make sure it's clear, I am able to compile the module and I'm able to see it in my solution. The problem is more so linked to the creation of the .lib that isn't being done. Any idea what could cause that?
Thank you,
Simon-Pierre
________________________________
De : Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Envoyé : 5 juin 2017 11:02
À : Simon-Pierre Desjardins
Cc : paraview at paraview.org
Objet : Re: [Paraview] How to create a vtkModule in Paraview
Simon,
While plugins can have internal modules, it's really not designed to share those with other plugins. You have two options:
1. combine both plugins into a single one.
2. make the module a standard ParaView/VTK module that added via PARAVIEW_EXTERNAL_MODULE_ROOTS CMake variable, then the two plugins can use the module just liek any other ParaView/VTK module.
Utkarsh
On Thu, Jun 1, 2017 at 3:03 PM, Simon-Pierre Desjardins <sp_desjardins at hotmail.com<mailto:sp_desjardins at hotmail.com>> wrote:
Hi,
I created a custom plugin that I want to use in a second plugin. To do so, I want to create a module with the custom plugin to be able to use it in my second one.
I tried creating the module following the instructions on http://www.vtk.org/Wiki/VTK/Module_Development but it did not work.
Basically, I am able to compile my module and create a .dll with it but I can't seem to be able to create the .lib and .ext necessary.
I also added my module in the VTKModule.cmake. I'm unsure why it is not generating a .lib since I can see the line add_library in the cmake file generated for vtkmodules with my module name.
Could anyone try to help me figure out what I'm missing?
Thank you,
Simon-Pierre Desjardins
I'm compiling using Visual studio 2015 and Windows 10 64bits
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170622/a6e8f4ac/attachment.html>
More information about the ParaView
mailing list