Build failure

Andrew Goodbody ajg02 at elfringham.co.uk
Tue Jan 18 23:59:29 GMT 2022


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