[vtkusers] TaskParallel.cxx example -> vtkCompositeRenderManager error!
Peter Schmitt
pschmitt at gmail.com
Fri Jun 3 19:55:01 EDT 2005
I am having trouble getting the TaskParallel.cxx example working.
I can compile & link the application, but I get an error once I do an mpirun:
[snip]
[pschmitt at host TaskParallelism]$ mpirun -np 2 -machinefile
~/machine_file TaskParallelism MPI
ERROR: In /software/linux-sles8-ia32/vizdev/vtk-nvgl-mpi-4.4.2-gcc-r1/src/Parallel/vtkParallelRenderManager.cxx,
line 414
vtkCompositeRenderManager (0x897e758): Must set Controller and
RenderWindow before starting interactor.
ERROR: In /software/linux-sles8-ia32/vizdev/vtk-nvgl-mpi-4.4.2-gcc-r1/src/Parallel/vtkParallelRenderManager.cxx,
line 414
vtkCompositeRenderManager (0x897e6e0): Must set Controller and
RenderWindow before starting interactor.
[/snip]
I have added the following to my header:
#define VTK_USE_MPI 1
... but I get the same problem.
Any ideas of what to do? Please note that I do not have cmake (and I
would like to avoid using cmake, if possible...)
Thanks!
Pete
PS: Extra info, if you're curious:
Source acquired from:
http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Examples/ParallelProcessing/Generic/Cxx/
TaskParallelism.cxx
TaskParallelism.cxx
task1.cxx
task2.cxx
I created a makefile:
[start makefile]
VTK_HOME=/path/to/vtk-nvgl-4.4.2-mpich-gm-r1
CXX := c++
CXXFLAGS := -g -I$(VTK_HOME)/include/vtk -I${PWD} -Wno-deprecated
LIBS := -L$(VTK_HOME)/lib/vtk -lvtkRendering -lvtkGraphics
-lvtkImaging -lvtkFiltering -lvtkCommon -lvtkfreetype -lvtkParallel
OBJECTS = TaskParallelism.o task1.o task2.o
TaskParallelism : $(OBJECTS)
$(CXX) $(LIBS) -o TaskParallelism $(OBJECTS)
[stop makefile]
More information about the vtkusers
mailing list