Bug#1004793: vtk7: FTBFS with ffmpeg 5.0

Sebastian Ramacher sramacher at debian.org
Tue Feb 1 21:30:58 GMT 2022


Source: vtk7
Version: 7.1.1+dfsg2-10.1
Severity: important
X-Debbugs-Cc: sramacher at debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

vtk7 FTBFS with ffmpeg 5.0 in experimental:

[ 27%] Building CXX object IO/GDAL/CMakeFiles/vtkIOGDALTCL.dir/vtkIOGDALTCLInit.cxx.o
cd /<<PKGBUILDDIR>>/debian/build/IO/GDAL && /usr/bin/mpic++ -DVTK_IN_VTK -DvtkIOGDALTCL_EXPORTS -I/usr/include/gdal -I/<<PKGBUILDDIR>>/debian/build/IO/GDAL -I/<<PKGBUILDDIR>>/IO/GDAL -I/<<PKGBUILDDIR>>/debian/build/Common/Core -I/<<PKGBUILDDIR>>/Common/Core -I/<<PKGBUILDDIR>>/debian/build/Utilities/KWIML -I/<<PKGBUILDDIR>>/Utilities/KWIML -I/<<PKGBUILDDIR>>/debian/build/Utilities/KWSys -I/<<PKGBUILDDIR>>/Utilities/KWSys -I/<<PKGBUILDDIR>>/debian/build/Common/DataModel -I/<<PKGBUILDDIR>>/Common/DataModel -I/<<PKGBUILDDIR>>/debian/build/Common/Math -I/<<PKGBUILDDIR>>/Common/Math -I/<<PKGBUILDDIR>>/debian/build/Common/Misc -I/<<PKGBUILDDIR>>/Common/Misc -I/<<PKGBUILDDIR>>/debian/build/Common/System -I/<<PKGBUILDDIR>>/Common/System -I/<<PKGBUILDDIR>>/debian/build/Common/Transforms -I/<<PKGBUILDDIR>>/Common/Transforms -I/<<PKGBUILDDIR>>/debian/build/Common/ExecutionModel -I/<<PKGBUILDDIR>>/Common/ExecutionModel -I/<<PKGBUILDDIR>>/debian/build/IO/Image -I/<<PKGBUILDDIR>>/IO/Image -I/<<PKGBUILDDIR>>/debian/build/Utilities/DICOMParser -I/<<PKGBUILDDIR>>/Utilities/DICOMParser -I/<<PKGBUILDDIR>>/debian/build/Utilities/MetaIO/vtkmetaio -I/<<PKGBUILDDIR>>/debian/build/Utilities/MetaIO -I/<<PKGBUILDDIR>>/Utilities/MetaIO -I/<<PKGBUILDDIR>>/debian/build/ThirdParty/zlib -I/<<PKGBUILDDIR>>/ThirdParty/zlib -I/<<PKGBUILDDIR>>/debian/build/ThirdParty/jpeg -I/<<PKGBUILDDIR>>/ThirdParty/jpeg -I/<<PKGBUILDDIR>>/debian/build/ThirdParty/png -I/<<PKGBUILDDIR>>/ThirdParty/png -I/<<PKGBUILDDIR>>/debian/build/ThirdParty/tiff -I/<<PKGBUILDDIR>>/ThirdParty/tiff -I/<<PKGBUILDDIR>>/Wrapping/Tcl -I/<<PKGBUILDDIR>>/debian/build/Wrapping/Tcl -I/usr/include/tcl -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -fPIC -MD -MT IO/GDAL/CMakeFiles/vtkIOGDALTCL.dir/vtkIOGDALTCLInit.cxx.o -MF CMakeFiles/vtkIOGDALTCL.dir/vtkIOGDALTCLInit.cxx.o.d -o CMakeFiles/vtkIOGDALTCL.dir/vtkIOGDALTCLInit.cxx.o -c /<<PKGBUILDDIR>>/debian/build/IO/GDAL/vtkIOGDALTCLInit.cxx
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx: In member function ‘int vtkFFMPEGWriterInternal::Start()’:
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:133:3: error: ‘av_register_all’ was not declared in this scope
  133 |   av_register_all();
      |   ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:151:41: error: invalid conversion from ‘const AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
  151 |   this->avOutputFormat = av_guess_format("avi", NULL, NULL);
      |                          ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         const AVOutputFormat*
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:173:33: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
  173 |   strcpy(this->avFormatContext->filename, this->Writer->GetFileName());
      |                                 ^~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:188:39: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  188 |   AVCodecContext *c = this->avStream->codec;
      |                                       ^~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:190:4: error: invalid use of incomplete type ‘struct AVCodecContext’
  190 |   c->codec_id = static_cast<AVCodecID>(this->avOutputFormat->video_codec);
      |    ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:197:3: error: invalid use of incomplete type ‘struct AVCodecContext’
  197 |  c->codec_type = AVMEDIA_TYPE_VIDEO;
      |   ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:199:4: error: invalid use of incomplete type ‘struct AVCodecContext’
  199 |   c->width = this->Dim[0];
      |    ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:200:4: error: invalid use of incomplete type ‘struct AVCodecContext’
  200 |   c->height = this->Dim[1];
      |    ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:203:6: error: invalid use of incomplete type ‘struct AVCodecContext’
  203 |     c->pix_fmt = AV_PIX_FMT_YUVJ422P;
      |      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:207:6: error: invalid use of incomplete type ‘struct AVCodecContext’
  207 |     c->pix_fmt = AV_PIX_FMT_BGR24;
      |      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:211:4: error: invalid use of incomplete type ‘struct AVCodecContext’
  211 |   c->time_base.den = this->FrameRate;
      |    ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:212:4: error: invalid use of incomplete type ‘struct AVCodecContext’
  212 |   c->time_base.num = 1;
      |    ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:214:4: error: invalid use of incomplete type ‘struct AVCodecContext’
  214 |   c->gop_size = this->FrameRate;
      |    ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:222:10: error: invalid use of incomplete type ‘struct AVCodecContext’
  222 |         c->bit_rate = 3*1024*1024;
      |          ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:225:10: error: invalid use of incomplete type ‘struct AVCodecContext’
  225 |         c->bit_rate = 6*1024*1024;
      |          ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:228:10: error: invalid use of incomplete type ‘struct AVCodecContext’
  228 |         c->bit_rate = 12*1024*1024;
      |          ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:234:6: error: invalid use of incomplete type ‘struct AVCodecContext’
  234 |     c->bit_rate = this->Writer->GetBitRate();
      |      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:239:6: error: invalid use of incomplete type ‘struct AVCodecContext’
  239 |     c->bit_rate_tolerance = c->bit_rate; //ffmpeg won't create a codec if brt<br
      |      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:239:30: error: invalid use of incomplete type ‘struct AVCodecContext’
  239 |     c->bit_rate_tolerance = c->bit_rate; //ffmpeg won't create a codec if brt<br
      |                              ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:243:6: error: invalid use of incomplete type ‘struct AVCodecContext’
  243 |     c->bit_rate_tolerance = this->Writer->GetBitRateTolerance();
      |      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:256:42: error: invalid use of incomplete type ‘struct AVCodecContext’
  256 |   AVCodec *codec = avcodec_find_encoder(c->codec_id);
      |                                          ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:265:7: error: ‘avcodec_open2’ was not declared in this scope; did you mean ‘avio_open2’?
  265 |   if (avcodec_open2(c, codec, NULL) < 0)
      |       ^~~~~~~~~~~~~
      |       avio_open2
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:292:55: error: invalid use of incomplete type ‘struct AVCodecContext’
  292 |   int RGBsize = avpicture_get_size(AV_PIX_FMT_RGB24, c->width, c->height);
      |                                                       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:292:65: error: invalid use of incomplete type ‘struct AVCodecContext’
  292 |   int RGBsize = avpicture_get_size(AV_PIX_FMT_RGB24, c->width, c->height);
      |                                                                 ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:292:17: error: ‘avpicture_get_size’ was not declared in this scope
  292 |   int RGBsize = avpicture_get_size(AV_PIX_FMT_RGB24, c->width, c->height);
      |                 ^~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:300:19: error: ‘AVPicture’ was not declared in this scope; did you mean ‘AVPictureType’?
  300 |   avpicture_fill((AVPicture *)this->rgbInput, rgb, AV_PIX_FMT_RGB24, c->width, c->height);
      |                   ^~~~~~~~~
      |                   AVPictureType
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:300:30: error: expected primary-expression before ‘)’ token
  300 |   avpicture_fill((AVPicture *)this->rgbInput, rgb, AV_PIX_FMT_RGB24, c->width, c->height);
      |                              ^
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:300:71: error: invalid use of incomplete type ‘struct AVCodecContext’
  300 |   avpicture_fill((AVPicture *)this->rgbInput, rgb, AV_PIX_FMT_RGB24, c->width, c->height);
      |                                                                       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:300:81: error: invalid use of incomplete type ‘struct AVCodecContext’
  300 |   avpicture_fill((AVPicture *)this->rgbInput, rgb, AV_PIX_FMT_RGB24, c->width, c->height);
      |                                                                                 ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:300:3: error: ‘avpicture_fill’ was not declared in this scope
  300 |   avpicture_fill((AVPicture *)this->rgbInput, rgb, AV_PIX_FMT_RGB24, c->width, c->height);
      |   ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:309:37: error: invalid use of incomplete type ‘struct AVCodecContext’
  309 |   int YUVsize = avpicture_get_size(c->pix_fmt, c->width, c->height);
      |                                     ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:309:49: error: invalid use of incomplete type ‘struct AVCodecContext’
  309 |   int YUVsize = avpicture_get_size(c->pix_fmt, c->width, c->height);
      |                                                 ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:309:59: error: invalid use of incomplete type ‘struct AVCodecContext’
  309 |   int YUVsize = avpicture_get_size(c->pix_fmt, c->width, c->height);
      |                                                           ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:317:30: error: expected primary-expression before ‘)’ token
  317 |   avpicture_fill((AVPicture *)this->yuvOutput, yuv, c->pix_fmt, c->width, c->height);
      |                              ^
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:317:54: error: invalid use of incomplete type ‘struct AVCodecContext’
  317 |   avpicture_fill((AVPicture *)this->yuvOutput, yuv, c->pix_fmt, c->width, c->height);
      |                                                      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:317:66: error: invalid use of incomplete type ‘struct AVCodecContext’
  317 |   avpicture_fill((AVPicture *)this->yuvOutput, yuv, c->pix_fmt, c->width, c->height);
      |                                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:317:76: error: invalid use of incomplete type ‘struct AVCodecContext’
  317 |   avpicture_fill((AVPicture *)this->yuvOutput, yuv, c->pix_fmt, c->width, c->height);
      |                                                                            ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:324:68: error: ‘AVFormatContext’ {aka ‘struct AVFormatContext’} has no member named ‘filename’
  324 |   if (avio_open(&this->avFormatContext->pb, this->avFormatContext->filename, AVIO_FLAG_WRITE) < 0)
      |                                                                    ^~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx: In member function ‘int vtkFFMPEGWriterInternal::Write(vtkImageData*)’:
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:349:40: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  349 |   AVCodecContext *cc = this->avStream->codec;
      |                                        ^~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:354:25: error: invalid use of incomplete type ‘struct AVCodecContext’
  354 |   for (int y = 0; y < cc->height; y++)
      |                         ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:356:20: error: invalid use of incomplete type ‘struct AVCodecContext’
  356 |     src = rgb + (cc->height-y-1) * cc->width * 3; //flip Y
      |                    ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:356:38: error: invalid use of incomplete type ‘struct AVCodecContext’
  356 |     src = rgb + (cc->height-y-1) * cc->width * 3; //flip Y
      |                                      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:359:39: error: invalid use of incomplete type ‘struct AVCodecContext’
  359 |     memcpy((void*)dest, (void*)src, cc->width*3);
      |                                       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:370:7: error: invalid use of incomplete type ‘struct AVCodecContext’
  370 |     cc->width, cc->height, AV_PIX_FMT_RGB24,
      |       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:370:18: error: invalid use of incomplete type ‘struct AVCodecContext’
  370 |     cc->width, cc->height, AV_PIX_FMT_RGB24,
      |                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:371:7: error: invalid use of incomplete type ‘struct AVCodecContext’
  371 |     cc->width, cc->height, cc->pix_fmt,
      |       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:371:18: error: invalid use of incomplete type ‘struct AVCodecContext’
  371 |     cc->width, cc->height, cc->pix_fmt,
      |                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:371:30: error: invalid use of incomplete type ‘struct AVCodecContext’
  371 |     cc->width, cc->height, cc->pix_fmt,
      |                              ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:382:10: error: invalid use of incomplete type ‘struct AVCodecContext’
  382 |     0, cc->height,
      |          ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:27:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/IO/FFMPEG/vtkFFMPEGWriter.cxx:435:13: error: ‘avcodec_encode_video2’ was not declared in this scope
  435 |   int ret = avcodec_encode_video2(cc,
      |             ^~~~~~~~~~~~~~~~~~~~~
make[4]: *** [IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/build.make:91: IO/FFMPEG/CMakeFiles/vtkIOFFMPEG.dir/vtkFFMPEGWriter.cxx.o] Error 1


Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20220201/bd4573e4/attachment-0001.sig>


More information about the debian-science-maintainers mailing list