[Pkg-scicomp-devel] Bug#557551: opencv: building on lenny.

Mike Mestnik cheako at visi.com
Sun Nov 22 19:04:15 UTC 2009


Package: opencv
Version: 1.0.0-6.3
Severity: wishlist

g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../../cxcore/include
-I../../cv/include -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -D_REENTRANT -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/directfb -I/usr/include/libpng12
-I/usr/include/pixman-1 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DNDEBUG -fno-strict-aliasing -Wall -g
-fopenmp -O2 -g -MT cvcap_ffmpeg.lo -MD -MP -MF .deps/cvcap_ffmpeg.Tpo
-c cvcap_ffmpeg.cpp  -fPIC -DPIC -o .libs/cvcap_ffmpeg.o
cvcap_ffmpeg.cpp: In function 'int
icvOpenAVI_FFMPEG(CvCaptureAVI_FFMPEG*, const char*)':
cvcap_ffmpeg.cpp:131: warning: comparison between signed and unsigned
integer expressions
cvcap_ffmpeg.cpp: In function 'CvVideoWriter*
cvCreateVideoWriter(const char*, int, double, CvSize, int)':
cvcap_ffmpeg.cpp:546: error: 'avformat_alloc_context' was not declared
in this scope
cvcap_ffmpeg.cpp: In function 'void
cvReleaseVideoWriter(CvVideoWriter**)':
cvcap_ffmpeg.cpp:804: warning: comparison between signed and unsigned
integer expressions
make[4]: *** [cvcap_ffmpeg.lo] Error 1
make[4]: Leaving directory /root/src/opencv-1.0.0/otherlibs/highgui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory /root/src/opencv-1.0.0/otherlibs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /root/src/opencv-1.0.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory /root/src/opencv-1.0.0'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2


The includes here on my system are:
#include <ffmpeg/libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <ffmpeg/libswscale/swscale.h>

and not:
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>

libavformat-dev 3:20080706-0.3lenny1
libswscale-dev 3:20080706-0.3lenny1
libavformat-dev: /usr/include/ffmpeg/libavformat/avformat.h
libswscale-dev: /usr/include/ffmpeg/libswscale/swscale.h

Installing:
libavformat-dev 4:0.5+svn20090706-2+b1 [444kB]
libswscale-dev 4:0.5+svn20090706-2+b1 [111kB]

This worked, so erhaps the builddepends could be updated to include >
3:20080706-0.3lenny1?

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (800, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-bpo.2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-scicomp-devel mailing list