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