<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ah, bingo. &nbsp;That does indeed allow the example to build/run. &nbsp;So I must have had some stale libs in my install dir after all? &nbsp;Thought I checked timestamps, but my eyes aren't what they used to be :) &nbsp;I'm still curious why parallel libs are even being built, but that's for another day…<div><br></div><div><div>~/dev/vtk6-build/lib$ ls|grep parall</div><div>libvtkFiltersParallel-6.0.1.dylib*</div><div>libvtkFiltersParallel-6.0.dylib@</div><div>libvtkFiltersParallelImaging-6.0.1.dylib*</div><div>libvtkFiltersParallelImaging-6.0.dylib@</div><div>libvtkIOParallel-6.0.1.dylib*</div><div>libvtkIOParallel-6.0.dylib@</div><div>libvtkParallelCore-6.0.1.dylib*</div><div>libvtkParallelCore-6.0.dylib@</div><div><br></div><div>thanks!</div><div>-Randy</div><div><br></div><div><br><div><div>On Jun 25, 2013, at 8:13 AM, Bill Lorensen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr">Randy,<div><br></div><div>If you point VTK_DIR to your build and not the installed build, doe the example fail the same way?</div><div><br></div><div style="">Bill</div><div style=""><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jun 24, 2013 at 11:39 AM, Marcus D. Hanwell <span dir="ltr">&lt;<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><div class="h5">On Mon, Jun 24, 2013 at 9:25 AM, Randy Heiland <span dir="ltr">&lt;<a href="mailto:heiland@indiana.edu" target="_blank">heiland@indiana.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<br>
<br>
Thought I'd take a stab at VTK6 and will ask the about the build process, in general, as well as a specific link error, while I also dig a little deeper. &nbsp;I did a simple cmake/build via:<br>
cmake &nbsp;-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ &nbsp;-DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc &nbsp;../VTK6.0.0.rc3<br>
<br>
and make install. &nbsp;Then I downloaded the tarball from here: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader</a> , did a successful cmake on it, but then got:<br>


<br>
~/dev/vtk6-play/SimplePointsReader/build$ make<br>
Scanning dependencies of target SimplePointsReader<br>
[100%] Building CXX object CMakeFiles/SimplePointsReader.dir/SimplePointsReader.cxx.o<br>
Linking CXX executable SimplePointsReader.app/Contents/MacOS/SimplePointsReader<br>
ld: library not found for -lvtkFiltersParallelFlowPaths<br>
collect2: ld returned 1 exit status<br>
<br>
This seemed curious, since I hadn't turned on any parallel flags in the VTK cmake. &nbsp;But sure enough, I saw that some parallel libs had been built, e.g.:<br>
~/dev/vtk6-build$ ls /usr/local/lib/libvtk*Paral*.dylib<br>
/usr/local/lib/libvtkFiltersParallel-6.0.1.dylib*<br>
/usr/local/lib/libvtkFiltersParallel-6.0.dylib@<br>
/usr/local/lib/libvtkFiltersParallelImaging-6.0.1.dylib*<br>
/usr/local/lib/libvtkFiltersParallelImaging-6.0.dylib@<br>
/usr/local/lib/libvtkIOParallel-6.0.1.dylib*<br>
/usr/local/lib/libvtkIOParallel-6.0.dylib@<br>
/usr/local/lib/libvtkParallelCore-6.0.1.dylib*<br>
/usr/local/lib/libvtkParallelCore-6.0.dylib@<br>
<br>
Fwiw, I also have:<br>
~/dev/vtk6-build$ grep parallel CMakeCache.txt |grep bool<br>
Module_vtkFiltersParallelFlowPaths:BOOL=OFF<br>
Module_vtkFiltersParallelGeometry:BOOL=OFF<br>
Module_vtkFiltersParallelMPI:BOOL=OFF<br>
Module_vtkFiltersParallelStatistics:BOOL=OFF<br>
Module_vtkIOMPIParallel:BOOL=OFF<br>
Module_vtkIOParallelExodus:BOOL=OFF<br>
Module_vtkIOParallelLSDyna:BOOL=OFF<br>
Module_vtkIOParallelNetCDF:BOOL=OFF<br>
Module_vtkInfovisParallel:BOOL=OFF<br>
Module_vtkParallelMPI:BOOL=OFF<br>
Module_vtkRenderingParallel:BOOL=OFF<br>
<br>
So, a couple questions - why are parallel libs being built and why does this example seem to require them? &nbsp;Apologies if I missed info on the wiki, etc.<br></blockquote></div></div><div><br>Part of this stems from the CMakeLists.txt in the example - if you use find_package(VTK) without specifying components then use ${VTK_LIBRARIES} you will basically link to everything VTK built. This is not normally what people want, and you can see the pre-6.0 version called out vtkHybrid. The wiki page below provides more background,<br>

<br><a href="http://www.vtk.org/Wiki/VTK/Build_System_Migration" target="_blank">http://www.vtk.org/Wiki/VTK/Build_System_Migration</a><br><br>It leads to the question of why the VTK you built thinks vtkFiltersParallelFlowPaths was enabled when it was now. We will build some of the parallel modules that do not require MPI for example - they are probably in the StandAlone group, although it is possible they would be better in a parallel group of their own. The examples attempt to work with VTK 5 and 6, adding the components would make that harder to achieve which is why I think their CMake code is written the way it is.<br>

<br>Hope that makes it clearer, thanks for bringing this up. I would like to get to the bottom of why VTK has incorrectly labelled a module as enabled that was not built.<span class="HOEnZb"><font color="#888888"><br><br>
Marcus<br></font></span></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>
</blockquote></div><br></div></div></body></html>