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
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
