[vtkusers] Compilation fails while compiling with vtkFFMPEGWriter

Martijn Steenwijk martijnsteenwijk at gmail.com
Wed Oct 5 15:09:37 EDT 2011


Dear all,

I'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?

 55%] Built target vtkGenericFilteringPython
[ 55%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o
In file included from
/usr/local/ffmpeg_inst/include/libavformat/avformat.h:42:0,

                 from
/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:27:
/usr/local/ffmpeg_inst/include/libavcodec/avcodec.h:525:27: warning:
attribute ignored in declaration of ‘enum AVLPCType’
/usr/local/ffmpeg_inst/include/libavcodec/avcodec.h:525:27: warning:
attribute for ‘enum AVLPCType’ must follow the ‘enum’ keyword
/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function ‘int
vtkFFMPEGWriterInternal::Start()’:
/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:126:56: error:
‘guess_format’ was not declared in this scope
/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:153:19: error:
‘CODEC_TYPE_VIDEO’ was not declared in this scope
/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)
/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)
/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)
/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)
/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)
/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)
/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function ‘int
vtkFFMPEGWriterInternal::Write(vtkImageData*)’:
/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx:346:20: error:
‘PKT_FLAG_KEY’ was not declared in this scope
/home/martijn/libs/vtk-5.8.0/IO/vtkFFMPEGWriter.cxx: In member function
‘void vtkFFMPEGWriterInternal::End()’:
/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)
/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)
make[2]: *** [IO/CMakeFiles/vtkIO.dir/vtkFFMPEGWriter.cxx.o] Error 1
make[1]: *** [IO/CMakeFiles/vtkIO.dir/all] Error 2
make: *** [all] Error 2


Best,
Martijn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111005/3f7af24f/attachment.htm>


More information about the vtkusers mailing list