[gdal-dev] JPEGLSGetErrorAsString error compiling GDAL

andy aborruso at gmail.com
Tue Jul 26 02:38:50 PDT 2022


Hi,
compiling gdal 2.4.4, I have this error.

How to fix it?

Thank you

jpeglsdataset.cpp: In function ‘const char*
JPEGLSGetErrorAsString(CharlsApiResultType)’:
jpeglsdataset.cpp:125:35: error: ‘ImageTypeNotSupported’ is not a member of
‘CharlsApiResultType’ {aka ‘charls::jpegls_errc’}
  125 |         case CharlsApiResultType::ImageTypeNotSupported: return
"ImageTypeNotSupported";
      |                                   ^~~~~~~~~~~~~~~~~~~~~
jpeglsdataset.cpp:126:35: error: ‘UnsupportedBitDepthForTransform’ is not a
member of ‘CharlsApiResultType’ {aka ‘charls::jpegls_errc’}; did you mean
‘UnsupportedColorTransform’?
  126 |         case CharlsApiResultType::UnsupportedBitDepthForTransform:
return "UnsupportedBitDepthForTransform";
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   UnsupportedColorTransform
jpeglsdataset.cpp: In member function ‘CPLErr JPEGLSDataset::Uncompress()’:
jpeglsdataset.cpp:319:76: warning: ‘CharlsApiResultType JpegLsDecode(void*,
size_t, const void*, size_t, const JlsParameters*, char*)’ is deprecated:
Functionality will be removed in the next major version, use
CHARLS_NO_DEPRECATED_WARNING to suppress this deprecation.
[-Wdeprecated-declarations]
  319 |                             pabyCompressedData, nFileSize, nullptr,
nullptr);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220726/d280fbd2/attachment.htm>


More information about the gdal-dev mailing list