diff --git a/0-usb-cam-fix-include-not-found.patch b/0-usb-cam-fix-include-not-found.patch new file mode 100644 index 0000000000000000000000000000000000000000..4f785211b301b1f6532dfe8b17b5b6e5680caeb0 --- /dev/null +++ b/0-usb-cam-fix-include-not-found.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7643f27..14d333d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,6 +42,8 @@ target_include_directories(${PROJECT_NAME} PUBLIC + "include" + ) + ++include_directories(/usr/include/ffmpeg) ++ + target_link_libraries(${PROJECT_NAME} + ${avcodec_LIBRARIES} + ${avutil_LIBRARIES} +-- +2.41.0 + diff --git a/usb-cam.spec b/usb-cam.spec index 01a076fbebe83f0c54ec60a2d87d06463b4337a4..b89b42b9b185ae18724d48d637465cc661119394 100644 --- a/usb-cam.spec +++ b/usb-cam.spec @@ -16,6 +16,8 @@ Url: http://wiki.ros.org/usb_cam License: BSD Source0: %{name}_%{version}.orig.tar.gz +Patch0: 0-usb-cam-fix-include-not-found.patch + Requires: ros-%{ros_distro}-cv-bridge Requires: ros-%{ros_distro}-rclcpp Requires: ros-%{ros_distro}-rclcpp-components @@ -42,7 +44,7 @@ BuildRequires: ros-%{ros_distro}-builtin-interfaces BuildRequires: ros-%{ros_distro}-image-transport BuildRequires: ros-%{ros_distro}-image-transport-plugins BuildRequires: v4l-utils -BuildRequires: ffmpeg +BuildRequires: ffmpeg-devel BuildRequires: ros-%{ros_distro}-ament-cmake-auto BuildRequires: ros-%{ros_distro}-rosidl-default-generators BuildRequires: ros-%{ros_distro}-ros-workspace