[vtkusers] Compilation fails while compiling with vtkFFMPEGWriter

Martijn Steenwijk martijnsteenwijk at gmail.com
Wed Oct 5 17:04:32 EDT 2011


Tested it, and everything works fine. Thanks for your help!

On Wed, Oct 5, 2011 at 9:51 PM, Martijn Steenwijk <
martijnsteenwijk at gmail.com> wrote:

> @David, I tried the (probably even older) version recommended at vtk.orgearlier today, but then the compiler started to complain about the missing
> library libswscale. With FFMPEG version 0.6.3 VTK seems to compile
> flawlessly.
>
>
> On Wed, Oct 5, 2011 at 9:38 PM, David Partyka <david.partyka at kitware.com>wrote:
>
>> Cool I wonder if the patch is backward compatible. Will give it a try.
>>
>>
>> On Wed, Oct 5, 2011 at 3:21 PM, Mathieu Malaterre <
>> mathieu.malaterre at gmail.com> wrote:
>>
>>> You could use debian's patch for libav:
>>>
>>>
>>> http://patch-tracker.debian.org/patch/series/view/vtk/5.6.1-7/debian-changes-5.6.1-6.1
>>>
>>> HTH
>>>
>>> On Wed, Oct 5, 2011 at 9:09 PM, Martijn Steenwijk
>>> <martijnsteenwijk at gmail.com> wrote:
>>> > Dear all,
>>> >
>>> > I'm trying to compile vtk 5.8.0 with FFMPEG 0.8.5, but get the
>>> following
>>> > error. Any thoughts about how to fix this?
>>> >
>>> >  55%] Built target vtkGenericFilteringPython
>>> > [ 55%] Building CXX object
>>> IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o
>>> > In file included from
>>> > /usr/local/ffmpeg_inst/include/libavformat/avformat.h:42:0,
>>> >                  from
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:27:
>>> > /usr/local/ffmpeg_inst/include/libavcodec/avcodec.h:525:27: warning:
>>> > attribute ignored in declaration of ‘enum AVLPCType’
>>> > /usr/local/ffmpeg_inst/include/libavcodec/avcodec.h:525:27: warning:
>>> > attribute for ‘enum AVLPCType’ must follow the ‘enum’ keyword
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function
>>> ‘int
>>> > vtkFFMPEGWriterInternal::Start()’:
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:126:56: error:
>>> > ‘guess_format’ was not declared in this scope
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:153:19: error:
>>> > ‘CODEC_TYPE_VIDEO’ was not declared in this scope
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:196:7: warning:
>>> ‘int
>>> > av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated
>>> > (declared at
>>> /usr/local/ffmpeg_inst/include/libavformat/avformat.h:1407)
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:196:52: warning:
>>> ‘int
>>> > av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated
>>> > (declared at
>>> /usr/local/ffmpeg_inst/include/libavformat/avformat.h:1407)
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:262:7: warning:
>>> ‘int
>>> > url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at
>>> > /usr/local/ffmpeg_inst/include/libavformat/avio.h:279)
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:262:88: warning:
>>> ‘int
>>> > url_fopen(AVIOContext**, const char*, int)’ is deprecated (declared at
>>> > /usr/local/ffmpeg_inst/include/libavformat/avio.h:279)
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:269:3: warning:
>>> ‘int
>>> > av_write_header(AVFormatContext*)’ is deprecated (declared at
>>> > /usr/local/ffmpeg_inst/include/libavformat/avformat.h:1465)
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:269:40: warning:
>>> ‘int
>>> > av_write_header(AVFormatContext*)’ is deprecated (declared at
>>> > /usr/local/ffmpeg_inst/include/libavformat/avformat.h:1465)
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function
>>> ‘int
>>> > vtkFFMPEGWriterInternal::Write(vtkImageData*)’:
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:346:20: error:
>>> > ‘PKT_FLAG_KEY’ was not declared in this scope
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function
>>> > ‘void vtkFFMPEGWriterInternal::End()’:
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:394:7: warning:
>>> ‘int
>>> > url_fclose(AVIOContext*)’ is deprecated (declared at
>>> > /usr/local/ffmpeg_inst/include/libavformat/avio.h:280)
>>> > /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:394:43: warning:
>>> ‘int
>>> > url_fclose(AVIOContext*)’ is deprecated (declared at
>>> > /usr/local/ffmpeg_inst/include/libavformat/avio.h:280)
>>> > make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o] Error 1
>>> > make[1]: *** [IO/CMakeFiles/vtkIO.dir/all] Error 2
>>> > make: *** [all] Error 2
>>> >
>>> >
>>> > Best,
>>> > Martijn
>>> >
>>> > _______________________________________________
>>> > Powered by www.kitware.com
>>> >
>>> > Visit other Kitware open-source projects at
>>> > http://www.kitware.com/opensource/opensource.html
>>> >
>>> > Please keep messages on-topic and check the VTK FAQ at:
>>> > http://www.vtk.org/Wiki/VTK_FAQ
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://www.vtk.org/mailman/listinfo/vtkusers
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Mathieu
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111005/5a0b99fb/attachment.htm>


More information about the vtkusers mailing list