From 8eba127c0a16f15eff7e8c01a1df23cc13850b8d Mon Sep 17 00:00:00 2001 From: Lucas Walter Date: Tue, 16 Apr 2024 10:42:05 -0700 Subject: [PATCH] need to use pkg_check_modules to get libuvc libraries in Ubuntu 24.04 --- libuvc_camera/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libuvc_camera/CMakeLists.txt b/libuvc_camera/CMakeLists.txt index 91db504..65b0037 100644 --- a/libuvc_camera/CMakeLists.txt +++ b/libuvc_camera/CMakeLists.txt @@ -9,6 +9,11 @@ generate_dynamic_reconfigure_options(cfg/UVCCamera.cfg) find_package(libuvc REQUIRED) message(STATUS "libuvc ${libuvc_VERSION_MAJOR}.${libuvc_VERSION_MINOR}.${libuvc_VERSION_PATCH}") +# this is needed to get the libuvc libraries in libuvc 0.0.7 +find_package(PkgConfig REQUIRED) +pkg_check_modules(libuvc REQUIRED libuvc) +message(STATUS "libuvc libraries ${libuvc_LIBRARIES}") + catkin_package( CATKIN_DEPENDS roscpp