<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm sorry but I've tried both proposals and I still get "undefined reference".</div><div>Can I check something else?</div><div><br></div><div>Thank you in adavance,</div><div>Aida<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 May 2018 at 20:47, Chiranjib Sur <span dir="ltr"><<a href="mailto:sur.chiranjib@gmail.com" target="_blank">sur.chiranjib@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">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="m_-5550231493687721552gmail_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><div><div class="h5">
<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="m_-5550231493687721552h5"><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_-5550231493687721552m_-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+0x<wbr>1623): undefined reference to `vtkPolyDataToImageStencil::Ne<wbr>w()'<br>tlQuantification.cpp:(.text+0x<wbr>162b): undefined reference to `vtkImageAccumulate::New()'<br>tlQuantification.cpp:(.text+0x<wbr>168e): undefined reference to `vtkImageAccumulate::SetStenci<wbr>lData(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(quantifi<wbr>cation ${VTK_LIBRARIES} )<br>else()<br> target_link_libraries(quantifi<wbr>cation 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::New<wbr>();<br> vtkImageAccumulate* act = vtkImageAccumulate::New();<br><br> sts->SetInputData(m_rotate_tfo<wbr>rmer[id]->GetPolyDataOutput())<wbr>;<br> sts->SetInformationInput(vtkIn<wbr>putImage.GetPointer());<br> sts->Update();<br> <br> act->SetInputData(vtkInputImag<wbr>e.GetPointer());<br> act->SetStencilData(sts->GetOu<wbr>tput());<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/opensou<wbr>rce/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_FA<wbr>Q</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/mai<wbr>lman/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/opensou<wbr>rce/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_FA<wbr>Q</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/mai<wbr>lman/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/opensou<wbr>rce/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_FA<wbr>Q</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/mai<wbr>lman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>