ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem solved. Turned out that rviz was grabbing the wrong QT dependencies from an unrelated program installed on the computer.

Before:

$ ldd /opt/ros/kinetic/lib/librviz.so | grep QT
    libQt5Widgets.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Widgets.so.5 (0x00007fd0ad22c000)
    libQt5Gui.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Gui.so.5 (0x00007fd0ab053000)
    libQt5Core.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Core.so.5 (0x00007fd0aa9c9000)

Fix:

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH

After:

$ ldd /opt/ros/kinetic/lib/librviz.so | grep Qt
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007ff360453000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007ff35e38a000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007ff35deb4000)

Problem solved. Turned out that rviz was grabbing the wrong QT dependencies from an unrelated program installed on the computer.computer. Thanks William for tips of looking into QT.

Before:

$ ldd /opt/ros/kinetic/lib/librviz.so | grep QT
    libQt5Widgets.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Widgets.so.5 (0x00007fd0ad22c000)
    libQt5Gui.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Gui.so.5 (0x00007fd0ab053000)
    libQt5Core.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Core.so.5 (0x00007fd0aa9c9000)

Fix:

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH

After:

$ ldd /opt/ros/kinetic/lib/librviz.so | grep Qt
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007ff360453000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007ff35e38a000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007ff35deb4000)

Problem solved. Turned out that rviz was grabbing the wrong QT dependencies from an unrelated program installed on the computer. Thanks William for tips of looking into QT.

Before:

$ ldd /opt/ros/kinetic/lib/librviz.so | grep QT
Qt
    libQt5Widgets.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Widgets.so.5 (0x00007fd0ad22c000)
    libQt5Gui.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Gui.so.5 (0x00007fd0ab053000)
    libQt5Core.so.5 => /opt/EVT/eCapture/QT/lib/libQt5Core.so.5 (0x00007fd0aa9c9000)

Fix:

export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH

After:

$ ldd /opt/ros/kinetic/lib/librviz.so | grep Qt
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007ff360453000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007ff35e38a000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007ff35deb4000)