<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Utkarsh,</p>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p>Here is an overview of what it looks like:</p>
<p><br>
</p>
<p>module.cmake:</p>
<p><br>
</p>
<p></p>
<div>vtk_module(vtkSPXModule</div>
<div>  GROUPS</div>
<div>    StandAlone</div>
<div>  DEPENDS</div>
<div>    vtkCommonCore</div>
<div>    vtkCommonDataModel</div>
<div>    vtkCommonExecutionModel</div>
<div>    vtkCommonMisc</div>
<div>    vtkPVVTKExtensionsRendering</div>
<div>    vtkFiltersGeneral</div>
<div>    TEST_DEPENDS</div>
<div>    vtkTestingCore</div>
<div>    KIT</div>
<div>    vtkRemote</div>
<div>  )</div>
<br>
<p></p>
<p><br>
</p>
<p>and the Cmakelist.txt:</p>
<p><br>
</p>
<p></p>
<div>set(Module_SRCS</div>
<div>  <span class="Apple-tab-span" style="white-space:pre"></span>TestPlugin.cxx</div>
<div>  )</div>
<div><br>
</div>
<div><br>
</div>
<div>vtk_module_library(vtkSPXModule ${Module_SRCS})</div>
<br>
<p></p>
<div><br>
</div>
I referred myself to this example that seemed to work <a href="https://github.com/lorensen/vtkAddon/blob/master/module.cmake" class="OWAAutoLink" id="LPlnk665108">
https://github.com/lorensen/vtkAddon/blob/master/module.cmake</a><br>
<br>
<br>
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?
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Simon-Pierre<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> Utkarsh Ayachit <utkarsh.ayachit@kitware.com><br>
<b>Envoyé :</b> 5 juin 2017 11:02<br>
<b>À :</b> Simon-Pierre Desjardins<br>
<b>Cc :</b> paraview@paraview.org<br>
<b>Objet :</b> Re: [Paraview] How to create a vtkModule in Paraview</font>
<div> </div>
</div>
<div>
<div dir="ltr">Simon,
<div><br>
</div>
<div>While plugins can have internal modules, it's really not designed to share those with other plugins. You have two options:</div>
<div><br>
</div>
<div>1. combine both plugins into a single one.</div>
<div>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.</div>
<div><br>
</div>
<div>Utkarsh</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jun 1, 2017 at 3:03 PM, Simon-Pierre Desjardins <span dir="ltr">
<<a href="mailto:sp_desjardins@hotmail.com" target="_blank">sp_desjardins@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-538677795757185169divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Hi,</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
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.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
I tried creating the module following the instructions on <a href="http://www.vtk.org/Wiki/VTK/Module_Development" rel="noopener noreferrer" class="m_-538677795757185169x_OWAAutoLink" id="m_-538677795757185169LPlnk25907" target="_blank">http://www.vtk.org/Wiki/<wbr>VTK/Module_Development</a> but
 it did not work.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
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.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
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.</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Could anyone try to help me figure out what I'm missing?</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Thank you,</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Simon-Pierre Desjardins</p>
<br style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
I'm compiling using Visual studio 2015 and Windows 10 64bits</p>
<br>
<p></p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">
http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>