<div dir="ltr"><div><div>Hi,<br><br></div>Usually when you change something major in VTK's build (such as BUILD_SHARED_LIBS), you need to delete the build tree completely to keep the leftovers from the old build from polluting the new one. That is probably what happened the first time too. I don't know if VTK_USE_SYSTEM_zlib is big enough to cause this... And did you rerun CMake after you edited the cache?<br><br></div><div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 4, 2016 at 10:11 AM, the lily <span dir="ltr"><<a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@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 style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I think this happened because I changed the <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">CMakeCache.txt </span></p>
<p><font face="arial, sans-serif" color="#222222"><span style="font-size:12.8px">I changed the following parameters</span></font></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">BUILD_SHARED_LIBS:BOOL=OFF</span><br>
</span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">VTK_USE_SYSTEM_ZLIB:BOOL=ON</span><br>
</span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br>
</span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">I
tried changing that back to its original value but when I try to build it using make I get the following error </span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br>
</span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">/usr/bin/ld:
CMakeFiles/vtkRenderingOpenGL.</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">dir/vtkXOpenGLRenderWindow.</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">cxx.o(.text+0x6ef0):
sibling call optimization to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `std::basic_stringbuf<char,
std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()' extern</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">/usr/bin/ld: final link failed: Bad value</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">collect2: ld returned 1 exit status</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">make[2]: *** [lib/libvtkRenderingOpenGL-6.</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">1.so.1]
Error 1</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">make[1]: *** [Rendering/OpenGL/CMakeFiles/</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">vtkRenderingOpenGL.dir/all]
Error 2</span><br>
</span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br>
</span></span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br>
</span></span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br>
</span></span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Any
hints? </span></span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br></span></span></span></span></p><div class="hm HOEnZb">
</div><p></p><div class="hm HOEnZb">
<br>
</div><div style="color:rgb(0,0,0)"><div class="hm HOEnZb">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> vtkusers <<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>> on behalf of the lily <<a href="mailto:the.1.lily@hotmail.com" target="_blank">the.1.lily@hotmail.com</a>><br>
<b>Sent:</b> Thursday, August 4, 2016 12:14 AM<br>
<b>To:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> [vtkusers] vtk linking error cannot find some libraries</font>
<div> </div>
</div></div><div><div class="h5">
<div>
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>I'm trying to link VTK and for some reason vtk is not finding some of the libraries, and when I search for it in the lib folder I did not find these libraries.</p>
<p>I specified the vtk path in the makefile, I'm not sure what I'm missing. </p>
<p>These are the libraries</p>
<p><br>
</p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"> cannot find -lvtkRenderingParallel-6.1</span><br>
</p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">cannot find -lvtkzlib-6.1</span><br>
</span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">cannot find
-</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">lvtkFiltersParallelStatistics-</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">6.1</span><br>
</span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">cannot
find -lvtkWrappingTools-6.1</span><br>
</span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><br>
</span></span></span></span></p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">thanks.</span></span></span></span></p>
</div>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<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/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_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=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/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>