Re: Build failure

Maik Qualmann <[email protected]> Sun, 03 Aug 2025 21:21:03 +0200
Newsgroups gmane.comp.kde.digikam.devel
Message-ID <[email protected]>
Ok, I see that openSUSE has made a commit to revert the C-style cast fix fo=
r=20
openSUSE Leap which is based on older libs.

https://lists.opensuse.org/archives/list/commit-ZwoEplunGu3vw+2h2ZhL/[email protected]/message/
IXM352UO2YFDO56EL7ZNEG2URDAKFR5O/

Maik

Am Sonntag, 3. August 2025, 21:14:13 Mitteleurop=C3=A4ische Sommerzeit schr=
ieb=20
Andrew Goodbody:
> Thanks but still fails.
>=20
> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.cpp:
> In member function =E2=80=98bool
> Digikam::VideoThumbDecoder::Private::processFilterGraph(AVFrame*, const
> AVFrame*, AVPixelFormat, int, int)=E2=80=99:
> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.cpp:29=
7:1
> 9: error: invalid conversion from =E2=80=98uint8_t**=E2=80=99 {aka =E2=80=
=98unsigned char**=E2=80=99} to
> =E2=80=98const uint8_t**=E2=80=99 {aka =E2=80=98const unsigned char**=E2=
=80=99} [-fpermissive]
>    297 |                   static_cast<uint8_t**>(filterFrame->data),
>=20
>        |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>        |                  =20
>        |                   uint8_t** {aka unsigned char**}
>=20
> In file included from
> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.h:27,
>                   from
> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.cpp:17:
> /usr/include/x86_64-linux-gnu/libavutil/imgutils.h:154:35: note:
> initializing argument 3 of =E2=80=98void av_image_copy(uint8_t**, int*, c=
onst
> uint8_t**, const int*, AVPixelFormat, int, int)=E2=80=99
>    154 |                    const uint8_t *src_data[4], const int
> src_linesizes[4],
>=20
>        |                    ~~~~~~~~~~~~~~~^~~~~~~~~~~
>=20
> make[2]: ***
> [core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/build.make=
:42
> 6:
> core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/video/video=
th
> umbdecoder_p.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:8861:
> core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/all] Error 2
>=20
> On 03/08/2025 13:30, Maik Qualmann wrote:
> > Now try to compile digiKam from git/master.
> >=20
> > Maik
> >=20
> > Am Sonntag, 3. August 2025, 11:01:44 Mitteleurop=C3=A4ische Sommerzeit =
schrieb
> >=20
> > Andrew Goodbody:
> >> Any idea what might be causing this build failure?
> >>=20
> >> [ 10%] Building CXX object
> >> core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/video/vi=
deo
> >> thu mbdecoder_p.cpp.o
> >> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.cpp:
> >> In
> >> member function =E2=80=98bool
> >> Digikam::VideoThumbDecoder::Private::processFilterGraph(AVFrame*, const
> >> AVFrame*, AVPixelFormat, int, int)=E2=80=99:
> >> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.cpp=
:29
> >> 5:4 5: error: invalid conversion from =E2=80=98uint8_t**=E2=80=99 {aka=
 =E2=80=98unsigned char**=E2=80=99}
> >> to =E2=80=98const uint8_t**=E2=80=99 {aka =E2=80=98const unsigned char=
**=E2=80=99} [-fpermissive]
> >>=20
> >>     295 |     av_image_copy(dst->data, dst->linesize,
> >>=20
> >> reinterpret_cast<uint8_t**>(filterFrame->data), filterFrame->linesize,
> >> pixfmt, width, height);
> >>=20
> >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>=20
> >>         |                                             uint8_t** {aka
> >>=20
> >> unsigned char**}
> >> In file included from
> >> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.h:2=
7,
> >>=20
> >>                    from
> >>=20
> >> /home/ag/src/dk6/core/libs/threadimageio/video/videothumbdecoder_p.cpp=
:17
> >> :
> >> /usr/include/x86_64-linux-gnu/libavutil/imgutils.h:154:35: note:
> >> initializing argument 3 of =E2=80=98void av_image_copy(uint8_t**, int*=
, const
> >> uint8_t**, const int*, AVPixelFormat, int, int)=E2=80=99
> >>=20
> >>     154 |                    const uint8_t *src_data[4], const int
> >>=20
> >> src_linesizes[4],
> >>=20
> >>         |                    ~~~~~~~~~~~~~~~^~~~~~~~~~~
> >>=20
> >> make[2]: ***
> >> [core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/build.m=
ake
> >> :42 6:
> >> core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/video/vi=
deo
> >> th
> >> umbdecoder_p.cpp.o] Error 1
> >> make[1]: *** [CMakeFiles/Makefile2:8861:
> >> core/libs/threadimageio/CMakeFiles/core_threadimageio_obj.dir/all] Err=
or
> >> 2
> >> make: *** [Makefile:146: all] Error 2
> >>=20
> >>=20
> >> $ gcc --version
> >> gcc (Debian 12.2.0-14+deb12u1) 12.2.0
> >>=20
> >>=20
> >> Thanks,
> >> Andrew