summaryrefslogtreecommitdiff
path: root/0-irobot-create-gazebo-plugins-fix-ffmpeg.patch
diff options
context:
space:
mode:
Diffstat (limited to '0-irobot-create-gazebo-plugins-fix-ffmpeg.patch')
-rw-r--r--0-irobot-create-gazebo-plugins-fix-ffmpeg.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/0-irobot-create-gazebo-plugins-fix-ffmpeg.patch b/0-irobot-create-gazebo-plugins-fix-ffmpeg.patch
new file mode 100644
index 0000000..408f9a4
--- /dev/null
+++ b/0-irobot-create-gazebo-plugins-fix-ffmpeg.patch
@@ -0,0 +1,18 @@
+diff -Naur ros-humble-irobot-create-gazebo-plugins-2.0.0/CMakeLists.txt ros-humble-irobot-create-gazebo-plugins-2.0.0_new/CMakeLists.txt
+--- ros-humble-irobot-create-gazebo-plugins-2.0.0/CMakeLists.txt 2023-01-20 02:43:13.000000000 +0800
++++ ros-humble-irobot-create-gazebo-plugins-2.0.0_new/CMakeLists.txt 2023-11-20 21:00:43.000000000 +0800
+@@ -25,6 +25,14 @@
+ return()
+ endif()
+
++find_package(PkgConfig REQUIRED)
++pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET libavcodec)
++
++include_directories(
++ include
++ ${FFMPEG_INCLUDE_DIRS}
++)
++
+ link_directories(${gazebo_dev_LIBRARY_DIRS})
+
+ # Add libraries