Bug#748367: visp: FTBFS with libav10

Sebastian Ramacher sramacher at debian.org
Sat May 17 20:16:35 UTC 2014


Control: tags -1 + patch

On 2014-05-16 17:18:30, Sebastian Ramacher wrote:
> visp fails to build against libav10:
> | cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/src && /usr/lib/ccache/c++   -DBOOST_ALL_NO_LIB -DUNIX -Dvisp_EXPORTS -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -Wall -Wextra -fvisibility=hidden -fopenmp -isystem /usr/include/gtk-2.0 -fPIC -I/usr/include/opencv -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/include -I/usr/include/OGRE -I/usr/include/ois -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0    -o CMakeFiles/visp.dir/visual-feature/vpFeatureDisplay.cpp.o -c /«PKGBUILDDIR»/src/visual-feature/vpFeatureDisplay.cpp
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp: In member function 'bool vpFFMPEG::openStream(const char*, vpFFMPEG::vpFFMPEGColorType)':
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:144:56: error: 'AVStream' has no member named 'r_frame_rate'
> |        std::cout << "rate: " << pFormatCtx->streams[i]->r_frame_rate.num << " " << pFormatCtx->streams[i]->r_frame_rate.den << std::endl;
> |                                                         ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:144:107: error: 'AVStream' has no member named 'r_frame_rate'
> |        std::cout << "rate: " << pFormatCtx->streams[i]->r_frame_rate.num << " " << pFormatCtx->streams[i]->r_frame_rate.den << std::endl;
> |                                                                                                            ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:145:50: error: 'AVStream' has no member named 'r_frame_rate'
> |        framerate_stream =  pFormatCtx->streams[i]->r_frame_rate.num;
> |                                                   ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:146:51: error: 'AVStream' has no member named 'r_frame_rate'
> |        framerate_stream /= pFormatCtx->streams[i]->r_frame_rate.den;
> |                                                    ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:173:14: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |      pFrame = avcodec_alloc_frame();
> |               ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:173:34: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |      pFrame = avcodec_alloc_frame();
> |                                   ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:177:17: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |        pFrameRGB=avcodec_alloc_frame();
> |                  ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:177:37: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |        pFrameRGB=avcodec_alloc_frame();
> |                                      ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:187:18: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |        pFrameGRAY=avcodec_alloc_frame();
> |                   ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:187:38: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |        pFrameGRAY=avcodec_alloc_frame();
> |                                       ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp: In member function 'bool vpFFMPEG::openEncoder(const char*, unsigned int, unsigned int, AVCodecID)':
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:678:12: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |    pFrame = avcodec_alloc_frame();
> |             ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:678:32: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |    pFrame = avcodec_alloc_frame();
> |                                 ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:679:15: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |    pFrameRGB = avcodec_alloc_frame();
> |                ^
> | /«PKGBUILDDIR»/src/video/vpFFMPEG.cpp:679:35: warning: 'AVFrame* avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
> |    pFrameRGB = avcodec_alloc_frame();
> |                                    ^
> | make[3]: *** [src/CMakeFiles/visp.dir/video/vpFFMPEG.cpp.o] Error 1

The attached patch should be enough to fix this issue.

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visp.patch
Type: text/x-diff
Size: 2244 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20140517/186ee046/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20140517/186ee046/attachment.sig>


More information about the debian-science-maintainers mailing list