acxz / gazebo-arch

A collection of Arch Linux PKGBUILDS for the Gazebo Simulator
17 stars 10 forks source link

[ignition-common-3] AV_CODEC_CAP_TRUNCATED was not declared #56

Closed acxz closed 1 year ago

acxz commented 1 year ago
/home/acxz/vcs/git/github/acxz/gazebo-arch/ignition-common-3/src/gz-common-ignition-common3_3.15.1/av/src/AudioDecoder.cc: In member function ‘bool ignition::common::AudioDecoder::SetFile(const std::string&)’:
/home/acxz/vcs/git/github/acxz/gazebo-arch/ignition-common-3/src/gz-common-ignition-common3_3.15.1/av/src/AudioDecoder.cc:348:41: error: ‘AV_CODEC_CAP_TRUNCATED’ was not declared in this scope; did you mean ‘AV_CODEC_CAP_HARDWARE’?
  348 |   if (this->data->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
      |                                         AV_CODEC_CAP_HARDWARE
/home/acxz/vcs/git/github/acxz/gazebo-arch/ignition-common-3/src/gz-common-ignition-common3_3.15.1/av/src/AudioDecoder.cc:349:36: error: ‘AV_CODEC_FLAG_TRUNCATED’ was not declared in this scope; did you mean ‘AV_CODEC_FLAG_DROPCHANGED’?
  349 |     this->data->codecCtx->flags |= AV_CODEC_FLAG_TRUNCATED;
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~
      |                                    AV_CODEC_FLAG_DROPCHANGED
make[2]: *** [av/src/CMakeFiles/ignition-common3-av.dir/build.make:76: av/src/CMakeFiles/ignition-common3-av.dir/AudioDecoder.cc.o] Error 1
acxz commented 1 year ago

patched with a17771e

acxz commented 1 year ago

Note another way to resolve this error is by ensuring the use of ffmpeg4.4 like done in the gazebo package.

PSandro commented 1 year ago

This error also occurs when building ignition-common:

home/sandro/.cache/yay/ignition-common/src/gz-common-gz-common5_5.3.1/av/src/Video.cc:199:29: error: ‘AV_CODEC_CAP_TRUNCATED’ was not declared in this scope; did you mean ‘AV_CODEC_CAP_HARDWARE’?
  199 |   if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
      |                             ^~~~~~~~~~~~~~~~~~~~~~
      |                             AV_CODEC_CAP_HARDWARE
/home/sandro/.cache/yay/ignition-common/src/gz-common-gz-common5_5.3.1/av/src/Video.cc:200:39: error: ‘AV_CODEC_FLAG_TRUNCATED’ was not declared in this scope; did you mean ‘AV_CODEC_FLAG_DROPCHANGED’?
  200 |     this->dataPtr->codecCtx->flags |= AV_CODEC_FLAG_TRUNCATED;
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~
      |                                       AV_CODEC_FLAG_DROPCHANGED
acxz commented 1 year ago

@PSandro thanks for the report, this should be resolved with 5a505f2

acxz commented 1 year ago

resolved with 5ff393e