Date: Sat, 13 Oct 2007 23:52:58 -0700 (PDT) From: <soralx@cydem.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/117173: graphics/opencv does not compile if ffmpeg option is chosen Message-ID: <200710140652.l9E6qwmN036724@soralx.cydem.org> Resent-Message-ID: <200710140700.l9E702lt081117@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 117173 >Category: ports >Synopsis: graphics/opencv does not compile if ffmpeg option is chosen >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 14 07:00:02 UTC 2007 >Closed-Date: >Last-Modified: >Originator: <soralx@cydem.org> >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD soralx.cydem.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Oct 11 15:50:16 PDT 2007 root@:/usr/obj/usr/src/sys/SORALX i386 >Description: c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../../cxcore/include -I../../cv/include -D_REENTRANT -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -DNDEBUG -I/usr/local/include -I/usr/local/include/OpenEXR -I/usr/local/include -Wall -fno-rtti -pipe -O3 -fomit-frame-pointer -msse2 -mfpmath=sse,387 -O2 -march=nocona -pipe -I/usr/local/include/OpenEXR -I/usr/local/include -MT cvcap_ffmpeg.lo -MD -MP -MF .deps/cvcap_ffmpeg.Tpo -c cvcap_ffmpeg.cpp -fPIC -DPIC -o .libs/cvcap_ffmpeg.o In file included from /usr/local/include/ffmpeg/avformat.h:32, from cvcap_ffmpeg.cpp:46: /usr/local/include/ffmpeg/avcodec.h:2248: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2242) /usr/local/include/ffmpeg/avcodec.h:2258: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2242) 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:218: warning: `img_convert' is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2410) cvcap_ffmpeg.cpp:222: warning: `img_convert' is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2410) cvcap_ffmpeg.cpp: In function `double icvGetPropertyAVI_FFMPEG(CvCaptureAVI_FFMPEG*, int)': cvcap_ffmpeg.cpp:248: error: integer constant is too large for "long" type cvcap_ffmpeg.cpp:248: error: `INT64_C' was not declared in this scope cvcap_ffmpeg.cpp:248: warning: unused variable 'INT64_C' cvcap_ffmpeg.cpp:252: error: integer constant is too large for "long" type cvcap_ffmpeg.cpp:252: error: `INT64_C' was not declared in this scope cvcap_ffmpeg.cpp:252: warning: unused variable 'INT64_C' cvcap_ffmpeg.cpp:256: error: integer constant is too large for "long" type cvcap_ffmpeg.cpp:256: error: `INT64_C' was not declared in this scope cvcap_ffmpeg.cpp:256: error: integer constant is too large for "long" type cvcap_ffmpeg.cpp: In function `int cvWriteFrame(CvVideoWriter*, const IplImage*)': cvcap_ffmpeg.cpp:716: warning: `img_convert' is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2410) cvcap_ffmpeg.cpp:718: warning: `img_convert' is deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2410) cvcap_ffmpeg.cpp: In function `void cvReleaseVideoWriter(CvVideoWriter**)': cvcap_ffmpeg.cpp:777: warning: comparison between signed and unsigned integer expressions gmake[3]: *** [cvcap_ffmpeg.lo] Error 1 gmake[3]: Leaving directory `/usr/ports/graphics/opencv/work/opencv-1.0.0/otherlibs/highgui' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/graphics/opencv/work/opencv-1.0.0/otherlibs' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/graphics/opencv/work/opencv-1.0.0' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/graphics/opencv. *** Error code 1 Stop in /usr/ports/graphics/opencv. >How-To-Repeat: Set "FFMPEG" (Enable FFMPEG support), then `make` >Fix: Add to local/include/ffmpeg/avformat.h: #define INT64_C #define __STDC_CONSTANT_MACROS #include <stdint.h> This a is very ugly, temporary hack just to make it compile. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710140652.l9E6qwmN036724>