MantisBT - VTK
View Issue Details
0014630VTK(No Category)public2014-03-10 12:352016-07-06 10:22
Alketi 
Utkarsh Ayachit 
normalminorhave not tried
closedduplicate 
6.0.0 
 
TBD
incorrect functionality
0014630: Transparency and linker issues installing against custom QT 5.2.1 bulid
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:

1. 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.

2. 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)

3. 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?
No tags attached.
related to 0015469closed Ben Boeckel (Kitware) Qt5 no longer provide window-system information 
png vtk_transparent.png (29,118) 2014-03-10 12:35
https://www.vtk.org/Bug/file/9628/vtk_transparent.png
png
Issue History
2014-03-10 12:35AlketiNew Issue
2014-03-10 12:35AlketiFile Added: vtk_transparent.png
2014-06-09 20:58guestNote Added: 0032813
2014-06-09 20:58guestStatusbacklog => gerrit review
2014-12-09 09:14SpaceUserNote Added: 0033914
2014-12-09 09:15SpaceUserNote Edited: 0033914bug_revision_view_page.php?bugnote_id=33914#r935
2015-01-29 09:18SpaceUserNote Edited: 0033914bug_revision_view_page.php?bugnote_id=33914#r1013
2015-05-14 10:18David C. LonieRelationship addedrelated to 0015469
2015-05-14 10:19David C. LonieNote Added: 0034412
2015-05-14 10:19David C. LonieAssigned To => David C. Lonie
2015-05-14 10:19David C. LonieStatusgerrit review => backlog
2015-05-14 10:20David C. LonieAssigned ToDavid C. Lonie =>
2016-05-26 13:58guestNote Edited: 0032813bug_revision_view_page.php?rev_id=1626
2016-07-06 10:21Utkarsh AyachitNote Deleted: 0032813
2016-07-06 10:22Utkarsh AyachitNote Added: 0036158
2016-07-06 10:22Utkarsh AyachitStatusbacklog => closed
2016-07-06 10:22Utkarsh AyachitAssigned To => Utkarsh Ayachit
2016-07-06 10:22Utkarsh AyachitResolutionopen => duplicate

Notes
(0033914)
SpaceUser   
2014-12-09 09:14   
(edited on: 2015-01-29 09:18)
Contrary to the linker bug, the transparency bug still exists (on Debian 8.0 with installed VTK6.1.0 / QT5.3.2). The often proposed culling doesn't fix the problem. Thus, I'm wondering if there is a suitable fix available. However, the problem only occures when using QVTKWidget!

(0034412)
David C. Lonie   
2015-05-14 10:19   
Bug 15469 identifies the cause of the transparency issues.

This bug is currently marked as "Gerrit Review". This seems unintentional as there is no reference to a review branch. Revert to backlog.
(0036158)
Utkarsh Ayachit   
2016-07-06 10:22   
Closing since duplicate of BUG 0015469