[vtkusers] CentOS 6, VTK 6, Qt 5 -- issues with volume rendering and libvtkGUISupportQt
alketi
rc5 at verizon.net
Thu Mar 6 15:08:16 EST 2014
Hi All,
My Setup: CentOS 6, VTK 6.1.0, Qt 5.2.1
Qt & VTK were both compiled from source and installed in /opt.
I built VTK with cmake, but despite selecting Qt5, many things still tried
to point to the standard Qt4 installation on CentOS. I hand-corrected as
many of those as I found.
Application Code:
1. I have a Qt app and am using a PRO file (not cmake). My Qt app compiles
and I'm running the vtk-slider demo inside of Qt. The VTK code uses a
"vtkSphereSource".
2. The Qt PRO file has includes and libraries pointing to my VTK
installation.
3. In order to compile successfully, at the top of my CPP I have:
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL);
VTK_MODULE_INIT(vtkRenderingVolumeOpenGL); // Added this recently
VTK_MODULE_INIT(vtkInteractionStyle);
MAIN ISSUE:
The main issue is that the Sphere does not render it's front face correctly,
i.e. it doesn't appear fully solid, especially when rotated. The front face
clips in different ways as you rotate.
In investigating, I noticed that libvtkGUISupportQt-6.1.so is unable to find
any other VTK libraries, even though they all reside in the same directory.
Here's the output from an ldd of /opt/vtk-6.1.0/lib/libvtkGUISupport
% ldd libvtkGUISupportQt-6.1.so
linux-vdso.so.1 => (0x00007fffadb8f000)
libvtkCommonExecutionModel-6.1.so.1 => not found
libvtkImagingCore-6.1.so.1 => not found
libvtkInteractionStyle-6.1.so.1 => not found
libvtkRenderingOpenGL-6.1.so.1 => not found
libvtkFiltersExtraction-6.1.so.1 => not found
libQt5Widgets.so.5 => not found
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007fb3e6206000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007fb3e5fea000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fb3e5cab000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fb3e5a98000)
libvtkRenderingCore-6.1.so.1 => not found
libvtkFiltersStatistics-6.1.so.1 => not found
libvtkImagingFourier-6.1.so.1 => not found
libvtkalglib-6.1.so.1 => not found
libvtkFiltersGeneral-6.1.so.1 => not found
libvtkCommonComputationalGeometry-6.1.so.1 => not found
libvtkFiltersCore-6.1.so.1 => not found
libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00007fb3e5828000)
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007fb3e55a9000)
libXt.so.6 => /usr/lib64/libXt.so.6 (0x00007fb3e5344000)
libvtkCommonDataModel-6.1.so.1 => not found
libvtkCommonSystem-6.1.so.1 => not found
libvtkCommonTransforms-6.1.so.1 => not found
libvtkCommonMisc-6.1.so.1 => not found
libvtkCommonMath-6.1.so.1 => not found
libvtkCommonCore-6.1.so.1 => not found
libQt5Gui.so.5 => not found
libQt5Core.so.5 => not found
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fb3e503b000)
libm.so.6 => /lib64/libm.so.6 (0x00007fb3e4db6000)
libc.so.6 => /lib64/libc.so.6 (0x00007fb3e4a15000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fb3e47ff000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fb3e45fa000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fb3e43df000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fb3e41db000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007fb3e3fd8000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007fb3e3dd3000)
libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007fb3e3bce000)
libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007fb3e39c2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb3e37a6000)
/lib64/ld-linux-x86-64.so.2 (0x0000003909c00000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fb3e35a2000)
librt.so.1 => /lib64/librt.so.1 (0x00007fb3e339a000)
Any ideas on what's wrong with the solid object, and why
libvtkGUISupportQt-6.1.so can't find the other VTK libraries that reside
with it?
And if the two problems are related?
Thanks,
Alketi
--
View this message in context: http://vtk.1045678.n5.nabble.com/CentOS-6-VTK-6-Qt-5-issues-with-volume-rendering-and-libvtkGUISupportQt-tp5726212.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list