Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324259 - media-libs/opencv-2.0.0-r1 fails to build with >=media-video/ffmpeg-0.6
Summary: media-libs/opencv-2.0.0-r1 fails to build with >=media-video/ffmpeg-0.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-0.6
  Show dependency tree
 
Reported: 2010-06-16 11:25 UTC by Alexis Ballier
Modified: 2010-06-16 16:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2010-06-16 11:25:16 UTC
[ 72%] Building CXX object src/highgui/CMakeFiles/highgui.dir/cvcap_ffmpeg.o
cc1plus: warning: /var/tmp/portage/media-libs/opencv-2.0.0-r1/work/OpenCV-2.0.0_build/src/highgui/_highgui.h.gch/highgui_Gentoo.gch: not used because `NDEBUG' is defined
In file included from /usr/include/libavutil/avutil.h:81:0,
                 from /usr/include/libavcodec/avcodec.h:30,
                 from /usr/include/libavformat/avformat.h:56,
                 from /var/tmp/portage/media-libs/opencv-2.0.0-r1/work/OpenCV-2.0.0/src/highgui/cvcap_ffmpeg.cpp:97:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/include/libavutil/common.h:154:47: error: ‘UINT64_C’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.0.0-r1/work/OpenCV-2.0.0/src/highgui/cvcap_ffmpeg.cpp: In member function ‘virtual bool CvCapture_FFMPEG::grabFrame()’:
/var/tmp/portage/media-libs/opencv-2.0.0-r1/work/OpenCV-2.0.0/src/highgui/cvcap_ffmpeg.cpp:546:9: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3452)


easy fix:

append-flags -D__STDC_CONSTANT_MACROS

(UINT64_C isnt standard in C++ unless this macro is defined, and ffmpeg headers
require it)
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-06-16 16:37:01 UTC
+  16 Jun 2010; Samuli Suominen <ssuominen@gentoo.org>
+  opencv-2.0.0-r1.ebuild:
+  Fix building with FFmpeg >= 0.6 wrt #324259 by Alexis Ballier.