summaryrefslogtreecommitdiff
path: root/0-irobot-create-gazebo-plugins-fix-ffmpeg.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-03-08 12:08:49 +0000
committerCoprDistGit <infra@openeuler.org>2025-03-08 12:08:49 +0000
commitc3b72e85d9d764c21fea9f2f311dd2a2c168ead9 (patch)
treef17dba3165ee9ec5a9004954feceb45beced7b4b /0-irobot-create-gazebo-plugins-fix-ffmpeg.patch
parente888190860df9a4a64dbeecb9b3c05261a8eecda (diff)
automatic import of ros-humble-irobot-create-gazebo-pluginsopeneuler24.03_LTS
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