Transparency and linker issues installing against custom QT 5.2.1 bulid
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I'm on CentOS 6, with a custom installation of Qt 5.2.1 in /opt. The Qt standard CentOS installation lives in /usr.
I'm trying to compile and install VTK 6.1.0 against the custom Qt 5.2.1 installation. The VTK install target is also in /opt.
I'm using cmake28-gui for all the settings, and an out-of-source build into a new subdirectory (VTK-build) inside the VTK source directory.
Three issues:
-
Despite setting the CMAKE_PREFIX_PATH variable to /opt/qt5.2.1, nearly all Qt paths, including the qmake variable and the QtOpengl paths, all still point to the /usr install of Qt. These all need to be hand-edited to point to /opt/qt5.2.1.
-
When VTK 6 is installed in /opt, the VTK-Qt libraries can't seem to find any of the VTK libraries that all reside in the same directory. For example, an ldd on libvtkViewsQt-6.1.so yields:
% ldd libvtkViewsQt-6.1.so linux-vdso.so.1 => (0x00007fff36dff000) libvtkGUISupportQt-6.1.so.1 => not found libvtkViewsInfovis-6.1.so.1 => not found libQt5Widgets.so.5 => not found libQt5Gui.so.5 => not found libQt5Core.so.5 => not found libvtkChartsCore-6.1.so.1 => not found libvtkCommonColor-6.1.so.1 => not found libvtkFiltersImaging-6.1.so.1 => not found libvtkInfovisLayout-6.1.so.1 => not found libvtkInfovisCore-6.1.so.1 => not found libvtkRenderingContext2D-6.1.so.1 => not found libvtkRenderingOpenGL-6.1.so.1 => not found libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00007f39c39cb000) libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f39c37c3000) libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f39c35a7000) libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f39c3267000) libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f39c3055000) libXt.so.6 => /usr/lib64/libXt.so.6 (0x00007f39c2df0000) libvtkRenderingLabel-6.1.so.1 => not found libvtkViewsCore-6.1.so.1 => not found libvtkInteractionWidgets-6.1.so.1 => not found libvtkInteractionStyle-6.1.so.1 => not found libvtkFiltersModeling-6.1.so.1 => not found libvtkImagingGeneral-6.1.so.1 => not found libvtkImagingHybrid-6.1.so.1 => not found libvtkIOImage-6.1.so.1 => not found libvtkIOCore-6.1.so.1 => not found libvtkFiltersHybrid-6.1.so.1 => not found libvtkImagingSources-6.1.so.1 => not found libvtkRenderingAnnotation-6.1.so.1 => not found libvtkRenderingFreeType-6.1.so.1 => not found libvtkftgl-6.1.so.1 => not found libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f39c2b6c000) libvtkfreetype-6.1.so.1 => not found libvtkzlib-6.1.so.1 => not found libvtkImagingColor-6.1.so.1 => not found libvtkRenderingVolume-6.1.so.1 => not found libvtkRenderingCore-6.1.so.1 => not found libvtkFiltersSources-6.1.so.1 => not found libvtkFiltersExtraction-6.1.so.1 => not found libvtkFiltersStatistics-6.1.so.1 => not found libvtkImagingFourier-6.1.so.1 => not found libvtkImagingCore-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 libvtkCommonExecutionModel-6.1.so.1 => not found 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 libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f39c285d000) libm.so.6 => /lib64/libm.so.6 (0x00007f39c25d9000) libc.so.6 => /lib64/libc.so.6 (0x00007f39c2238000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f39c2021000) libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f39c1e1d000) libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f39c1c02000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f39c19fd000) libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007f39c17fb000) libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f39c15f6000) libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007f39c13f0000) libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007f39c11e5000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f39c0fc9000) /lib64/ld-linux-x86-64.so.2 (0x0000003909c00000) libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f39c0dc5000) librt.so.1 => /lib64/librt.so.1 (0x00007f39c0bbd000)
- After compiling and installing without errors (despite the above issues), running a test application with Qt & VTK yields transparent 3D surfaces. The same code worked fine on VTK 5.10 + Qt 4.6.2. Please see attached file. Both the sphere and square should be solid objects.
Any idea what could be happening?