Hi,
PROJ will be permanently removing proj_api.h starting from version 7. Solution is to modify wgrib2.patch file and append -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 at line 100 and adjust md5 sum accordingly
From https://github.com/OSGeo/PROJ/issues/836:
From version 6.0.0 proj_api.h will be deprecated. proj_api.h will not be included as a public header file from PROJ 7.0.0 and onwards. We want to make that clear from version 6.0.0 by requiring that users that want to use proj_api.h #define a macro like ACCEPT_USE_OF_DEPRECATED_PROJ_API_H. If the macro is not defined a compile-time error should be raised declaring that the user is including a deprecated API.
Pinned Comments
zqianem commented on 2024-07-20 04:27 (UTC)
Upstream moved from https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ to https://github.com/NOAA-EMC/wgrib2