[gdal-dev] JPEGLSGetErrorAsString error compiling GDAL
Even Rouault
even.rouault at spatialys.com
Tue Jul 26 04:59:48 PDT 2022
If you don't need JPEGLS support, ./configure --without-charls
If you need it, try GDAL 3.4.3 with is the latest GDAL version having
support for CharLS
Le 26/07/2022 à 11:38, andy a écrit :
> 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);
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
More information about the gdal-dev
mailing list