<div dir="ltr">Thank you Even, then I'll add some post-build magic. <div><br></div><div>Looking forward to Proj 9.6 then! :-D</div><div><br></div><div>- Thomas<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 29, 2024 at 12:33 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thomas,<br>
<br>
(that would be more a question for the proj-dev mailing list)<br>
<br>
quickly looking at the vcpkg PROJ recipe at <br>
<a href="https://github.com/microsoft/vcpkg/tree/master/ports/proj" rel="noreferrer" target="_blank">https://github.com/microsoft/vcpkg/tree/master/ports/proj</a> I don't see <br>
they do anything particular related to automated setting PROJ_DATA <br>
(PROJ_LIB is now a deprecated name), so you likely have to do it now . <br>
(conda-forge builds use a trick where upon installation the hard-coded <br>
path within the PROJ library is modified to match the location of your <br>
conda environment)<br>
<br>
The good news is that in PROJ 9.6, packagers will be able to build PROJ <br>
with proj.db embedded in the library, using the new capabilities offered <br>
by <a href="https://proj.org/en/latest/community/rfc/rfc-8.html" rel="noreferrer" target="_blank">https://proj.org/en/latest/community/rfc/rfc-8.html</a><br>
<br>
Even<br>
<br>
Le 29/10/2024 à 12:25, Thomas Sevaldrud via gdal-dev a écrit :<br>
> Hi,<br>
><br>
> We are using gdal/proj through vcpkg, specifically the projections <br>
> framework with OGRSpatialReference, and everything builds nicely, but <br>
> when running our application we get errors related to missing proj.db.<br>
><br>
> Now, I understand that we can fix it by setting the PROJ_LIB <br>
> environment variable or copying files to a suitable path. What I am <br>
> wondering is if this shouldn't already be handled by CMake or VCPKG, <br>
> is there some step I am missing here?<br>
><br>
> The resource files can be found in the build directory under <br>
> "vcpkg_installed/[triplet]/share/proj" so I can do some post-build <br>
> stuff to copy files into the app output directory, but before I start <br>
> going that route I'd like to know if this is the way to do it. I would <br>
> guess that all users of the vcpkg gdal package will run into this issue?<br>
><br>
> Cheers,<br>
> Thomas<br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
Butcher of all kinds of standards, open or closed formats. At the end, this is just about bytes.<br>
<br>
</blockquote></div>