mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ros/gazebo_plugins: fix build with opencv4
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
This commit is contained in:
17
dev-ros/gazebo_plugins/files/ocv4.patch
Normal file
17
dev-ros/gazebo_plugins/files/ocv4.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
Index: gazebo_plugins/src/gazebo_ros_prosilica.cpp
|
||||
===================================================================
|
||||
--- gazebo_plugins.orig/src/gazebo_ros_prosilica.cpp
|
||||
+++ gazebo_plugins/src/gazebo_ros_prosilica.cpp
|
||||
@@ -44,10 +44,8 @@
|
||||
#include <diagnostic_updater/diagnostic_updater.h>
|
||||
#include <sensor_msgs/RegionOfInterest.h>
|
||||
|
||||
-#include <opencv/cv.h>
|
||||
-#include <opencv/highgui.h>
|
||||
-
|
||||
-#include <opencv/cvwimage.h>
|
||||
+#include <opencv2/core/core_c.h>
|
||||
+#include <opencv2/highgui/highgui_c.h>
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
@@ -51,3 +51,4 @@ RDEPEND="
|
||||
dev-ros/roslib[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
PATCHES=( "${FILESDIR}/ocv4.patch" )
|
||||
|
||||
Reference in New Issue
Block a user