- Build with gstreamer support - #491223

- Backport gcc43 fix from trunk
This commit is contained in:
Nicolas Chauvet 2009-07-16 10:56:36 +00:00
parent 4876d6b9c3
commit 1d19ad6ae4
2 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,40 @@
diff -up opencv-1.1.0/otherlibs/highgui/cvcap_xine.cpp.gcc43 opencv-1.1.0/otherlibs/highgui/cvcap_xine.cpp
--- opencv-1.1.0/otherlibs/highgui/cvcap_xine.cpp.gcc43 2008-05-03 20:20:57.000000000 +0200
+++ opencv-1.1.0/otherlibs/highgui/cvcap_xine.cpp 2009-07-16 12:30:58.000000000 +0200
@@ -784,7 +784,7 @@ public:
CvCaptureAVI_XINE_CPP() { captureXINE = 0; }
virtual ~CvCaptureAVI_XINE_CPP() { close(); }
- virtual bool open( int index );
+ virtual bool open( const char* filename );
virtual void close();
virtual double getProperty(int);
@@ -796,10 +796,10 @@ protected:
CvCaptureAVI_XINE* captureXINE;
};
-bool CvCaptureAVI_XINE_CPP::open( int index )
+bool CvCaptureAVI_XINE_CPP::open( const char* filename )
{
close();
- captureXINE = icvCaptureFromFile_XINE(index);
+ captureXINE = icvCaptureFromFile_XINE(filename);
return captureXINE != 0;
}
@@ -832,11 +832,11 @@
return captureXINE ? icvSetPropertyAVI_XINE( captureXINE, propId, value ) != 0 : false;
}
-CvCapture* cvCreateCameraCapture_XINE( int index )
+CvCapture* cvCreateFileCapture_XINE(const char* filename)
{
CvCaptureAVI_XINE_CPP* capture = new CvCaptureAVI_XINE_CPP;
- if( capture->open( index ))
+ if( capture->open(filename))
return capture;
delete capture;

View File

@ -3,7 +3,7 @@
Name: opencv Name: opencv
Version: 1.1.0 Version: 1.1.0
Release: 0.2.pre1%{?dist} Release: 0.3.pre1%{?dist}
Summary: Collection of algorithms for computer vision Summary: Collection of algorithms for computer vision
Group: Development/Libraries Group: Development/Libraries
@ -17,6 +17,7 @@ Patch1: opencv-1.1-nooptim.patch
Patch2: opencv-1.1.0-pythondir.diff Patch2: opencv-1.1.0-pythondir.diff
Patch3: opencv-1.1.0-conflicts.patch Patch3: opencv-1.1.0-conflicts.patch
Patch4: opencv-1.1pre1-automake.patch Patch4: opencv-1.1pre1-automake.patch
Patch5: opencv-1.1pre1-backport_gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool BuildRequires: libtool
@ -31,6 +32,8 @@ BuildRequires: swig >= 1.3.24, zlib-devel, pkgconfig
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-imaging, numpy BuildRequires: python-imaging, numpy
%{?_with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9} %{?_with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9}
%{!?_without_gstreamer:BuildRequires: gstreamer-devel}
%{?_with_xine:BuildRequires: xine-lib-devel}
%description %description
@ -70,6 +73,7 @@ This package contains Python bindings for the OpenCV library.
#autotools conflicts between AC_CONFIG_MACRO_DIR and AM_FLAGS #autotools conflicts between AC_CONFIG_MACRO_DIR and AM_FLAGS
%patch3 -p1 -b .conflicts %patch3 -p1 -b .conflicts
%patch4 -p1 -b .automake %patch4 -p1 -b .automake
%patch5 -p1 -b .gcc43
#Renew the autotools (and remove rpath). #Renew the autotools (and remove rpath).
@ -78,6 +82,9 @@ autoreconf -vif
%build %build
export SWIG_PYTHON_LIBS=%{_libdir} export SWIG_PYTHON_LIBS=%{_libdir}
%configure --disable-static --enable-apps \ %configure --disable-static --enable-apps \
%{?_with_ffmpeg:--with-ffmpeg}%{!?_with_ffmpeg:--without-ffmpeg} \
%{!?_without_gstreamer:--with-gstreamer} \
%{?_with_xine:--with-xine --without-quicktime} \
%ifarch i386 i586 %ifarch i386 i586
--disable-sse2 \ --disable-sse2 \
%endif %endif
@ -148,6 +155,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Jul 16 2009 kwizart < kwizart at gmail.com > - 1.1.0-0.3.pre1
- Build with gstreamer support - #491223
- Backport gcc43 fix from trunk
* Thu Jul 16 2009 kwizart < kwizart at gmail.com > - 1.1.0-0.2.pre1 * Thu Jul 16 2009 kwizart < kwizart at gmail.com > - 1.1.0-0.2.pre1
- Fix FTBFS #511705 - Fix FTBFS #511705