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

Cmake error when creating a new workspace in windows

asked 2020-12-28 02:27:01 -0600

Ataraxy gravatar image

updated 2020-12-28 02:37:06 -0600

gvdhoorn gravatar image

when i creating a new workspace(in windouws) using

colcon build --merge-install

this error happend.

CMake Error at CMakeLists.txt:31 (findcolcon package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.
Could not find a package configuration file provided by "Qt5" (requested
  version 5.9.5) with any of the following names:


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

i dont know why,and dont konw how to fix it. Does someone konw how to fix it? Iwould be appreciated!

edit retag flag offensive close merge delete


I have the same issue. Did you install from binaries? Which ROS2 version and patch release are you using?

andrestoga gravatar image andrestoga  ( 2021-01-24 12:28:36 -0600 )edit

By the way, I think this is a duplicate to this question.

andrestoga gravatar image andrestoga  ( 2021-01-24 20:37:13 -0600 )edit

yes,i install from binaries,foxy. And,the patch release maybe patch release 4? I forget it.

Ataraxy gravatar image Ataraxy  ( 2021-01-24 21:09:59 -0600 )edit

@Ataraxy I just fixed the issue. Check this question for my solution.

andrestoga gravatar image andrestoga  ( 2021-01-25 00:08:04 -0600 )edit

Thx man !! i fixed it.its useful,thx a lot!!

Ataraxy gravatar image Ataraxy  ( 2021-01-25 01:22:46 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-01-25 01:23:33 -0600

Ataraxy gravatar image

link text this question is useful

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-12-28 02:27:01 -0600

Seen: 839 times

Last updated: Jan 25 '21