Build failure

Andrew Goodbody ajg02 at elfringham.co.uk
Wed Jan 19 08:57:04 GMT 2022


Thanks, that worked.

Andrew

On 19/01/2022 03:00, Gilles Caulier wrote:
> hi Andrew,
> 
> Sounds like a problem with the older libjasper API. Fixed :
> 
> https://invent.kde.org/graphics/digikam/-/commit/5c0b79b67ba2c360ba39d4f26adc2a1286e68a4a 
> <https://invent.kde.org/graphics/digikam/-/commit/5c0b79b67ba2c360ba39d4f26adc2a1286e68a4a>
> 
> Best
> 
> Gilles
> 
> Le mer. 19 janv. 2022 à 00:59, Andrew Goodbody <ajg02 at elfringham.co.uk 
> <mailto:ajg02 at elfringham.co.uk>> a écrit :
> 
>     Any thoughts?
> 
>     [ 76%] Building CXX object
>     core/dplugins/dimg/jpeg2000/CMakeFiles/DImg_JPEG2000_Plugin.dir/dimgjpeg2000loader_load.cpp.o
>     /home/ag/src/dk6/core/dplugins/dimg/jpeg2000/dimgjpeg2000loader_load.cpp:
> 
>     In member function ‘virtual bool
>     DigikamJPEG2000DImgPlugin::DImgJPEG2000Loader::load(const QString&,
>     Digikam::DImgLoaderObserver*)’:
>     /home/ag/src/dk6/core/dplugins/dimg/jpeg2000/dimgjpeg2000loader_load.cpp:156:86:
> 
>     error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
>         156 |     jp2_image = jas_image_decode(jp2_stream, fmt,
>     decoderOptions.toLatin1().constData());
>             |
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
>             |
>                            |
>             |
>                            const char*
>     In file included from /usr/include/jasper/jasper.h:75,
>                        from
>     /home/ag/src/dk6/core/dplugins/dimg/jpeg2000/dimgjpeg2000loader_load.cpp:53:
>     /usr/include/jasper/jas_image.h:407:64: note:   initializing argument 3
>     of ‘jas_image_t* jas_image_decode(jas_stream_t*, int, char*)’
>         407 | jas_image_t *jas_image_decode(jas_stream_t *in, int fmt, char
>     *optstr);
>             |
>     ~~~~~~^~~~~~
>     make[2]: ***
>     [core/dplugins/dimg/jpeg2000/CMakeFiles/DImg_JPEG2000_Plugin.dir/build.make:118:
> 
>     core/dplugins/dimg/jpeg2000/CMakeFiles/DImg_JPEG2000_Plugin.dir/dimgjpeg2000loader_load.cpp.o]
> 
>     Error 1
>     make[1]: *** [CMakeFiles/Makefile2:19239:
>     core/dplugins/dimg/jpeg2000/CMakeFiles/DImg_JPEG2000_Plugin.dir/all]
>     Error 2
>     make: *** [Makefile:146: all] Error 2
> 



More information about the Digikam-devel mailing list