package libhighgui1
tags 518916 + patch
thanks

Hi,
this is a patch that should fix it, but it no longer builds because of #487638.

Thanks,
Ludovico
Index: opencv-1.0.0/configure.in
===================================================================
--- opencv-1.0.0.orig/configure.in	2009-04-30 14:45:49.000000000 -0700
+++ opencv-1.0.0/configure.in	2009-04-30 14:45:49.000000000 -0700
@@ -448,6 +448,15 @@
                                                       FFMPEGLIBS="`pkg-config --libs libavcodec libavformat`"
                                                     ],
                         [ have_ffmpeg=no ])
+        if test x"$have_ffmpeg" = "xno"; then
+            AC_CHECK_HEADER(libavcodec/avcodec.h,
+                                                        [
+                                                          have_ffmpeg=yes
+                                                          AC_DEFINE(HAVE_FFMPEG,,[FFMpeg video library])
+                                                          FFMPEGLIBS="`pkg-config --libs libavcodec libavformat`"
+                                                        ],
+                            [ have_ffmpeg=no ])
+        fi
     else
         # if we get here then --with-ffmpeg was not called with 'yes','no' or 'auto'
         AC_MSG_WARN([unexpected arguments for option --with-ffmpeg, continuing assuming 'no'])
Index: opencv-1.0.0/otherlibs/highgui/cvcap_ffmpeg.cpp
===================================================================
--- opencv-1.0.0.orig/otherlibs/highgui/cvcap_ffmpeg.cpp	2009-04-30 14:50:12.000000000 -0700
+++ opencv-1.0.0/otherlibs/highgui/cvcap_ffmpeg.cpp	2009-04-30 14:52:23.000000000 -0700
@@ -43,7 +43,7 @@
 
 
 extern "C" {
-#include <ffmpeg/avformat.h>
+#include <libavformat/avformat.h>
 }
 
 #ifdef NDEBUG

Reply via email to