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

Paul N surveykshak at gmail.com
Sat Mar 27 02:15:51 PDT 2021


Hi, I am trying to build QGIS 3.16 on Window 10 Pro and I am getting error
messages:

Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' qgisgrass7
C:\OSGeo4W64\include\proj_api.h 37
Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file
D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassplugin.cpp)
grassplugin7 C:\OSGeo4W64\include\proj_api.h 37
Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file
D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrasstools.cpp)
grassplugin7 C:\OSGeo4W64\include\proj_api.h 37
Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file
D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmapcalc.cpp)
grassplugin7 C:\OSGeo4W64\include\proj_api.h 37
Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file
D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmodule.cpp)
grassplugin7 C:\OSGeo4W64\include\proj_api.h 37
Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file
D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmoduleinput.cpp)
grassplugin7 C:\OSGeo4W64\include\proj_api.h 37
Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file
D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmoduleparam.cpp)
grassplugin7 C:\OSGeo4W64\include\proj_api.h 37
Error C1189 #error:  'To use the proj_api.h you must define the macro
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file
D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmoduleoptions.cpp)
grassplugin7 C:\OSGeo4W64\include\proj_api.h 37



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>


Files are mentioned in error:
qgsgrassplugin.cpp
qgsgrasstools.cpp
qgsgrassmapcalc.cpp
qgsgrassmodule.cpp
qgsgrassmoduleinput.cpp
qgsgrassmoduleparam.cpp
qgsgrassmoduleoptions.cpp


Thanks in advance.

Any help?

Paul N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210327/f96863e0/attachment.html>


More information about the QGIS-Developer mailing list