ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Could not find a package configuration file provided by "Qt5Widgets"

asked 2016-06-07 09:05:52 -0600

yongqi gravatar image

I am using indigo in ubuntu14.04.2 following this. I did like this:

$ mkdir -p ~/overlay_ws
$ cd ~/overlay_ws
$ mkdir -p ~/overlay_ws/src
$ cd ~/overlay_ws/src
$ wstool init

then added a ros package

$ wstool set ros_tutorials --git git://
$ wstool update

build it

$ source /opt/ros/groovy/setup.bash
$ cd ~/overlay_ws/
$ catkin_make

error occured:

-- Using these message generators: gencpp;genlisp;genpy
CMake Error at ros_tutorials/turtlesim/CMakeLists.txt:6 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:


  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.

my questions is : 1 What's the relationship between ROS and the Qt5 ?

2 Should I install Qt5 in my PC ? thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-07 10:06:13 -0600

1) It is used to build GUIs, as the one for turtlesim (but also the whole rqt series, including rviz)

2) Yes. You might be fine just issuing rosdep install turtlesim. Otherwise check out the qt related packages in package.xml and install them via sudo apt-get install ...

edit flag offensive delete link more


thanks for replay. I have installed turtlesim and I can not find package.xml, I think it is created after catkin_create_pkg.

yongqi gravatar image yongqi  ( 2016-06-07 20:16:57 -0600 )edit

try sudo apt-get install qtbase5-dev then

Felix Endres gravatar image Felix Endres  ( 2016-06-08 07:30:59 -0600 )edit

thanks very much, sudo apt-get install qtbase5-dev works for me

yongqi gravatar image yongqi  ( 2016-06-08 21:13:44 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-06-07 09:05:52 -0600

Seen: 12,076 times

Last updated: Jun 07 '16