cmake error: "A required package was not found"
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!
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
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.