Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to compile with ffmpeg >= 6.1 #22

Open
mokurin000 opened this issue Mar 1, 2024 · 1 comment
Open

failed to compile with ffmpeg >= 6.1 #22

mokurin000 opened this issue Mar 1, 2024 · 1 comment

Comments

@mokurin000
Copy link

mokurin000 commented Mar 1, 2024

ffmpegvideoencoder.cpp: In member function 'bool FFMpegVideoEncoderPriv::createFile(const QString&)':
ffmpegvideoencoder.cpp:254:39: error: invalid conversion from 'const AVOutputFormat*' to 'AVOutputFormat*' [-fpermissive]
  254 |         outputFormat = av_guess_format( qPrintable( m_profile->videoContainer ), qPrintable( m_profile->videoContainer ), 0 );
      |                        ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                       |
      |                                       const AVOutputFormat*
ffmpegvideoencoder.cpp:274:50: error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
  274 |         videoCodec = avcodec_find_encoder_by_name( qPrintable(m_profile->videoCodec) );
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  const AVCodec*
ffmpegvideoencoder.cpp:373:50: error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
  373 |         audioCodec = avcodec_find_encoder_by_name( qPrintable( m_profile->audioCodec ) );
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  const AVCodec*
ffmpegvideoencoder.cpp:383:54: error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
  383 |             audioCodec = avcodec_find_encoder_by_name( "ac3_fixed" );
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                                      |
      |                                                      const AVCodec*
g++ -c -pipe -march=native -Ofast -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt -fopenmp -pthread -Wno-error -w -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/usr/include/ffmpeg -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o videogenerator.o videogenerator.cpp
g++ -c -pipe -march=native -Ofast -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fno-plt -fopenmp -pthread -Wno-error -w -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/usr/include/ffmpeg -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o lyricsevents.o lyricsevents.cpp
ffmpegvideodecoder.cpp: In member function 'bool FFMpegVideoDecoder::openFile(const QString&, unsigned int)':
ffmpegvideodecoder.cpp:107:44: error: invalid conversion from 'const AVCodec*' to 'AVCodec*' [-fpermissive]
  107 |         AVCodec *dec = avcodec_find_decoder( stream->codecpar->codec_id );
      |                        ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            const AVCodec*
make[1]: *** [Makefile:1316: ffmpegvideoencoder.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1309: ffmpegvideodecoder.o] Error 1
make[1]: Leaving directory '/home/poly/.cache/paru/clone/karlyriceditor/src/karlyriceditor-3.2/src'
make: *** [Makefile:47: sub-src-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'karlyriceditor-3.2-1': 
error: packages failed to build: karlyriceditor-3.2-1

@meinwald
Copy link
Contributor

I created #23 to address this.

@mokurin000 mokurin000 changed the title failed to compile with g++ failed to compile with ffmpeg >= 6.1 Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants