<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 04/07/2022 à 07:32, Brad Hards a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:2458129.kjLP42Xki5@audax">
<pre class="moz-quote-pre" wrap="">On Monday, 4 July 2022 3:19:55 PM AEST Nik Sands wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Is it expected that these GDAL utilities (such as gdalinfo) would look for
GDAL in /usr/lib instead of the location in which it was actually built?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
No.
I think your conceptual problem is expecting that the GDAL utilities are doing
the looking. That isn't how it works. Instead, the system loader does the
search based on what the utility says it needs.
That is, a dynamically linked gdalinfo says the "what", not the "where".
If you put your libraries somewhere non-standard, you need to tell the system
where to get them from. Usually LD_LIBRARY_PATH environment variable or
something like that will help.
</pre>
</blockquote>
<p>That would rather be DYLD_LIBRARY_PATH on Mac</p>
<p>Building GDAL with "cmake -D<span class="sig-name descname"><span
class="pre">GDAL_SET_INSTALL_RELATIVE_RPATH</span></span><span
class="sig-prename descclassname"><span class="pre">=ON" might
also help. Cf
<a class="moz-txt-link-freetext" href="https://gdal.org/build_hints.html#cmdoption-arg-GDAL_SET_INSTALL_RELATIVE_RPATH">https://gdal.org/build_hints.html#cmdoption-arg-GDAL_SET_INSTALL_RELATIVE_RPATH</a><br>
</span></span></p>
<blockquote type="cite" cite="mid:2458129.kjLP42Xki5@audax">
<pre class="moz-quote-pre" wrap="">
This isn't anything specific to GDAL.
Brad
_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>