Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834386

Summary: media-libs/qtav-1.12.0-r3 with ffmpeg-5.0: src/AVCompat.cpp:394:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/wang-bin/QtAV/issues/1377
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 831437    
Attachments: build.log.gz
emerge-info.txt

Description Kobboi 2022-02-28 19:51:04 UTC
[13/171] /usr/bin/x86_64-pc-linux-gnu-g++ -DBUILD_QTAV_LIB -DQTAV_HAVE_AVCODEC=1 -DQTAV_HAVE_AVDEVICE=1 -DQTAV_HAVE_AVFILTER=1 -DQTAV_HAVE_AVFORMAT=1 -DQTAV_HAVE_AVUTIL=1 -DQTAV_HAVE_CAPI
=1 -DQTAV_HAVE_CUDA=1 -DQTAV_HAVE_LIBASS=1 -DQTAV_HAVE_PULSEAUDIO=1 -DQTAV_HAVE_SWRESAMPLE=1 -DQTAV_HAVE_SWSCALE=1 -DQTAV_HAVE_VAAPI=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQtAV_EXPO
RTS -D__STDC_CONSTANT_MACROS -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/qtav-1.12.0_build/src -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src -I/var/tmp/portage/m
edia-libs/qtav-1.12.0-r3/work/qtav-1.12.0_build/src/QtAV_autogen/include -I/include -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/QtAV -I/var/tmp/portage/media-libs/qt
av-1.12.0-r3/work/QtAV-1.12.0/external/include -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/contrib/capi -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src
/cuda -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui  -O2 -march=znver3 -pipe -g -ggdb3  -fPIC -fvisi
bility=hidden -fvisibility-inlines-hidden -fPIC -MD -MT src/CMakeFiles/QtAV.dir/AVCompat.cpp.o -MF src/CMakeFiles/QtAV.dir/AVCompat.cpp.o.d -o src/CMakeFiles/QtAV.dir/AVCompat.cpp.o -c /v
ar/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/AVCompat.cpp
FAILED: src/CMakeFiles/QtAV.dir/AVCompat.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBUILD_QTAV_LIB -DQTAV_HAVE_AVCODEC=1 -DQTAV_HAVE_AVDEVICE=1 -DQTAV_HAVE_AVFILTER=1 -DQTAV_HAVE_AVFORMAT=1 -DQTAV_HAVE_AVUTIL=1 -DQTAV_HAVE_CAPI=1 -DQTAV
_HAVE_CUDA=1 -DQTAV_HAVE_LIBASS=1 -DQTAV_HAVE_PULSEAUDIO=1 -DQTAV_HAVE_SWRESAMPLE=1 -DQTAV_HAVE_SWSCALE=1 -DQTAV_HAVE_VAAPI=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQtAV_EXPORTS -D__S
TDC_CONSTANT_MACROS -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/qtav-1.12.0_build/src -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src -I/var/tmp/portage/media-libs
/qtav-1.12.0-r3/work/qtav-1.12.0_build/src/QtAV_autogen/include -I/include -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/QtAV -I/var/tmp/portage/media-libs/qtav-1.12.0
-r3/work/QtAV-1.12.0/external/include -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/contrib/capi -I/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/cuda -is
ystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui  -O2 -march=znver3 -pipe -g -ggdb3  -fPIC -fvisibility=hi
dden -fvisibility-inlines-hidden -fPIC -MD -MT src/CMakeFiles/QtAV.dir/AVCompat.cpp.o -MF src/CMakeFiles/QtAV.dir/AVCompat.cpp.o.d -o src/CMakeFiles/QtAV.dir/AVCompat.cpp.o -c /var/tmp/po
rtage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/AVCompat.cpp
/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/AVCompat.cpp: In function ‘const char* get_codec_long_name(AVCodecID)’:
/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/AVCompat.cpp:394:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  394 |     AVCodec *codec = avcodec_find_decoder(id);
      |                      ~~~~~~~~~~~~~~~~~~~~^~~~
      |                                          |
      |                                          const AVCodec*
/var/tmp/portage/media-libs/qtav-1.12.0-r3/work/QtAV-1.12.0/src/AVCompat.cpp:397:33: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  397 |     codec = avcodec_find_encoder(id);
      |             ~~~~~~~~~~~~~~~~~~~~^~~~
      |                                 |
      |                                 const AVCodec*


Reproducible: Always
Comment 1 Kobboi 2022-02-28 19:51:21 UTC
Created attachment 766035 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 19:51:23 UTC
Created attachment 766036 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 19:51:35 UTC
Compiles fine with ffmpeg-4.4.1