Merge lp:~gal-fourier/ubuntu/natty/opencv/bug-756154 into lp:ubuntu/natty/opencv

Proposed by Gal Shalif
Status: Rejected
Rejected by: James Westby
Proposed branch: lp:~gal-fourier/ubuntu/natty/opencv/bug-756154
Merge into: lp:ubuntu/natty/opencv
Diff against target: 257 lines (+215/-1)
6 files modified
debian/changelog (+14/-0)
debian/control (+1/-1)
debian/patches/cvcap_ffmpeg_fix_compile_against_libav0.7.patch (+120/-0)
debian/patches/series (+4/-0)
debian/patches/ubuntu11.04_no_videodev.h_include_file.patch (+56/-0)
debian/patches/ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch (+20/-0)
To merge this branch: bzr merge lp:~gal-fourier/ubuntu/natty/opencv/bug-756154
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Chris Coulson Pending
Review via email: mp+68171@code.launchpad.net

This proposal supersedes a proposal from 2011-07-07.

Description of the change

Ubuntu 11.10 Oneiric fix of compilation error of opencv-2.1.0 when compiled against the (new) ffmpeg package libav-0.7:

Fix changes as requested by reviewer Chris Coulson (community) at https://code.launchpad.net/~gal-fourier/ubuntu/natty/opencv/bug-756154/+merge/67179 :

Chris Coulson wrote on 2011-07-11

Hi,

Thanks for your work. I have a few comments though:

1) "unstable" isn't a valid target for Ubuntu. This should be targetted to "oneiric" instead.
2) You can collapse the 2 changelog entries in to 1, as 2.1.0-3ubuntu2 has never been uploaded
3) Please wrap changelog entries to around 80 characters. The current changelog entries trigger this lintian warning: http://lintian.debian.org/tags/debian-changelog-line-too-long.html
4) In cvcap_ffmpeg_fix_compile_against_libav0.7.patch, you use 2 different values when checking LIBAVFORMAT_BUILD. Is this deliberate? Eg, in these 2 hunks:

@@ -514,6 +514,24 @@
 }

+#if LIBAVFORMAT_BUILD >= (53<<16 | 0<<8 | 0) /* As defined when compiled against libav-0.7 from Ubuntu 11.10 Oneiric */
+/* Gal Shalif: temporary add a backward compatible function - till OpenCV is properly ported to compile against ffmpeg 0.7 */
+/* Gal Shalif: code is copy from Ubuntu 11.04 Natty libav-0.6.2/libavcodec/utils.c */
+int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
+ int *got_picture_ptr,
+ uint8_t *buf, int buf_size)
+{
+ AVPacket avpkt;
+ av_init_packet(&avpkt);
+ avpkt.data = buf;
+ avpkt.size = buf_size;
+ // HACK for CorePNG to decode as normal PNG by default
+ avpkt.flags = AV_PKT_FLAG_KEY;
+
+ return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt);
+}
+#endif /* LIBAVFORMAT_BUILD >= (53<<16 | 0<<8 | 0) */
+
 bool CvCapture_FFMPEG::grabFrame()
 {
     bool valid = false;
@@ -795,6 +813,17 @@
 #endif
 };

+#if LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) /* As defined when compiled against libav-0.7 from Ubuntu 11.10 Oneiric */
+/* Gal Shalif: temporary add a backward compatible define - till OpenCV is properly ported to compile against ffmpeg 0.7 */
+
+/* Gal Shalif: code is copy from Ubuntu 11.04 Natty libav-0.6.2/libavutil/error.h and is enclosed within LIBAVUTIL_VERSION_MAJOR < 51 ... #endif */
+#define AVERROR_NUMEXPECTED AVERROR(EDOM) ///< Number syntax expected in filename
+#define AVERROR_NOFMT AVERROR(EILSEQ) ///< Unknown format
+#define AVERROR_IO AVERROR(EIO) ///< I/O error
+#define AVERROR_NOMEM AVERROR(ENOMEM) ///< Not enough memory
+
+#endif /* LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) */
+
 static const char * icvFFMPEGErrStr(int err)
 {
     switch(err) {

Reply
review: Needs Fixing

To post a comment you must log in.
Revision history for this message
Chris Coulson (chrisccoulson) wrote : Posted in a previous version of this proposal

Hi,

Thanks for your work. I have a few comments though:

1) "unstable" isn't a valid target for Ubuntu. This should be targetted to "oneiric" instead.
2) You can collapse the 2 changelog entries in to 1, as 2.1.0-3ubuntu2 has never been uploaded
3) Please wrap changelog entries to around 80 characters. The current changelog entries trigger this lintian warning: http://lintian.debian.org/tags/debian-changelog-line-too-long.html
4) In cvcap_ffmpeg_fix_compile_against_libav0.7.patch, you use 2 different values when checking LIBAVFORMAT_BUILD. Is this deliberate? Eg, in these 2 hunks:

@@ -514,6 +514,24 @@
 }

+#if LIBAVFORMAT_BUILD >= (53<<16 | 0<<8 | 0) /* As defined when compiled against libav-0.7 from Ubuntu 11.10 Oneiric */
+/* Gal Shalif: temporary add a backward compatible function - till OpenCV is properly ported to compile against ffmpeg 0.7 */
+/* Gal Shalif: code is copy from Ubuntu 11.04 Natty libav-0.6.2/libavcodec/utils.c */
+int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
+ int *got_picture_ptr,
+ uint8_t *buf, int buf_size)
+{
+ AVPacket avpkt;
+ av_init_packet(&avpkt);
+ avpkt.data = buf;
+ avpkt.size = buf_size;
+ // HACK for CorePNG to decode as normal PNG by default
+ avpkt.flags = AV_PKT_FLAG_KEY;
+
+ return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt);
+}
+#endif /* LIBAVFORMAT_BUILD >= (53<<16 | 0<<8 | 0) */
+
 bool CvCapture_FFMPEG::grabFrame()
 {
     bool valid = false;
@@ -795,6 +813,17 @@
 #endif
 };

+#if LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) /* As defined when compiled against libav-0.7 from Ubuntu 11.10 Oneiric */
+/* Gal Shalif: temporary add a backward compatible define - till OpenCV is properly ported to compile against ffmpeg 0.7 */
+
+/* Gal Shalif: code is copy from Ubuntu 11.04 Natty libav-0.6.2/libavutil/error.h and is enclosed within LIBAVUTIL_VERSION_MAJOR < 51 ... #endif */
+#define AVERROR_NUMEXPECTED AVERROR(EDOM) ///< Number syntax expected in filename
+#define AVERROR_NOFMT AVERROR(EILSEQ) ///< Unknown format
+#define AVERROR_IO AVERROR(EIO) ///< I/O error
+#define AVERROR_NOMEM AVERROR(ENOMEM) ///< Not enough memory
+
+#endif /* LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) */
+
 static const char * icvFFMPEGErrStr(int err)
 {
     switch(err) {

review: Needs Fixing
Revision history for this message
Gal Shalif (gal-fourier) wrote : Posted in a previous version of this proposal
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your work on this. It seems that with https://launchpad.net/ubuntu/+source/opencv/2.1.0-7 in Oneiric this upload is not necessary any more, as all the bugs are fixed already. Thanks again!

Revision history for this message
Daniel Holbach (dholbach) wrote :

Hello Gal,

Am 18.08.2011 16:00, schrieb Gal Shalif:
> Thanks for the update.
>
>> ... with https://launchpad.net/ubuntu/+source/opencv/2.1.0-7 in
> Oneiric ...
> The upload above is mostly an integration of my patch :-)

Great work! :-)

Have a great day,
 Daniel

--
Ubuntu Global Jam: 2nd-4th September 2011
https://wiki.ubuntu.com/UbuntuGlobalJam

Unmerged revisions

23. By Gal Shalif

* Add patch ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch:
  + fix build error on Ubuntu 11.10 Oneiric (LP: #791527):
* Add cvcap_ffmpeg_fix_compile_against_libav0.7.patch:
  fix compilation errors when compiled against libav-0.7
  (as applicable for Ubuntu 11.10 Oneiric) (LP: 756154)
* Add patch ubuntu11.04_no_videodev.h_include_file.patch:
  fix build error on Ubuntu 11.04 Natty (LP: #756154):
  - Backport the upstream 2.2 changeset to void the use of the obsolete V4L1
    (i.e. do not use the obsolete linux/videodev.h)

22. By Gal Shalif

Add cvcap_ffmpeg_fix_compile_against_libav0.7.patch - fix compilation errors when compiled against libav-0.7 (as applicable for Ubuntu 11.10 Oneiric) (LP: 756154)

21. By Gal Shalif

Add patch ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch - fix build error on Ubuntu 11.10 Oneiric (LP: #791527):

20. By Gal Shalif

* Add patch ubuntu11.04_no_videodev.h_include_file.patch - fix build error on Ubuntu 11.04 Natty (LP: #756154):
  - Backport the upstream 2.2 changeset to void the use of the obsolete V4L1 (linux/videodev.h)

19. By Gal Shalif

add a forgoten patch file

18. By Gal Shalif

add a forgoten patch file

17. By Gal Shalif

* Use libv4l1-videodev.h (from libv4l-dev) as a replacement for the obsolete linux/videodev.h on Ubuntu 11.04
  - Add libv4l-dev to build dependencies
  - ubuntu11.04_no_videodev.h_include_file.patch: modify src/highgui/cvcap_libv4l.cpp, src/highgui/cvcap_v4l.cpp

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-12-14 14:34:19 +0000
+++ debian/changelog 2011-07-17 13:48:35 +0000
@@ -1,3 +1,17 @@
1opencv (2.1.0-3ubuntu2) oneiric; urgency=low
2
3 * Add patch ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch:
4 + fix build error on Ubuntu 11.10 Oneiric (LP: #791527):
5 * Add cvcap_ffmpeg_fix_compile_against_libav0.7.patch:
6 fix compilation errors when compiled against libav-0.7
7 (as applicable for Ubuntu 11.10 Oneiric) (LP: 756154)
8 * Add patch ubuntu11.04_no_videodev.h_include_file.patch:
9 fix build error on Ubuntu 11.04 Natty (LP: #756154):
10 - Backport the upstream 2.2 changeset to void the use of the obsolete V4L1
11 (i.e. do not use the obsolete linux/videodev.h)
12
13 -- Gal Shalif (Work at Fourier Systems) <gal_fourier@shalif.com> Sun, 17 Jul 2011 11:00:00 +0300
14
1opencv (2.1.0-3ubuntu1) natty; urgency=low15opencv (2.1.0-3ubuntu1) natty; urgency=low
216
3 * Adjust hack to re-included stdint.h for GCC-4.5. LP: #685500.17 * Adjust hack to re-included stdint.h for GCC-4.5. LP: #685500.
418
=== modified file 'debian/control'
--- debian/control 2010-08-25 01:49:14 +0000
+++ debian/control 2011-07-17 13:48:35 +0000
@@ -4,7 +4,7 @@
4Maintainer: Debian Scientific Computing Team <pkg-scicomp-devel@lists.alioth.debian.org>4Maintainer: Debian Scientific Computing Team <pkg-scicomp-devel@lists.alioth.debian.org>
5Uploaders: Sam Hocevar (Debian packages) <sam+deb@zoy.org>, Nobuhiro Iwamatsu <iwamatsu@debian.org>5Uploaders: Sam Hocevar (Debian packages) <sam+deb@zoy.org>, Nobuhiro Iwamatsu <iwamatsu@debian.org>
6Build-Depends: debhelper (>= 7.0.50~), quilt (>= 0.46-7~), cmake,6Build-Depends: debhelper (>= 7.0.50~), quilt (>= 0.46-7~), cmake,
7 libavcodec-dev (>= 0.svn20080206), libavformat-dev, libswscale-dev, libgtk2.0-dev,7 libavcodec-dev (>= 0.svn20080206), libavformat-dev, libswscale-dev, libgtk2.0-dev, libv4l-dev,
8 libjasper-dev, libjpeg62-dev, libpng12-dev, libtiff4-dev,8 libjasper-dev, libjpeg62-dev, libpng12-dev, libtiff4-dev,
9 libraw1394-dev [!kfreebsd-amd64 !kfreebsd-i386 !hurd-i386],9 libraw1394-dev [!kfreebsd-amd64 !kfreebsd-i386 !hurd-i386],
10 libdc1394-22-dev [!kfreebsd-amd64 !kfreebsd-i386 !hurd-i386],10 libdc1394-22-dev [!kfreebsd-amd64 !kfreebsd-i386 !hurd-i386],
1111
=== added file 'debian/patches/cvcap_ffmpeg_fix_compile_against_libav0.7.patch'
--- debian/patches/cvcap_ffmpeg_fix_compile_against_libav0.7.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/cvcap_ffmpeg_fix_compile_against_libav0.7.patch 2011-07-17 13:48:35 +0000
@@ -0,0 +1,120 @@
1Author: Gal Shalif <gal@fourier-sys.com>
2Debian BTS: N/A
3Bug-Ubuntu: https://launchpad.net/bugs/756154
4Description: Fix opencv-2.1.0 compilation errors when copiled with libav-0.7 (a.k.a. ffmpeg 0.7) - as applicable for Ubuntu 11.10 Oneiric
5 Note: Ubuntu 11.04 Natty use libav-0.6.2 with:
6 #define LIBAVCODEC_VERSION_MAJOR 52
7 #define LIBAVUTIL_VERSION_MAJOR 50
8 #define LIBAVFORMAT_BUILD (52<<16 | 64<<8 | 2)
9 Note: Ubuntu 11.10 Oneiric use libav-0.7 with:
10 #define LIBAVCODEC_VERSION_MAJOR 53
11 #define LIBAVUTIL_VERSION_MAJOR 51
12 #define LIBAVFORMAT_BUILD (53<<16 | 2<<8 | 0)
13--- a/src/highgui/cvcap_ffmpeg.cpp 2011-07-06 12:44:09.585566733 +0300
14+++ b/src/highgui/cvcap_ffmpeg.cpp 2011-07-06 13:09:43.261010471 +0300
15@@ -464,7 +464,7 @@
16 AVCodecContext *enc = &ic->streams[i]->codec;
17 #endif
18
19- if( CODEC_TYPE_VIDEO == enc->codec_type && video_stream < 0) {
20+ if( AVMEDIA_TYPE_VIDEO == enc->codec_type && video_stream < 0) {
21 AVCodec *codec = avcodec_find_decoder(enc->codec_id);
22 if (!codec ||
23 avcodec_open(enc, codec) < 0)
24@@ -514,6 +514,24 @@
25 }
26
27
28+#if LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) /* As defined when compiled against libav-0.7 from Ubuntu 11.10 Oneiric */
29+/* Gal Shalif: temporary add a backward compatible function - till OpenCV is properly ported to compile against ffmpeg 0.7 */
30+/* Gal Shalif: code is copy from Ubuntu 11.04 Natty libav-0.6.2/libavcodec/utils.c */
31+int avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
32+ int *got_picture_ptr,
33+ uint8_t *buf, int buf_size)
34+{
35+ AVPacket avpkt;
36+ av_init_packet(&avpkt);
37+ avpkt.data = buf;
38+ avpkt.size = buf_size;
39+ // HACK for CorePNG to decode as normal PNG by default
40+ avpkt.flags = AV_PKT_FLAG_KEY;
41+
42+ return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt);
43+}
44+#endif /* LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) */
45+
46 bool CvCapture_FFMPEG::grabFrame()
47 {
48 bool valid = false;
49@@ -795,6 +813,17 @@
50 #endif
51 };
52
53+#if LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) /* As defined when compiled against libav-0.7 from Ubuntu 11.10 Oneiric */
54+/* Gal Shalif: temporary add a backward compatible define - till OpenCV is properly ported to compile against ffmpeg 0.7 */
55+
56+/* Gal Shalif: code is copy from Ubuntu 11.04 Natty libav-0.6.2/libavutil/error.h and is enclosed within LIBAVUTIL_VERSION_MAJOR < 51 ... #endif */
57+#define AVERROR_NUMEXPECTED AVERROR(EDOM) ///< Number syntax expected in filename
58+#define AVERROR_NOFMT AVERROR(EILSEQ) ///< Unknown format
59+#define AVERROR_IO AVERROR(EIO) ///< I/O error
60+#define AVERROR_NOMEM AVERROR(ENOMEM) ///< Not enough memory
61+
62+#endif /* LIBAVFORMAT_BUILD >= (53<<16 | 2<<8 | 0) */
63+
64 static const char * icvFFMPEGErrStr(int err)
65 {
66 switch(err) {
67@@ -891,7 +920,7 @@
68 #endif
69
70 #if LIBAVFORMAT_BUILD > 4621
71- c->codec_id = av_guess_codec(oc->oformat, NULL, oc->filename, NULL, CODEC_TYPE_VIDEO);
72+ c->codec_id = av_guess_codec(oc->oformat, NULL, oc->filename, NULL, AVMEDIA_TYPE_VIDEO);
73 #else
74 c->codec_id = oc->oformat->video_codec;
75 #endif
76@@ -903,7 +932,7 @@
77 //if(codec_tag) c->codec_tag=codec_tag;
78 codec = avcodec_find_encoder(c->codec_id);
79
80- c->codec_type = CODEC_TYPE_VIDEO;
81+ c->codec_type = AVMEDIA_TYPE_VIDEO;
82
83 /* put sample parameters */
84 c->bit_rate = bitrate;
85@@ -990,7 +1019,7 @@
86 AVPacket pkt;
87 av_init_packet(&pkt);
88
89- pkt.flags |= PKT_FLAG_KEY;
90+ pkt.flags |= AV_PKT_FLAG_KEY;
91 pkt.stream_index= video_st->index;
92 pkt.data= (uint8_t *)picture;
93 pkt.size= sizeof(AVPicture);
94@@ -1010,7 +1039,7 @@
95 pkt.pts = c->coded_frame->pts;
96 #endif
97 if(c->coded_frame->key_frame)
98- pkt.flags |= PKT_FLAG_KEY;
99+ pkt.flags |= AV_PKT_FLAG_KEY;
100 pkt.stream_index= video_st->index;
101 pkt.data= outbuf;
102 pkt.size= out_size;
103@@ -1210,7 +1239,7 @@
104 av_register_all ();
105
106 /* auto detect the output format from the name and fourcc code. */
107- fmt = guess_format(NULL, filename, NULL);
108+ fmt = av_guess_format(NULL, filename, NULL);
109 if (!fmt)
110 return false;
111
112@@ -1233,7 +1262,7 @@
113 #endif
114
115 // alloc memory for context
116- oc = av_alloc_format_context();
117+ oc = avformat_alloc_context();
118 assert (oc);
119
120 /* set file name */
0121
=== modified file 'debian/patches/series'
--- debian/patches/series 2010-12-14 14:34:19 +0000
+++ debian/patches/series 2011-07-17 13:48:35 +0000
@@ -6,3 +6,7 @@
6hurd.patch6hurd.patch
7fix_minor_version_python.patch7fix_minor_version_python.patch
8fix_stdint_gcc45.patch8fix_stdint_gcc45.patch
9ubuntu11.04_no_videodev.h_include_file.patch
10ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch
11cvcap_ffmpeg_fix_compile_against_libav0.7.patch
12
913
=== added file 'debian/patches/ubuntu11.04_no_videodev.h_include_file.patch'
--- debian/patches/ubuntu11.04_no_videodev.h_include_file.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/ubuntu11.04_no_videodev.h_include_file.patch 2011-07-17 13:48:35 +0000
@@ -0,0 +1,56 @@
1Author: Gal Shalif <gal@fourier-sys.com>
2Debian BTS: N/A
3Bug-Ubuntu: https://launchpad.net/bugs/756154
4Description: Disable the use of V4L1 (do not require the obsolete linux/videodev.h file) to fix link error for Ubuntu 11.04 Natty
5 Fix bug by a backport of upstream changeset 5206 from https://code.ros.org/trac/opencv/changeset/5206
6 Update src/highgui/cvcap_libv4l.cpp with V4L2 support from upstream https://code.ros.org/trac/opencv/changeset/5206/branches/2.2/opencv/modules/highgui/src/cap_libv4l.cpp
7Forwarded: yes/no/not-needed
8Reviewed-by: Martin Pitt <martin.pitt@ubuntu.com>
9Last-Update: 2011-05-31
10--- a/cvconfig.h.cmake 2010-04-06 04:24:37.000000000 +0300
11+++ b/cvconfig.h.cmake 2011-05-31 10:44:35.090386901 +0300
12@@ -19,6 +19,9 @@
13 /* V4L2 capturing support */
14 #cmakedefine HAVE_CAMV4L2
15
16+/* V4L/V4L2 capturing support via libv4l */
17+#cmakedefine HAVE_LIBV4L
18+
19 /* Carbon windowing environment */
20 #cmakedefine HAVE_CARBON
21
22--- a/src/highgui/cvcap.cpp 2011-05-31 10:42:11.615197876 +0300
23+++ b/src/highgui/cvcap.cpp 2011-05-31 10:49:10.376986822 +0300
24@@ -161,7 +161,7 @@
25 if (capture)
26 return capture;
27 #endif
28- #if defined (HAVE_CAMV4L) || defined (HAVE_CAMV4L2)
29+ #if defined HAVE_LIBV4L || (defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2))
30 capture = cvCreateCameraCapture_V4L (index);
31 if (capture)
32 return capture;
33--- a/src/highgui/cvcap_libv4l.cpp 2010-04-06 04:24:44.000000000 +0300
34+++ b/src/highgui/cvcap_libv4l.cpp 2011-05-31 18:21:36.397699498 +0300
35@@ -202,7 +202,7 @@
36
37 #include "_highgui.h"
38
39-#if !defined WIN32 && defined HAVE_CAMV4L && defined HAVE_CAMV4L2
40+#if !defined WIN32 && defined HAVE_LIBV4L
41
42 #define CLEAR(x) memset (&(x), 0, sizeof (x))
43
44@@ -219,8 +219,12 @@
45 #include <sys/stat.h>
46 #include <sys/ioctl.h>
47
48+#ifdef HAVE_CAMV4L
49 #include <linux/videodev.h>
50+#endif
51+#ifdef HAVE_CAMV4L2
52 #include <linux/videodev2.h>
53+#endif
54
55 #include <libv4l1.h>
56 #include <libv4l2.h>
057
=== added file 'debian/patches/ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch'
--- debian/patches/ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/ubuntu11.10_oneiric_fix_compilation_error_with_gcc4.6.patch 2011-07-17 13:48:35 +0000
@@ -0,0 +1,20 @@
1Author: Gal Shalif <gal@fourier-sys.com>
2Debian BTS: N/A
3Bug-Ubuntu: https://launchpad.net/bugs/791527
4Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624917
5Description: Add the missing definition of typedef ptrdiff_t
6 Fix bug that had first manifest with Ubuntu 11.10 Oneiric with gcc 4.6 - but is not required for the older Ubuntu 11.04 Natty with gcc 4.5)
7Forwarded: yes/no/not-needed
8Reviewed-by: TBD
9Last-Update: 2011-06-21
10--- a/include/opencv/cxcore.h 2010-04-06 04:24:40.000000000 +0300
11+++ b/include/opencv/cxcore.h 2011-06-21 14:08:01.129192382 +0300
12@@ -44,6 +44,8 @@
13 #ifndef __OPENCV_CORE_H__
14 #define __OPENCV_CORE_H__
15
16+#include <stddef.h> /* Fix Ubuntu bug # 791527 - see https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/791527 */
17+
18 #ifdef __IPL_H__
19 #define HAVE_IPL
20 #endif

Subscribers

People subscribed via source and target branches

to all changes: