[ROS2]'Moveit2' colcon build QT error

asked 2022-05-03 09:37:49 -0500

Robobo gravatar image

Hi there I have a trouble with errors during the colcon build.

I'm using Ubuntu 20.04 LTS, ROS2 foxy. And I'm following this tutorial https://moveit.picknik.ai/foxy/doc/ge...

After below colcon build,

colcon build --mixin release

The errors following.

Starting >>> moveit_visual_tools
--- stderr: moveit_visual_tools
/usr/bin/ld: /opt/ros/foxy/lib/librviz_common.so: undefined reference to `QTreeView::verticalScrollbarValueChanged(int)@Qt_5'
/usr/bin/ld: /opt/ros/foxy/lib/librviz_default_plugins.so: undefined reference to `qt_version_tag@Qt_5.12'
/usr/bin/ld: /opt/ros/foxy/lib/librviz_common.so: undefined reference to `QTreeWidgetItem::setHidden(bool)@Qt_5'
/usr/bin/ld: /opt/ros/foxy/lib/librviz_common.so: undefined reference to `QAbstractItemView::eventFilter(QObject*, QEvent*)@Qt_5'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/moveit_visual_tools_demo.dir/build.make:440: moveit_visual_tools_demo] Error 1
make[1]: *** [CMakeFiles/Makefile2:165: CMakeFiles/moveit_visual_tools_demo.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
---
Failed   <<< moveit_visual_tools [28.9s, exited with code 2]

How can I solve this problem?

Is this a ploblem of QTcreator? But I installed lastest version of QT creator. It doesn't work.

I need your help.

Thanks a lot.

edit retag flag offensive close merge delete