Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407945 - media-libs/opencv-2.3.1a-r1 fails to build with ffmpeg git: modules/highgui/src/cap_ffmpeg_impl.hpp:1299:20: error: ‘url_fclose’ was not declared in this scope
Summary: media-libs/opencv-2.3.1a-r1 fails to build with ffmpeg git: modules/highgui/...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 15:39 UTC by Anton Kochkov
Modified: 2012-05-25 20:58 UTC (History)
2 users (show)

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


Attachments
full build log (opencv-build.log,84.57 KB, text/plain)
2012-03-12 15:39 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2012-03-12 15:39:57 UTC
Created attachment 305017 [details]
full build log

In file included from /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvCapture_FFMPEG::close()’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:452:9: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1436) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:452:31: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1436) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::reopen()’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:484:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1436) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:484:27: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1436) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:487:52: error: ‘av_open_input_file’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:488:5: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1266) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:488:27: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1266) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:495:50: error: ‘avcodec_thread_init’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:498:5: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3719) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:498:28: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3719) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvCapture_FFMPEG::open(const char*)’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:525:63: error: ‘av_open_input_file’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:530:11: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1266) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:530:33: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1266) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:542:54: error: ‘avcodec_thread_init’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:551:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3719) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:551:36: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3719) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, CodecID, int, int, int, double, int)’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1000:7: warning: ‘AVStream* av_new_stream(AVFormatContext*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1460) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1000:26: warning: ‘AVStream* av_new_stream(AVFormatContext*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1460) [-Wdeprecated-declarations]
In file included from /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘int icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, uint8_t*, uint32_t, AVFrame*)’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1122:20: warning: ‘int avcodec_encode_video(AVCodecContext*, uint8_t*, int, const AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4039) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1122:72: warning: ‘int avcodec_encode_video(AVCodecContext*, uint8_t*, int, const AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4039) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvVideoWriter_FFMPEG::close()’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1299:20: error: ‘url_fclose’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1412:35: error: ‘av_set_parameters’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1416:35: error: ‘dump_format’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1443:15: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3719) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1443:36: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3719) [-Wdeprecated-declarations]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1480:42: error: ‘URL_WRONLY’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1480:52: error: ‘url_fopen’ was not declared in this scope
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/highgui/src/cap_ffmpeg_impl.hpp:1486:25: error: ‘av_write_header’ was not declared in this scope
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 40%] [32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_codebook.o
[0mcc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/video/src/motempl.cpp: In function ‘void cvUpdateMotionHistory(const void*, void*, double, double)’:
/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1/modules/video/src/motempl.cpp:64:9: warning: variable ‘mhi_step’ set but not used [-Wunused-but-set-variable]
[ 40%] [32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_gaussmix2.o
[0mcc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
[ 40%] [32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_acmmm2003.o
[0mcc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
[ 40%] [32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/camshift.o
[0mcc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
[ 40%] [32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowhs.o
[0m[ 41%] cc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
[32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowbm.o
[0mcc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
[ 41%] [ 41%] [32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/lkpyramid.o
[0m[32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/precomp.o
[0mcc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
cc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
[ 41%] [32mBuilding CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_gaussmix.o
[0mcc1plus: warning: /var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/opencv-2.3.1a_build/modules/video/precomp.hpp.gch/opencv_video_Release.gch: created and used with differing settings of '-mfpmath=' [enabled by default]
[31m[1mLinking CXX shared library ../../lib/libopencv_video.so
[0m[ 41%] Built target opencv_video
make: *** [all] Error 2
emake failed
 [31;01m*[0m ERROR: media-libs/opencv-2.3.1a-r1 failed (compile phase):
 [31;01m*[0m   Make failed!
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   85:  Called src_compile
 [31;01m*[0m   environment, line 5185:  Called cmake-utils_src_compile
 [31;01m*[0m   environment, line 1269:  Called _execute_optionaly 'src_compile'
 [31;01m*[0m   environment, line  401:  Called enable_cmake-utils_src_compile
 [31;01m*[0m   environment, line 1518:  Called cmake-utils_src_make
 [31;01m*[0m   environment, line 1288:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m           emake "$@" || die "Make failed!";
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =media-libs/opencv-2.3.1a-r1',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =media-libs/opencv-2.3.1a-r1'.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/media-libs/opencv-2.3.1a-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/media-libs/opencv-2.3.1a-r1/temp/environment'.
 [31;01m*[0m S: '/var/tmp/portage/media-libs/opencv-2.3.1a-r1/work/OpenCV-2.3.1'

installed ffmpeg-9999

emerge --info output: https://bugs.gentoo.org/attachment.cgi?id=304777
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-05-01 17:48:17 UTC
Does this still happen with current git head ffmpeg?