Hi, trying to install gazebo for the first time, I get the following error, I wonder if you could tell me how to fix it:
[ 33%] Building CXX object av/src/CMakeFiles/ignition-common3-av.dir/AudioDecoder.cc.o
/tmp/yaourt-tmp-juanma/aur-ignition-common-3/src/ign-common-ignition-common3_3.14.0/av/src/AudioDecoder.cc: In member function ‘bool ignition::common::AudioDecoder::Decode(uint8_t**, unsigned int*)’:
/tmp/yaourt-tmp-juanma/aur-ignition-common-3/src/ign-common-ignition-common3_3.14.0/av/src/AudioDecoder.cc:135:24: error: ‘avcodec_decode_audio4’ was not declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
135 | bytesDecoded = avcodec_decode_audio4(this->data->codecCtx, decodedFrame,
| ^~~~~~~~~~~~~~~~~~~~~
| avcodec_decode_subtitle2
/tmp/yaourt-tmp-juanma/aur-ignition-common-3/src/ign-common-ignition-common3_3.14.0/av/src/AudioDecoder.cc: In member function ‘bool ignition::common::AudioDecoder::SetFile(const string&)’:
/tmp/yaourt-tmp-juanma/aur-ignition-common-3/src/ign-common-ignition-common3_3.14.0/av/src/AudioDecoder.cc:227:44: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
227 | if (this->data->formatCtx->streams[i]->codec->codec_type == // NOLINT(*)
| ^~~~~
/tmp/yaourt-tmp-juanma/aur-ignition-common-3/src/ign-common-ignition-common3_3.14.0/av/src/AudioDecoder.cc:253:31: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
253 | this->data->audioStream]->codec;
| ^~~~~
/tmp/yaourt-tmp-juanma/aur-ignition-common-3/src/ign-common-ignition-common3_3.14.0/av/src/AudioDecoder.cc:259:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
259 | this->data->codec = avcodec_find_decoder(this->data->codecCtx->codec_id);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const AVCodec*
make[2]: *** [av/src/CMakeFiles/ignition-common3-av.dir/build.make:76: av/src/CMakeFiles/ignition-common3-av.dir/AudioDecoder.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:395: av/src/CMakeFiles/ignition-common3-av.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build ignition-common-3.
==> Restart building ignition-common-3 ? [y/N]
Pinned Comments
billypilgrim commented on 2022-05-09 16:04 (UTC)
Development is on Github: https://github.com/acxz/gazebo-arch Please open issues and PRs there instead of commenting.