[vtkusers] vtkFFMPEGWriter.cxx fails to build in CentOS 7

robert.hedges at lickenbrocktech.com robert.hedges at lickenbrocktech.com
Thu Aug 2 18:01:02 EDT 2018


 
When compiling VTK with
 
cmake -DVTK_QT_VERSION:STRING=5 \
      -DQT_QMAKE_EXECUTABLE:PATH=$QT_PATH/bin/qmake \
      -DVTK_Group_Qt:BOOL=ON \
      -DCMAKE_PREFIX_PATH:PATH=$QT_PATH/lib/cmake  \
      -DBUILD_SHARED_LIBS:BOOL=ON \
      -DCMAKE_INSTALL_PREFIX=/opt/lbt/vtk-8.1 \
      -DModule_vtkIOFFMPEG:BOOL=ON \
         ../
 
 
I have tried various version of FFMPEG and vtk (8.1, 8.1.1 and git latest) but consistently get this error.  I have also tried the old version of ffmpeg on the VTK web site.
 
 
 
 
/mnt/ubuntu/home/rhedges/repos/VTK-8.1/IO/FFMPEG/vtkFFMPEGWriter.cxx: In member function 'int vtkFFMPEGWriterInternal::Start()':
/mnt/ubuntu/home/rhedges/repos/VTK-8.1/IO/FFMPEG/vtkFFMPEGWriter.cxx:192:29: error: expected type-specifier before 'CodecID'
   c->codec_id = static_cast<CodecID>(this->avOutputFormat->video_codec);
                             ^
/mnt/ubuntu/home/rhedges/repos/VTK-8.1/IO/FFMPEG/vtkFFMPEGWriter.cxx:192:29: error: expected '>' before 'CodecID'
/mnt/ubuntu/home/rhedges/repos/VTK-8.1/IO/FFMPEG/vtkFFMPEGWriter.cxx:192:29: error: expected '(' before 'CodecID'
/mnt/ubuntu/home/rhedges/repos/VTK-8.1/IO/FFMPEG/vtkFFMPEGWriter.cxx:192:29: error: 'CodecID' was not declared in this scope
/mnt/ubuntu/home/rhedges/repos/VTK-8.1/IO/FFMPEG/vtkFFMPEGWriter.cxx:192:72: error: expected ')' before ';' token
   c->codec_id = static_cast<CodecID>(this->avOutputFormat->video_codec);
                                                                        ^
make[2]: *** [IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/vtkFFMPEGWriter.cxx.o] Error 1
make[1]: *** [IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/all] Error 2
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180802/3542ca42/attachment.html>


More information about the vtkusers mailing list