<div dir="ltr">While running cmake use the option <font color="#0000ff">-DVTK_Dir=<VTK Installation Path></font>. This will solve the undefined search of the "development" libraries your code need.<div>Hope that helps.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks and regards,</div><div style="font-size:12.8px">Chiranjib</div></div></div></div>
<br><div class="gmail_quote">On Wed, May 30, 2018 at 10:37 PM, Marc Ruiz Altisent <span dir="ltr"><<a href="mailto:marc.ruiz+vtk@gmail.com" target="_blank">marc.ruiz+vtk@gmail.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">I mean putting them in your CMakeLists.txt in target_link_libraries.<br></div><br><div class="gmail_quote"><div dir="ltr">Missatge de Aida Ninyerola <<a href="mailto:aida.ninyerola@gmail.com" target="_blank">aida.ninyerola@gmail.com</a>> del dia dc., 30 de maig 2018 a les 18:51:<br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>Thanks for your response but I'm not sure if I understand what you say.</div><div><br></div><div>Do you mean I need to add these libraries in CMakeLists.txt of my project or do I need to make changes in my code?</div><div><br></div><div>Thank you in advance!</div><div>Aida<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 May 2018 at 15:11, Marc Ruiz Altisent <span dir="ltr"><<a href="mailto:marc.ruiz+vtk@gmail.com" target="_blank">marc.ruiz+vtk@gmail.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>Hi Aida,<br><br></div>VTK changed to a modular system some time ago and the library names changed. You just need to find the new ones. The names match the directory containg the classes: for example vtkPolyDataToImageStencil is in Imaging/Stencil and the library is vtkImagingStencil, with a suffix of the VTK version, e.g. vtkImagingStencil-8.1. Similarly, for vtkImageAccumulate you need vtkImagingStatistics (+ suffix).<br><br><div class="gmail_quote"><div dir="ltr">Missatge de Aida Ninyerola <<a href="mailto:aida.ninyerola@gmail.com" target="_blank">aida.ninyerola@gmail.com</a>> del dia dc., 30 de maig 2018 a les 14:22:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1245351842138234694m_-3433091037440578010h5"><div dir="ltr"><div>Hi,</div><div><br></div><div>While compiling my project I get some linking problems.</div><div>tlQuantification.cpp:(.text+<wbr>0x1623): undefined reference to `vtkPolyDataToImageStencil::<wbr>New()'<br>tlQuantification.cpp:(.text+<wbr>0x162b): undefined reference to `vtkImageAccumulate::New()'<br>tlQuantification.cpp:(.text+<wbr>0x168e): undefined reference to `vtkImageAccumulate::<wbr>SetStencilData(<wbr>vtkImageStencilData*)'</div><div><br></div><div><div>I found that I sould add in CmakeLists.txt the following lines but I doesn't work:<br></div>if(VTK_LIBRARIES)<br> target_link_libraries(<wbr>quantification ${VTK_LIBRARIES} )<br>else()<br> target_link_libraries(<wbr>quantification vtkHybrid vtkWidgets)<br>endif()</div><div><br></div><div>I'm trying to compile and old project that work properly with a former VTK version (I can't remember the VTK version).</div><div><br></div><div></div><div>I was thinking that maybe is a migration problem but I'm not able to find what I need to change. <br></div><div><br></div><div>What I'm doing is clipping an image by a cylinder (m_rotate_tformer[id]) to calculate the mean activity of the image inside the cylinder. Maybe there is a better way to perform it.<br></div><div><br></div><div> vtkPolyDataToImageStencil* sts = vtkPolyDataToImageStencil::<wbr>New();<br> vtkImageAccumulate* act = vtkImageAccumulate::New();<br><br> sts->SetInputData(m_rotate_<wbr>tformer[id]-><wbr>GetPolyDataOutput());<br> sts->SetInformationInput(<wbr>vtkInputImage.GetPointer());<br> sts->Update();<br> <br> act->SetInputData(<wbr>vtkInputImage.GetPointer());<br> act->SetStencilData(sts-><wbr>GetOutput());<br> act->Update();</div><div><br></div><div>I'm running out of ideas. I'll appreciate any idea.<br></div><div><br></div><div>Thanks,</div><div>Aida</div></div></div></div>
______________________________<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div></div>
</blockquote></div><br></div>
______________________________<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div></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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>