OSGeo / homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
https://git.io/fhh3X
BSD 3-Clause "New" or "Revised" License
362 stars 111 forks source link

GDAL 3.1.2 error building with jpeg2000 driver #1395

Closed alazarolop closed 4 years ago

alazarolop commented 4 years ago

The formula isn't getting built. The log is available here.

The only error I detect

jpeg2000dataset.cpp:611:28: error: assigning to 'char *' from incompatible type 'const char *'
    if ( !(pszFormatName = jas_image_fmttostr( iFormat )) )
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [../o/jpeg2000dataset.lo] Error 1
make[1]: *** [jpeg2000-install-obj] Error 2
make: *** [frmts-target] Error 2

I need to invest more time. Help would be more than welcome.

alazarolop commented 4 years ago

This issue could be related to https://github.com/OSGeo/gdal/issues/2844

alazarolop commented 4 years ago

GDAL have been rebuilt without this functionality (221f6e21ffd0ea3108d9e7a686eeee3a60e309dc) until a new version with a fix is released.