patch-opencv4.diff 1.2 KB

12345678910111213141516171819202122232425
  1. --- configure.ac.prev 2019-03-10 13:15:05.033000000 +1000
  2. +++ configure.ac 2019-03-10 13:19:03.840000000 +1000
  3. @@ -1848,7 +1848,7 @@
  4. dnl
  5. dnl OpenCV wrapper and example filters
  6. dnl
  7. -PKG_ENABLE_MODULES_VLC([OPENCV], [opencv_example opencv_wrapper], [opencv > 2.0], (OpenCV (computer vision) filter), [auto])
  8. +PKG_ENABLE_MODULES_VLC([OPENCV], [opencv_wrapper], [opencv4 > 4.0], (OpenCV (computer vision) filter), [auto])
  9. dnl
  10. --- modules/video_filter/Makefile.am.orig 2017-11-25 01:29:18.000000000 +1000
  11. +++ modules/video_filter/Makefile.am 2019-03-12 14:21:25.417000000 +1000
  12. @@ -147,8 +147,8 @@
  13. libdeinterlace_plugin_la_LIBADD = libdeinterlace_common.la
  14. video_filter_LTLIBRARIES += libdeinterlace_plugin.la
  15. -libopencv_wrapper_plugin_la_SOURCES = video_filter/opencv_wrapper.c
  16. -libopencv_wrapper_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(OPENCV_CFLAGS)
  17. +libopencv_wrapper_plugin_la_SOURCES = video_filter/opencv_wrapper.cpp
  18. +libopencv_wrapper_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(OPENCV_CFLAGS) -fpermissive
  19. libopencv_wrapper_plugin_la_LIBADD = $(OPENCV_LIBS)
  20. libopencv_wrapper_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(video_filterdir)'
  21. video_filter_LTLIBRARIES += $(LTLIBopencv_wrapper)