Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380681 - sci-libs/vtk-5.6.1 fails to build with libav
Summary: sci-libs/vtk-5.6.1 fails to build with libav
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-25 21:36 UTC by Tiziano Müller (RETIRED)
Modified: 2011-11-16 09:50 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 Tiziano Müller (RETIRED) gentoo-dev 2011-08-25 21:36:48 UTC
*snip*
[ 39%] Building CXX object Filtering/CMakeFiles/vtkFilteringPythonD.dir/vtkUnstructuredGridPython.cxx.o
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx: In member function 'int vtkFFMPEGWriterInternal::Start()':
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:126:56: error: 'guess_format' was not declared in this scope
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:153:19: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:182:7: warning: 'int av_set_parameters(AVFormatContext*, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1336) [-Wdeprecated-declarations]
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:182:52: warning: 'int av_set_parameters(AVFormatContext*, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1336) [-Wdeprecated-declarations]
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:248:7: warning: 'int url_fopen(AVIOContext**, const char*, int)' is deprecated (declared at /usr/include/libavformat/avio.h:278) [-Wdeprecated-declarations]
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:248:88: warning: 'int url_fopen(AVIOContext**, const char*, int)' is deprecated (declared at /usr/include/libavformat/avio.h:278) [-Wdeprecated-declarations]
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:255:3: warning: 'int av_write_header(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1394) [-Wdeprecated-declarations]
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:255:40: warning: 'int av_write_header(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1394) [-Wdeprecated-declarations]
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx: In member function 'int vtkFFMPEGWriterInternal::Write(vtkImageData*)':
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:332:20: error: 'PKT_FLAG_KEY' was not declared in this scope
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx: In member function 'void vtkFFMPEGWriterInternal::End()':
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:386:7: warning: 'int url_fclose(AVIOContext*)' is deprecated (declared at /usr/include/libavformat/avio.h:279) [-Wdeprecated-declarations]
/var/tmp/paludis/sci-libs-vtk-5.6.1/work/VTK/IO/vtkFFMPEGWriter.cxx:386:43: warning: 'int url_fclose(AVIOContext*)' is deprecated (declared at /usr/include/libavformat/avio.h:279) [-Wdeprecated-declarations]
*snip*

I just assumed it's the libav<->ffmpeg difference. But it is well possible that it also fails with a newer ffmpeg.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-08-26 12:52:20 UTC
Preise give me all USE for libav and vtk.
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2011-08-26 14:17:32 UTC
sci-libs/vtk: boost cg doc examples ffmpeg python qt4 theora threads (removing ffmpeg made it build)
media-video/libav: 3dnow 3dnowext X alsa bzip2 encode faac frei0r gpl gsm hardcoded-tables ieee1394 jpeg2k mmx mmxext mp3 network rtmp schroedinger sdl speex ssse3 theora threads v4l2 vaapi vdpau vorbix vpx x264 xvid zlib VIDEO_CARDS=nvidia
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-08-27 12:24:51 UTC
okay, it is reproduced here. will find a solution.
Comment 4 u235ly 2011-11-07 10:21:51 UTC
the following patch works for me.
http://patch-tracker.debian.org/patch/series/view/vtk/5.6.1-7/debian-changes-5.6.1-6.1
Comment 5 Luca Barbato gentoo-dev 2011-11-15 09:12:14 UTC
I confirm that the patch from debian looks correct.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2011-11-16 09:50:13 UTC
Thanks added.


+  16 Nov 2011; Justin Lecher <jlec@gentoo.org> vtk-5.6.1.ebuild,
+  +files/vtk-5.6.1-libav-0.8.patch, metadata.xml:
+  Add debian patch for building against libav-0.8, #380681
+