[vtkusers] building vtk6, simple example
Randy Heiland
heiland at indiana.edu
Mon Jun 24 09:25:01 EDT 2013
Hello,
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. I did a simple cmake/build via:
cmake -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc ../VTK6.0.0.rc3
and make install. Then I downloaded the tarball from here: http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsReader , did a successful cmake on it, but then got:
~/dev/vtk6-play/SimplePointsReader/build$ make
Scanning dependencies of target SimplePointsReader
[100%] Building CXX object CMakeFiles/SimplePointsReader.dir/SimplePointsReader.cxx.o
Linking CXX executable SimplePointsReader.app/Contents/MacOS/SimplePointsReader
ld: library not found for -lvtkFiltersParallelFlowPaths
collect2: ld returned 1 exit status
This seemed curious, since I hadn't turned on any parallel flags in the VTK cmake. But sure enough, I saw that some parallel libs had been built, e.g.:
~/dev/vtk6-build$ ls /usr/local/lib/libvtk*Paral*.dylib
/usr/local/lib/libvtkFiltersParallel-6.0.1.dylib*
/usr/local/lib/libvtkFiltersParallel-6.0.dylib@
/usr/local/lib/libvtkFiltersParallelImaging-6.0.1.dylib*
/usr/local/lib/libvtkFiltersParallelImaging-6.0.dylib@
/usr/local/lib/libvtkIOParallel-6.0.1.dylib*
/usr/local/lib/libvtkIOParallel-6.0.dylib@
/usr/local/lib/libvtkParallelCore-6.0.1.dylib*
/usr/local/lib/libvtkParallelCore-6.0.dylib@
Fwiw, I also have:
~/dev/vtk6-build$ grep parallel CMakeCache.txt |grep bool
Module_vtkFiltersParallelFlowPaths:BOOL=OFF
Module_vtkFiltersParallelGeometry:BOOL=OFF
Module_vtkFiltersParallelMPI:BOOL=OFF
Module_vtkFiltersParallelStatistics:BOOL=OFF
Module_vtkIOMPIParallel:BOOL=OFF
Module_vtkIOParallelExodus:BOOL=OFF
Module_vtkIOParallelLSDyna:BOOL=OFF
Module_vtkIOParallelNetCDF:BOOL=OFF
Module_vtkInfovisParallel:BOOL=OFF
Module_vtkParallelMPI:BOOL=OFF
Module_vtkRenderingParallel:BOOL=OFF
So, a couple questions - why are parallel libs being built and why does this example seem to require them? Apologies if I missed info on the wiki, etc.
thanks, Randy
More information about the vtkusers
mailing list