<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: ‘ImgReSampleContext’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/opt/local/include/libavcodec/avcodec.h:2359: warning: ‘ImgReSampleContext’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/opt/local/include/libavcodec/avcodec.h:2349: warning: ‘ImgReSampleContext’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/opt/local/include/libavcodec/avcodec.h:2359: warning: ‘ImgReSampleContext’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function ‘int vtkFFMPEGWriterInternal::Write(vtkImageData*)’:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:259: warning: ‘img_convert’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function ‘int vtkFFMPEGWriterInternal::Write(vtkImageData*)’:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:259: warning: ‘img_convert’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:261: warning: ‘img_convert’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)<BR>
<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:261: warning: ‘img_convert’ is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2511)<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function ‘void vtkFFMPEGWriterInternal::End()’:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:335: error: cannot convert ‘ByteIOContext**’ to ‘ByteIOContext*’ for argument ‘1’ to ‘int url_fclose(ByteIOContext*)’<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function ‘void vtkFFMPEGWriterInternal::End()’:<BR>
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:335: error: cannot convert ‘ByteIOContext**’ to ‘ByteIOContext*’ for argument ‘1’ to ‘int url_fclose(ByteIOContext*)’<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>