[gdal-dev] proj.db and other resource files when building with vcpkg

Thomas Sevaldrud thomas at silentwings.no
Tue Oct 29 04:25:11 PDT 2024


Hi,

We are using gdal/proj through vcpkg, specifically the projections
framework with OGRSpatialReference,  and everything builds nicely, but when
running our application we get errors related to missing proj.db.

Now, I understand that we can fix it by setting the PROJ_LIB environment
variable or copying files to a suitable path. What I am wondering is if
this shouldn't already be handled by CMake or VCPKG, is there some step I
am missing here?

The resource files can be found in the build directory under
"vcpkg_installed/[triplet]/share/proj" so I can do some post-build stuff to
copy files into the app output directory, but before I start going that
route I'd like to know if this is the way to do it. I would guess that all
users of the vcpkg gdal package will run into this issue?

Cheers,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241029/15fc42df/attachment.htm>


More information about the gdal-dev mailing list