issues with internal libjpeg and linking libjpeg in programs using gdal
|Reported by:||nowakpl||Owned by:||warmerdam|
GDAL was built with internal jpeg library for 12bit support but libjpeg is also needed in the external program linking with gdal. This results in: Wrong JPEG library version: library is 62, caller expects 80 when linking gdal first, external libjpeg second or in: ERROR 1: JPEGLib:Wrong JPEG library version: library is 80, caller expects 62 Assertion failed: (sp->cinfo.comm.is_decompressor), function JPEGSetupDecode, file tif_jpeg.c, line 958. when linking with external libjpeg first, gdal second. A simple fix would be to change (using defines) the names of internal libjpeg functions to different from normal libjpeg function names.