Bug 462686

Summary: Compile Error in videodecoder_p.cpp
Product: [Applications] digikam Reporter: TahomaSoft <bacon>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 7.9.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.10.0
Sentry Crash Report:

Description TahomaSoft 2022-12-05 23:24:03 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Download either qt5-maintenence or 7.9.0 from git
2.  run bootstrap.linux
3.  cd build; make


OBSERVED RESULT
Compile error: 

 # Consolidate compiler generated dependencies of target core_threadimageio_obj #

[ 16%] Building CXX object core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/video/videodecoder_p.cpp.o
..../00temp/digikam-v7.9.0/core/libs/threadimageio/video/videodecoder_p.cpp: In member function ‘bool Digikam::VideoDecoder::Private::initializeVideo()’:
..../00temp/digikam-v7.9.0/core/libs/threadimageio/video/videodecoder_p.cpp:93:49: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
   93 |     pVideoCodec           = avcodec_find_decoder(pVideoCodecParameters->codec_id);
      |                             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 const AVCodec*
make[2]: *** [core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/build.make:440: core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/video/videodecoder_p.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7554: core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/all] Error 2
make: *** [Makefile:146: all] Error 2


EXPECTED RESULT
digikam compiles

SOFTWARE/OS VERSIONS

 
Linux/KDE Plasma: 
Fedora 37
Operating System: Fedora Linux 37
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.11-300.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ProArt StudioBook H7600HM_H7600HM
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2022-12-06 04:10:24 UTC
Did you use ffmpeg 5 API. If yes, only next digiKam 8.0.0 will be compatible with ffmpeg 5. digiKam 7.9.0 only support ffmpeg < 5.
Comment 2 TahomaSoft 2022-12-06 12:34:30 UTC
(In reply to caulier.gilles from comment #1)
> Did you use ffmpeg 5 API. If yes, only next digiKam 8.0.0 will be compatible
> with ffmpeg 5. digiKam 7.9.0 only support ffmpeg < 5.

Hi!  Yes, I did.

I installed replaced the development package for FFmpeg5 with ffmpeg4 per your comment, and it now compiles and runs!

Thanks! 

Bug can be closed.