Build failure
Gilles Caulier
caulier.gilles at gmail.com
Wed Jan 19 03:00:10 GMT 2022
hi Andrew,
Sounds like a problem with the older libjasper API. Fixed :
https://invent.kde.org/graphics/digikam/-/commit/5c0b79b67ba2c360ba39d4f26adc2a1286e68a4a
Best
Gilles
Le mer. 19 janv. 2022 à 00:59, Andrew Goodbody <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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20220119/041ed9ab/attachment.htm>
More information about the Digikam-devel
mailing list