[vtkusers] FFmpeg writer compiling on OSX

Gerrick Bivins gbivins at objectreservoir.com
Thu Dec 4 15:42:52 EST 2008


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:

Scanning dependencies of target vtkIO
[ 32%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.o
/opt/local/include/libavcodec/avcodec.h:2349: warning: ŒImgReSampleContext¹
is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)
/opt/local/include/libavcodec/avcodec.h:2359: warning: ŒImgReSampleContext¹
is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)
/opt/local/include/libavcodec/avcodec.h:2349: warning: ŒImgReSampleContext¹
is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)
/opt/local/include/libavcodec/avcodec.h:2359: warning: ŒImgReSampleContext¹
is deprecated (declared at /opt/local/include/libavcodec/avcodec.h:2343)
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function Œint
vtkFFMPEGWriterInternal::Write(vtkImageData*)¹:
/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*)¹:
/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:261: warning:
Œimg_convert¹ is deprecated (declared at
/opt/local/include/libavcodec/avcodec.h:2511)

/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:261: 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
Œvoid vtkFFMPEGWriterInternal::End()¹:
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:335: error: cannot
convert ŒByteIOContext**¹ to ŒByteIOContext*¹ for argument Œ1¹ to Œint
url_fclose(ByteIOContext*)¹
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx: In member function
Œvoid vtkFFMPEGWriterInternal::End()¹:
/Users/gbivins/work/APIs/VTK/IO/vtkFFMPEGWriter.cxx:335: error: cannot
convert ŒByteIOContext**¹ to ŒByteIOContext*¹ for argument Œ1¹ to Œint
url_fclose(ByteIOContext*)¹
lipo: can't figure out the architecture type of:
/var/folders/JZ/JZBMHIzjFmKQriRmgX0IGk+++TI/-Tmp-//ccGfX6zD.out
make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.o] Error 1
make[1]: *** [IO/CMakeFiles/vtkIO.dir/all] Error 2
make: *** [all] Error 2


Does anyone have any suggestions?Do I need to manually compile/install
ffmpeg myself?

Gerrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081204/508616db/attachment.htm>


More information about the vtkusers mailing list