[vtkusers] Is vtkDistributedDataFilter put in the libvtkParallel.so library?

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Oct 28 12:46:22 EDT 2004


Jeremy,

	My mistake the filter is recent. So it din't made into 4.4. You have 
two options:

- stick to 4.4, and copy/paste only this class from CVS into your VTK 
directory. Recompile

- Use CVS

HTH
Mathieu


Jeremy Stout wrote:
> Hello, MPI is installed and that particular switch was turned on when
> I was compiling VTK.  I've been able to compile and link other
> programs that use MPI specific vtk classes (such as vtkMPIController
> and vtkMPICommunicator) without any problems.
> 
> Jeremy Stout
> 
> 
> On Thu, 28 Oct 2004 11:36:22 -0400, Mathieu Malaterre
> <mathieu.malaterre at kitware.com> wrote:
> 
>>Jeremy,
>>
>>       You need MPI to use this class. I you do, then turn VTK_USE_MPI ON with
>>cmake. If cmake doesn't find the lib, you need to specify it explicitely
>>in the cmake cache entries.
>>
>>HTH
>>Mathieu
>>
>>
>>
>>Jeremy Stout wrote:
>>
>>>Hello, I am working on a program that uses the
>>>vtkDistributedDataFilter class. I can compile the program, but linking
>>>phase fails. Here are the error messages I am receiving:
>>>
>>>[stout at energy translator]$ g++ translator.cpp -otranslator
>>>-I/usr/local/include/vtk -I/usr/local/packages/mpich/include
>>>-L/usr/local/lib/vtk/ -lvtkCommon -lvtkDICOMParser -lvtkParallel
>>>-lvtkIO -lvtkGraphics -lvtkFiltering -lvtkHybrid -lvtkImaging
>>>-lvtkRendering -lvtkexpat -lvtkfreetype -lvtkftgl -lvtkjpeg -lvtkpng
>>>-lvtktiff -lvtkzlib -L/usr/local/packages/mpich/lib -lmpich -ldl
>>>-Wno-deprecated
>>>
>>>tmp/ccQfSGzK.o(.text+0x21b): In function
>>>`performTranslation(vtkDataSet*, char*, int, int, vtkMPIController*)':
>>>: undefined reference to `vtkDistributedDataFilter::New()'
>>>/tmp/ccQfSGzK.o(.text+0x246): In function
>>>`performTranslation(vtkDataSet*, char*, int, int, vtkMPIController*)':
>>>: undefined reference to
>>>`vtkDistributedDataFilter::SetController(vtkMultiProcessController*)'
>>>collect2: ld returned 1 exit status
>>>
>>>Now, if I switch to the library and do a "nm" on it, this is what I get:
>>>
>>>[stout at energy vtk]$ cd /usr/local/lib/vtk/
>>>[stout at energy vtk]$ nm libvtkParallel.so| c++filt| grep vtkDistributedDataFilter
>>>[stout at energy vtk]$
>>>
>>>The vtkDistributedDataFilter is an essential part of my program and I
>>>would prefer to use it over rolling my own implementation. I'm using
>>>VTK4.4.
>>>
>>>Any help in this matter would be greatly appreciated.
>>>
>>>Jeremy Stout
>>>_______________________________________________
>>>This is the private VTK discussion list.
>>>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>>Follow this link to subscribe/unsubscribe:
>>>http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>>
> 






More information about the vtkusers mailing list