<div dir="ltr">Hi Dan,<div><br></div><div>Thanks for the quick response.</div><div><br></div><div>Yes, you are right, I used the command "make -j8 install" to copy the header files to the /usr/local/include/vtk-6.3/". But I pointed to the build folder for the libraries.</div><div><br></div><div>How do I uninstall the system VTK? I have also tried to install vtk 6 and vtk 5 using the "sudo apt-get install libvtk6-dev" and "sudo apt-get install libvtk5-dev".</div><div><br></div><div>Thank you,</div><div>Stephen Thomas.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 3, 2016 at 1:13 PM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.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">Stephen,<div>It seems that you are reading libraries from your own VTK: -L/home/sthomas/projects/<wbr>VTK-build/lib</div><div>but the headers are from the system installed VTK: /usr/local/include/vtk-6.<wbr>3/</div><div><br></div><div>I suggest uninstalling the system VTK or make sure that the correct headers are picked up by LAMMPS.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Nov 3, 2016 at 2:47 PM, Stephen Thomas <span dir="ltr"><<a href="mailto:stephenthomas1@boisestate.edu" target="_blank">stephenthomas1@boisestate.edu</a><wbr>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I am trying to build a C++ code called LAMMPS which uses VTK for writing vtk files. I am getting errors that seem like linking errors. I am able to compile VTK successfully, but when I compile the LAMMPS code, I get the following errors from the line </div>
<div><span style="color:rgb(192,192,192)"> </span>vtkSmartPointer<span style="color:rgb(0,0,0)"><</span><span style="color:rgb(128,0,128)">vtkXMLPolyData<wbr>Writer</span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">writer</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span>vtkSmartPointer<span style="color:rgb(0,0,0)"><</span><span style="color:rgb(128,0,128)">vtkXMLPolyData<wbr>Writer</span><span style="color:rgb(0,0,0)">>::</span>New<span style="color:rgb(0,0,0)">();</span></div><div><span style="color:rgb(0,0,0)"></span>:</div><div><br></div><div><div style="font-size:12.8px"><div>mpicxx -g -O -L/home/sthomas/projects/VTK-<wbr>build/lib <span style="font-size:12.8px">dump_custom_vtk.o </span>.............................<wbr>............. -lvtkCommonCore-6.3 -lvtkIOCore-6.3 -lvtkIOXML-6.3 -lvtkIOLegacy-6.3 -lvtkCommonDataModel-6.3 -lblas -llapack -o ../lmp_mpi</div><span class="m_-604029095998340171m_2786297223714338738gmail-im">dump_custom_vtk.o: In function `vtkSmartPointer<vtkXMLPPolyDa<wbr>taWriter>::New()':</span><div>/usr/local/include/vtk-6.3/vtk<wbr>SmartPointer.h:117: undefined reference to `vtkXMLPPolyDataWriter::New()'</div><span class="m_-604029095998340171m_2786297223714338738gmail-im">dump_custom_vtk.o: In function `vtkSmartPointer<vtkXMLPUnstru<wbr>cturedGridWriter>::New()':</span><div>/usr/local/include/vtk-6.3/vtk<wbr>SmartPointer.h:117: undefined reference to `vtkXMLPUnstructuredGridWriter<wbr>::New()'</div><div>collect2: error: ld returned 1 exit status</div><div><br></div><div>This is the first time I am writing to this forum. I may be missing some supporting information. Please let me know if more information is required. </div><div><br></div><div>I must also point out that I have another code installed on the machine which has also installed VTK 7.0 and its shared libraries. I am not sure if these are somehow interfering. I am assuming that the -L/path_to_lib as seen above should take care of pointing to the right libraries.</div><div><br></div><div>Thank you,</div><div>Stephen Thomas.</div><div><br></div></div></div></div>
<br></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="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>