[GIS] Cannot find proj.db in QGIS 3.10.3

cprojqgis

I would like to program a standalone application using C++. In version 3.4 LTR, my program ran fine and I did not receive any notification when running it. However, when I compiled using the qgis library version 3.10.3 LTR, I received the following warnings:

proj_get_authorities_from_database: Cannot find proj.db
proj_create_from_wkt: Cannot find proj.db
proj_create_from_database: Cannot find proj.db
proj_create_from_database: Cannot find proj.db
proj_create_from_database: Cannot find proj.db

Can someone help me?

Best Answer

I have found the proj.db file in C:\OSGeo4W64\share\proj. So I solved the problem by setting environment variable PROJ_LIB=C:\OSGeo4W64\share\proj

Related Question