Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834415 - media-video/simplescreenrecorder-0.4.3 with ffmpeg-5.0: src/AV/Output/AudioEncoder.cpp:80:54: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
Summary: media-video/simplescreenrecorder-0.4.3 with ffmpeg-5.0: src/AV/Output/AudioEn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 21:15 UTC by Kobboi
Modified: 2022-07-26 07:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,4.99 KB, application/gzip)
2022-02-28 21:16 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 21:16 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 21:15:54 UTC
[35/86] /usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DSSR_SYSTEM_DIR=\"/usr/share/simplescreenrecorder\" -DSSR_USE_ALSA=1 -DSSR_USE_FFMPEG_VERSIONS=1 -DSSR_USE_JACK=0 -DSSR_USE_JACK_METADATA=0 -DSSR_USE_OPENGL_RECORDING=1 -DSSR_USE_PULSEAUDIO=1 -DSSR_USE_V4L2=1 -DSSR_USE_X86_ASM=1 -DSSR_VERSION=\"0.4.3\" -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/simplescreenrecorder-0.4.3_build-abi_x86_64.amd64/src/simplescreenrecorder_autogen/include -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Input -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/common -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/GUI -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtX11Extras  -O2 -march=znver3 -pipe -g -ggdb3 -fPIC -fPIC -std=gnu++11 -MD -MT src/CMakeFiles/simplescreenrecorder.dir/AV/Output/Muxer.cpp.o -MF src/CMakeFiles/simplescreenrecorder.dir/AV/Output/Muxer.cpp.o.d -o src/CMakeFiles/simplescreenrecorder.dir/AV/Output/Muxer.cpp.o -c /var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output/Muxer.cpp
FAILED: src/CMakeFiles/simplescreenrecorder.dir/AV/Output/Muxer.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DSSR_SYSTEM_DIR=\"/usr/share/simplescreenrecorder\" -DSSR_USE_ALSA=1 -DSSR_USE_FFMPEG_VERSIONS=1 -DSSR_USE_JACK=0 -DSSR_USE_JACK_METADATA=0 -DSSR_USE_OPENGL_RECORDING=1 -DSSR_USE_PULSEAUDIO=1 -DSSR_USE_V4L2=1 -DSSR_USE_X86_ASM=1 -DSSR_VERSION=\"0.4.3\" -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/simplescreenrecorder-0.4.3_build-abi_x86_64.amd64/src/simplescreenrecorder_autogen/include -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Input -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/common -I/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/GUI -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtX11Extras  -O2 -march=znver3 -pipe -g -ggdb3 -fPIC -fPIC -std=gnu++11 -MD -MT src/CMakeFiles/simplescreenrecorder.dir/AV/Output/Muxer.cpp.o -MF src/CMakeFiles/simplescreenrecorder.dir/AV/Output/Muxer.cpp.o.d -o src/CMakeFiles/simplescreenrecorder.dir/AV/Output/Muxer.cpp.o -c /var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output/Muxer.cpp
/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output/Muxer.cpp: In member function ‘void Muxer::Init()’:
/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output/Muxer.cpp:197:49: error: invalid conversion from ‘const AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
  197 |         AVOutputFormat *format = av_guess_format(m_container_name.toUtf8().constData(), NULL, NULL);
      |                                  ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 const AVOutputFormat*
/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output/Muxer.cpp: In member function ‘AVCodec* Muxer::FindCodec(const QString&)’:
/var/tmp/portage/media-video/simplescreenrecorder-0.4.3/work/ssr-0.4.3/src/AV/Output/Muxer.cpp:265:54: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  265 |         AVCodec *codec = avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      |
      |                                                      const AVCodec*


Reproducible: Always
Comment 1 Kobboi 2022-02-28 21:16:10 UTC
Created attachment 766085 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 21:16:12 UTC
Created attachment 766086 [details]
emerge-info.txt
Comment 3 Larry the Git Cow gentoo-dev 2022-07-26 07:44:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7529e764dfaa9de2cd27764a6ba028315e290ae0

commit 7529e764dfaa9de2cd27764a6ba028315e290ae0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-26 07:43:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-26 07:44:09 +0000

    media-video/simplescreenrecorder: backport ffmpeg 5 patch
    
    Closes: https://bugs.gentoo.org/834415
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/simplescreenrecorder-0.4.4-ffmpeg5.patch |  54 ++++++++++
 .../simplescreenrecorder-0.4.4-r1.ebuild           | 109 +++++++++++++++++++++
 2 files changed, 163 insertions(+)