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

Robert Maynard robert.maynard at kitware.com
Fri Aug 3 14:39:03 EDT 2018


The ParaView superbuild has an option for FFMPEG and it uses this version:

https://www.paraview.org/files/dependencies/ffmpeg-2.3.3.tar.bz2

I would start with seeing if you can get that to build. You can find
what options we build ffmpeg with at:
https://gitlab.kitware.com/paraview/common-superbuild/blob/master/projects/apple-unix/ffmpeg.cmake




On Thu, Aug 2, 2018 at 6:09 PM <robert.hedges at lickenbrocktech.com> wrote:
>
>
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list