Comment 6 for bug 311188

Revision history for this message
Gijs Molenaar (gijzelaar) wrote :

I've successfully compiled the latest ffmpeg-debian package on ubuntu from:

http://git.debian.org/?p=pkg-multimedia/ffmpeg-debian.git

Which is 0.5 + some latest changes After creating and applying the attached patch for opencv I got opencv started compiling, but then I still get the img_convert() error.

 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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -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:121: warning: comparison between signed and unsigned integer expressions
cvcap_ffmpeg.cpp: In function ‘const IplImage* icvRetrieveFrameAVI_FFMPEG(CvCaptureAVI_FFMPEG*)’:
cvcap_ffmpeg.cpp:222: error: ‘img_convert’ was not declared in this scope
cvcap_ffmpeg.cpp: In function ‘double icvGetPropertyAVI_FFMPEG(CvCaptureAVI_FFMPEG*, int)’:
cvcap_ffmpeg.cpp:248: error: ‘INT64_C’ was not declared in this scope
cvcap_ffmpeg.cpp:252: error: ‘INT64_C’ was not declared in this scope
cvcap_ffmpeg.cpp:256: error: ‘INT64_C’ was not declared in this scope
cvcap_ffmpeg.cpp: In function ‘CvVideoWriter* cvCreateVideoWriter(const char*, int, double, CvSize, int)’:
cvcap_ffmpeg.cpp:533: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:873)
cvcap_ffmpeg.cpp:533: warning: ‘AVFormatContext* av_alloc_format_context()’ is deprecated (declared at /usr/include/libavformat/avformat.h:873)
cvcap_ffmpeg.cpp: In function ‘int cvWriteFrame(CvVideoWriter*, const IplImage*)’:
cvcap_ffmpeg.cpp:718: error: ‘img_convert’ was not declared in this scope
cvcap_ffmpeg.cpp: In function ‘void cvReleaseVideoWriter(CvVideoWriter**)’:
cvcap_ffmpeg.cpp:777: warning: comparison between signed and unsigned integer expressions
make[4]: *** [cvcap_ffmpeg.lo] Error 1
make[4]: Leaving directory `/home/gijs/Work/packaging/opencv-1.0.0/otherlibs/highgui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/gijs/Work/packaging/opencv-1.0.0/otherlibs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gijs/Work/packaging/opencv-1.0.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/gijs/Work/packaging/opencv-1.0.0'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2