Try an older version. I use 0.6.3 for the ParaView releases.<br><br><div class="gmail_quote">On Wed, Oct 5, 2011 at 3:09 PM, Martijn Steenwijk <span dir="ltr">&lt;<a href="mailto:martijnsteenwijk@gmail.com">martijnsteenwijk@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear all,<br><br>I&#39;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?<br>

<br> 55%] Built target vtkGenericFilteringPython<br>[ 55%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o<br>
In file included from /usr/local/ffmpeg_inst/include/libavformat/avformat.h:42:0,                                           <br>                 from /home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:27:<br>/usr/local/ffmpeg_inst/include/libavcodec/avcodec.h:525:27: warning: attribute ignored in declaration of ‘enum AVLPCType’<br>


/usr/local/ffmpeg_inst/include/libavcodec/avcodec.h:525:27: warning: attribute for ‘enum AVLPCType’ must follow the ‘enum’ keyword<br>/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function ‘int vtkFFMPEGWriterInternal::Start()’:<br>


/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:126:56: error: ‘guess_format’ was not declared in this scope<br>/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:153:19: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope<br>


/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)<br>


/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)<br>


/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)<br>/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)<br>


/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)<br>/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)<br>


/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function ‘int vtkFFMPEGWriterInternal::Write(vtkImageData*)’:<br>/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:346:20: error: ‘PKT_FLAG_KEY’ was not declared in this scope<br>


/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function ‘void vtkFFMPEGWriterInternal::End()’:<br>/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)<br>


/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)<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><font color="#888888">Martijn<br>
</font><br>_______________________________________________<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>
<br></blockquote></div><br>