<HTML>
<HEAD>
<TITLE>FFmpeg writer compiling on OSX</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I ran into some errors when trying to compile the FFmpeg writer with VTK on OSX. I installed ffmpeg with macports but VTK failed to compile with the following errors:<BR>
<BR>
Scanning dependencies of target vtkIO<BR>
[ 32%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.o<BR>
/opt/local/include/libavcodec/avcodec.h:2349: warning: &#8216;ImgReSampleContext&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/opt/local/include/libavcodec/avcodec.h:2359: warning: &#8216;ImgReSampleContext&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/opt/local/include/libavcodec/avcodec.h:2349: warning: &#8216;ImgReSampleContext&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/opt/local/include/libavcodec/avcodec.h:2359: warning: &#8216;ImgReSampleContext&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function &#8216;int vtkFFMPEGWriterInternal::Write(vtkImageData*)&#8217;:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:259: warning: &#8216;img_convert&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function &#8216;int vtkFFMPEGWriterInternal::Write(vtkImageData*)&#8217;:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:259: warning: &#8216;img_convert&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:261: warning: &#8216;img_convert&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)<BR>
<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:261: warning: &#8216;img_convert&#8217; is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function &#8216;void vtkFFMPEGWriterInternal::End()&#8217;:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:335: error: cannot convert &#8216;ByteIOContext**&#8217; to &#8216;ByteIOContext*&#8217; for argument &#8216;1&#8217; to &#8216;int url_fclose(ByteIOContext*)&#8217;<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function &#8216;void vtkFFMPEGWriterInternal::End()&#8217;:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:335: error: cannot convert &#8216;ByteIOContext**&#8217; to &#8216;ByteIOContext*&#8217; for argument &#8216;1&#8217; to &#8216;int url_fclose(ByteIOContext*)&#8217;<BR>
lipo: can't figure out the architecture type of: /var/folders/JZ/JZBMHIzjFmKQriRmgX0IGk+++TI/-Tmp-//ccGfX6zD.out<BR>
make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.o] Error 1<BR>
make[1]: *** [IO/CMakeFiles/vtkIO.dir/all] Error 2<BR>
make: *** [all] Error 2<BR>
<BR>
<BR>
Does anyone have any suggestions?Do I need to manually compile/install ffmpeg myself?<BR>
<BR>
Gerrick</SPAN></FONT>
</BODY>
</HTML>