添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Service Status ros @ Robotics Stack Exchange

cmake error: "A required package was not found"

asked 2020-06-15 11:33:33 -0600

brunnese gravatar image

updated 2020-06-15 11:48:28 -0600

gvdhoorn gravatar image

Hi,

I cloned a bitbucket respo to my catkin_ws/src folder. everything works fine until I build mabi_speedy12. The steps in the README file are the following:

$ cd ~/catkin_ws
$ catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release
$ cd src
$ ./mabi_common/mabi_speedy12/bin/clone_deps.sh 
$  catkin build mabi_speedy12

It can build some packages but it aborts at some point as it comes across the following error:

CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:142 (pkg_check_modules)

Has anyone any idea how to solve this error? I tried looking up the error online but I couldn't find anything on the matter.

Thanks in advance!

edit retag flag offensive close merge delete

Comments

Could you please try searching for previous Q&As about this topic (use Google and append site:answers.ros.org to your query). There should be multiple. If something is still not clear after reading those, please update your post here.

If reading those answers your question, please close this one as a duplicate.

I found the following with the same errors but one doesn't propose a solution and the other one I don't understand how they fixed the error and how to apply it to my case.

https://answers.ros.org/question/2280...
https://answers.ros.org/question/2119...

So the question is still open for me

1

Is #q208963 the one you don't understand?

See #q252478 for a similar Q&A, which also includes some text on why you can't just clone a repository and expect things to work.

1

answered 2021-03-17 22:20:32 -0600

Rufus gravatar image

updated 2021-03-17 22:21:41 -0600

You might want to run

rosdep install --from-paths . --ignore-src --rosdistro <your distro> -yr

to make sure all dependencies required by the package are installed

edit flag offensive delete

Comments