View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016001VTK(No Category)public2016-02-16 11:422016-07-06 10:41
ReporterMorgulis 
Assigned ToUtkarsh Ayachit 
PriorityhighSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version7.1.0 
Summary0016001: VTK fails to compile with FFmpeg 3.0
Descriptionffmpeg 3.0 has recently been released. I am trying to compile VTK 7 and it fails. Here is compilation error:


[10043/22348] Building CXX object IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/vtkFFMPEGWriter.cxx.o
[10044/22348] Tcl Wrapping - generating vtkOggTheoraWriterTcl.cxx
[10045/22348] Building CXX object IO/Movie/CMakeFiles/vtkIOMovieTCL.dir/vtkIOMovieTCLInit.cxx.o
FAILED: /usr/bin/c++ -DVTK_IN_VTK -DvtkIOFFMPEG_EXPORTS -D__STDC_CONSTANT_MACROS -IIO/Movie -I/build/vtk/src/VTK-7.0.0/IO/Movie -ICommon/DataModel -I/build/vtk/src/VTK-7.0.0/Common/DataModel -ICommon/Math -I/build/vtk/src/VTK-7.0.0/Common/Math -ICommon/Core -I/build/vtk/src/VTK-7.0.0/Common/Core -IUtilities/KWSys -I/build/vtk/src/VTK-7.0.0/Utilities/KWSys -ICommon/Misc -I/build/vtk/src/VTK-7.0.0/Common/Misc -ICommon/System -I/build/vtk/src/VTK-7.0.0/Common/System -ICommon/Transforms -I/build/vtk/src/VTK-7.0.0/Common/Transforms -ICommon/ExecutionModel -I/build/vtk/src/VTK-7.0.0/Common/ExecutionModel -IIO/Core -I/build/vtk/src/VTK-7.0.0/IO/Core -IThirdParty/zlib -I/build/vtk/src/VTK-7.0.0/ThirdParty/zlib -IThirdParty/oggtheora -I/build/vtk/src/VTK-7.0.0/ThirdParty/oggtheora -IIO/FFMPEG -I/build/vtk/src/VTK-7.0.0/IO/FFMPEG -D__STDC_CONSTANT_MACROS -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MMD -MT IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/vtkFFMPEGWriter.cxx.o -MF IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/vtkFFMPEGWriter.cxx.o.d -o IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/vtkFFMPEGWriter.cxx.o -c /build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx: In member function 'int vtkFFMPEGWriterInternal::Start()':
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx:194:18: error: 'PIX_FMT_YUVJ422P' was not declared in this scope
     c->pix_fmt = PIX_FMT_YUVJ422P;
                  ^
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx:198:18: error: 'PIX_FMT_BGR24' was not declared in this scope
     c->pix_fmt = PIX_FMT_BGR24;
                  ^
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx:277:40: error: 'avcodec_alloc_frame' was not declared in this scope
   this->rgbInput = avcodec_alloc_frame();
                                        ^
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx:283:36: error: 'PIX_FMT_RGB24' was not declared in this scope
   int RGBsize = avpicture_get_size(PIX_FMT_RGB24, c->width, c->height);
                                    ^
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx: In member function 'int vtkFFMPEGWriterInternal::Write(vtkImageData*)':
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx:357:28: error: 'PIX_FMT_RGB24' was not declared in this scope
     cc->width, cc->height, PIX_FMT_RGB24,
                            ^
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx: In member function 'int vtkFFMPEGWriterInternal::Start()':
/build/vtk/src/VTK-7.0.0/IO/FFMPEG/vtkFFMPEGWriter.cxx:326:53: warning: ignoring return value of 'int avformat_write_header(AVFormatContext*, AVDictionary**)', declared with attribute warn_unused_result [-Wunused-result]
   avformat_write_header(this->avFormatContext, NULL);
                                                     ^
ninja: build stopped: subcommand failed.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Filespatch file icon ffmpeg3_compat.patch [^] (2,347 bytes) 2016-02-17 17:12 [Show Content]

 Relationships

  Notes
(0035748)
Morgulis (reporter)
2016-02-17 17:12

Given patch makes ffmpeg3.0 compile errors go away.
(0036163)
Utkarsh Ayachit (administrator)
2016-07-06 10:40

Fixed by https://gitlab.kitware.com/vtk/vtk/commit/ffb53e9b53099cac99b8d0e6021d5a476b9ecf12 [^]

 Issue History
Date Modified Username Field Change
2016-02-16 11:42 Morgulis New Issue
2016-02-17 17:12 Morgulis Note Added: 0035748
2016-02-17 17:12 Morgulis File Added: ffmpeg3_compat.patch
2016-07-06 10:23 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2016-07-06 10:40 Utkarsh Ayachit Note Added: 0036163
2016-07-06 10:41 Utkarsh Ayachit Status backlog => closed
2016-07-06 10:41 Utkarsh Ayachit Resolution open => fixed
2016-07-06 10:41 Utkarsh Ayachit Fixed in Version => 7.1.0


Copyright © 2000 - 2018 MantisBT Team