Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message): A required package was not found #307

Open
Bhaveshmeghwal21 opened this issue Dec 29, 2023 · 3 comments

Comments

@Bhaveshmeghwal21
Copy link

I am using ROS Noetic
after cloning this package in my workspace ( ros_ws_cam/src/) it shows a cmake error, the message is
_CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (pkg_check_modules_internal)
usb_cam/CMakeLists.txt:10 (pkg_check_modules)

can anyone solve it?

@Li-yinqiao
Copy link

在我的工作区(ros_ws_cam/src/)中克隆此包后,我正在使用ROS Noetic,它显示cmake错误,消息为_/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463的_CMake错误(消息):找不到所需的软件包 调用堆栈(最近一次调用优先):/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal) usb_cam/CMakeLists.txt:10 (pkg_check_modules)__谁能解决它?

Excuse me, have you solved this problem yet?

@twdragon
Copy link
Collaborator

twdragon commented Mar 5, 2024

It seems a problem with ROS installation or sourcing. Can you share a full log?

@zhoushiguang7
Copy link

I am using ROS Noetic after cloning this package in my workspace ( ros_ws_cam/src/) it shows a cmake error, the message is _CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (pkg_check_modules_internal) usb_cam/CMakeLists.txt:10 (pkg_check_modules) can anyone solve it?

I also encountered this problem. It should be because of "No package 'libv4l2' found".
And I solved this error by running sudo apt-get install libv4l-dev in the terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants