[vtkusers] Problem with TIF captures
Gheorghe Postelnicu
gheorghe.postelnicu at gmail.com
Wed Sep 13 17:01:42 EDT 2006
Hi Mathieu,
Thanks alot for the info. Before embarking on this, I wanted to
mention new elements I just learned about my system, which might be
more relevant for this problem.
On the computer where it doesn't work, I have ATI radeon GL libraries
installed. On the other computer I tried and where my rendering was
exported corectly, I have open source Mesa libraries.
Do you still suggest I concentrate on the system TIFF libraries?
Thanks,
On 9/13/06, Mathieu Malaterre <mathieu.malaterre at kitware.com> wrote:
> Gheorghe,
>
> There is an option in VTK that allows you to link against the system
> TIFF libraries. Could you please try rebuilding VTK against those
> libraries ? Be careful you might need the -dev package depending on
> which Linux distribution you are on. On debian this is called
> libtiff4-dev for example.
>
> Then all you need to do is turn VTK_USE_SYSTEM_TIFF:BOOL=ON and
> reconfigure using cmake. It should find the tiff header and tiff dynamic
> library.
>
> HTH
> Mathieu
>
> Gheorghe Postelnicu wrote:
> > Hi,
> >
> > I have a weird problem when exporting the contents of a rendered
> > window to a tif file. I have managed to replicate the problem on 2
> > machines with the same architecture and noticed there seem to be some
> > differences in the output of ldd. Is this normal?
> >
> > My experiment to replicate this was the following: took the code of
> > Step1 in the tutorial provided with VTK, added the following lines:
> >
> > // print TIF capture
> > vtkWindowToImageFilter* w2i = vtkWindowToImageFilter::New();
> > vtkTIFFWriter* writer = vtkTIFFWriter::New();
> > w2i->SetInput(renWin);
> > w2i->Update();
> >
> > writer->SetInputConnection( w2i->GetOutputPort() );
> > writer->SetFileName("alpha.tif");
> > renWin->Render();
> > writer->Write();
> >
> > and then compiled the code on 2 different machines (both running
> > CentOS, 64bit Opterons). In one case, the tif image obtained at the
> > end was the right one, in the other case it wasn't. Since my linking
> > is dynamic, below is the contents of ldd in the GOOD(ie, when I got
> > the expected tif image) and BAD (ie, when the tif image was not good)
> > cases:
> >
> > Any suggestions? THanks,
> >
> > GOOD:
> > -------
> > libvtkRendering.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkRendering.so.5.1
> >
> > (0x0000002a95557000)
> > libvtkGraphics.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkGraphics.so.5.1
> >
> > (0x0000002a95932000)
> > libvtkImaging.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkImaging.so.5.1
> >
> > (0x0000002a9604b000)
> > libvtkIO.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkIO.so.5.1
> > (0x0000002a964b0000)
> > libvtkFiltering.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkFiltering.so.5.1
> >
> > (0x0000002a9691d000)
> > libvtkCommon.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkCommon.so.5.1
> >
> > (0x0000002a96ccb000)
> > libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000003537e00000)
> > libvtkDICOMParser.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkDICOMParser.so.5.1
> >
> > (0x0000002a96fbc000)
> > libvtkNetCDF.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkNetCDF.so.5.1
> >
> > (0x0000002a970de000)
> > libvtkpng.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkpng.so.5.1
> > (0x0000002a97217000)
> > libvtktiff.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtktiff.so.5.1
> >
> > (0x0000002a9733c000)
> > libvtkzlib.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkzlib.so.5.1
> >
> > (0x0000002a97487000)
> > libvtkjpeg.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkjpeg.so.5.1
> >
> > (0x0000002a97597000)
> > libvtkexpat.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkexpat.so.5.1
> >
> > (0x0000002a976bb000)
> > libvtksys.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtksys.so.5.1
> > (0x0000002a977e6000)
> > libdl.so.2 => /lib64/libdl.so.2 (0x0000003537600000)
> > libvtkMPEG2Encode.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkMPEG2Encode.so.5.1
> >
> > (0x0000002a97918000)
> > libvtkftgl.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkftgl.so.5.1
> >
> > (0x0000002a97a2e000)
> > libvtkfreetype.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkfreetype.so.5.1
> >
> > (0x0000002a97b39000)
> > libGL.so.1 => /usr/lib64/libGL.so.1 (0x000000353bd00000)
> > libXt.so.6 => /usr/X11R6/lib64/libXt.so.6 (0x000000353cc00000)
> > libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x0000003538000000)
> > libICE.so.6 => /usr/X11R6/lib64/libICE.so.6 (0x0000003538200000)
> > libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x0000003537800000)
> > libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x0000003537c00000)
> > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x000000353a000000)
> > libm.so.6 => /lib64/tls/libm.so.6 (0x0000003537400000)
> > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003539e00000)
> > libc.so.6 => /lib64/tls/libc.so.6 (0x0000003537100000)
> > /lib64/ld-linux-x86-64.so.2 (0x0000003536f00000)
> > libXxf86vm.so.1 => /usr/X11R6/lib64/libXxf86vm.so.1
> > (0x000000353c500000)
> >
> >
> >
> > BAD:
> > --------
> > libvtkRendering.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkRendering.so.5.1
> >
> > (0x0000002a95557000)
> > libvtkGraphics.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkGraphics.so.5.1
> >
> > (0x0000002a95932000)
> > libvtkImaging.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkImaging.so.5.1
> >
> > (0x0000002a9604b000)
> > libvtkIO.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkIO.so.5.1
> > (0x0000002a964b0000)
> > libvtkFiltering.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkFiltering.so.5.1
> >
> > (0x0000002a9691d000)
> > libvtkCommon.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkCommon.so.5.1
> >
> > (0x0000002a96ccb000)
> > libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000003d18000000)
> > libvtkDICOMParser.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkDICOMParser.so.5.1
> >
> > (0x0000002a96fbc000)
> > libvtkNetCDF.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkNetCDF.so.5.1
> >
> > (0x0000002a970de000)
> > libvtkpng.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkpng.so.5.1
> > (0x0000002a97217000)
> > libvtktiff.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtktiff.so.5.1
> >
> > (0x0000002a9733c000)
> > libvtkzlib.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkzlib.so.5.1
> >
> > (0x0000002a97487000)
> > libvtkjpeg.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkjpeg.so.5.1
> >
> > (0x0000002a97597000)
> > libvtkexpat.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkexpat.so.5.1
> >
> > (0x0000002a976bb000)
> > libvtksys.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtksys.so.5.1
> > (0x0000002a977e6000)
> > libdl.so.2 => /lib64/libdl.so.2 (0x0000003d17800000)
> > libvtkMPEG2Encode.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkMPEG2Encode.so.5.1
> >
> > (0x0000002a97918000)
> > libvtkftgl.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkftgl.so.5.1
> >
> > (0x0000002a97a2e000)
> > libvtkfreetype.so.5.1 =>
> > /space/asterix/1/users/postelni/packages/vtk/build/rls/bin/libvtkfreetype.so.5.1
> >
> > (0x0000002a97b39000)
> > libGL.so.1 => /usr/lib64/libGL.so.1 (0x0000003a69100000)
> > libXt.so.6 => /usr/X11R6/lib64/libXt.so.6 (0x0000003d1d000000)
> > libSM.so.6 => /usr/X11R6/lib64/libSM.so.6 (0x0000003d18400000)
> > libICE.so.6 => /usr/X11R6/lib64/libICE.so.6 (0x0000003d18200000)
> > libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x0000003d17a00000)
> > libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x0000003d17e00000)
> > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003d1a200000)
> > libm.so.6 => /lib64/tls/libm.so.6 (0x0000003d17600000)
> > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003d19c00000)
> > libc.so.6 => /lib64/tls/libc.so.6 (0x0000003d17300000)
> > /lib64/ld-linux-x86-64.so.2 (0x0000003d17100000)
> >
> >
> >
>
>
--
Gheorghe Postelnicu, PhD
MGH, Harvard Medical School
More information about the vtkusers
mailing list