[QGIS-Developer] Error : To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'

Jürgen E. Fischer jef at norbit.de
Sat Mar 27 03:56:43 PDT 2021


On Sat, 27. Mar 2021 at 14:45:51 +0530, Paul N wrote:
> Hi, I am trying to build QGIS 3.16 on Window 10 Pro and I am getting error
> messages:

Apparently not the latest version of 3.16.
 
> I had added the following lines in files given below :
 
> #ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
> #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
> #endif
> #include <proj_api.h>

That breaks with PROJ8.

Current 3.16 reads:

#if defined(PROJ_VERSION_MAJOR) && PROJ_VERSION_MAJOR>=6
#if defined(PROJ_VERSION_MAJOR) && PROJ_VERSION_MAJOR>=6 && PROJ_VERSION_MAJOR<8
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#endif


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210327/89dbea51/attachment.sig>


More information about the QGIS-Developer mailing list