<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>You mean setting rpath in LDFLAGS of PROJ or GDAL ?</p>
    <p>CMake has a lot of tunings for RPATH, and some extra more for
      Mac  : CMAKE_INSTALL_RPATH, CMAKE_SKIP_RPATH,
      CMAKE_INSTALL_RPATH_USE_LINK_PATH, MACOSX_RPATH etc. . Users might
      need to tune them depending on their use cases. In
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/PROJ/commit/e1253e4b09d4260acc541acf15967356419197c9">https://github.com/OSGeo/PROJ/commit/e1253e4b09d4260acc541acf15967356419197c9</a>
      that went to 9.0.0, we've removed most RPATH releated overrides to
      just let CMake defaults, so users can tune them more freely.<br>
    </p>
    <div class="moz-cite-prefix">Le 11/05/2022 à 02:59, Sean Gillies a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOodmJpfUDnGu6J3vYzQtK8XeOe+9GFh-wNpOVyXVCZa6AKR7Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Explicitly setting rpath in LDFLAGS solved my PROJ
        9 problem. This feels like a regression. It isn't necessary for
        Linux and wasn't necessary for autotools builds of PROJ 8.2.1. 
        <div dir="auto"><br>
        </div>
        <div dir="auto">Back on topic: GDAL 3.5.0rc4 seems fine.</div>
        <div dir="auto"><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, May 10, 2022, 4:18 PM
          Sean Gillies <<a href="mailto:sean.gillies@gmail.com"
            moz-do-not-send="true" class="moz-txt-link-freetext">sean.gillies@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">
            <div>Thanks, Alan!</div>
            <div><br>
            </div>
            <div>I feel like we're in the middle of going backwards to
              go forwards when it comes to FOSS4G software builds.<br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Tue, May 10, 2022 at
              4:05 PM Alan Snow <<a
                href="mailto:alansnow21@gmail.com" target="_blank"
                rel="noreferrer" moz-do-not-send="true"
                class="moz-txt-link-freetext">alansnow21@gmail.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">
              <div dir="auto">This might be a helpful reference: <a
                  href="https://github.com/pyproj4/pyproj-wheels/issues/45"
                  target="_blank" rel="noreferrer"
                  moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/pyproj4/pyproj-wheels/issues/45</a></div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Tue, May 10, 2022,
                  4:33 PM Even Rouault <<a
                    href="mailto:even.rouault@spatialys.com"
                    target="_blank" rel="noreferrer"
                    moz-do-not-send="true" class="moz-txt-link-freetext">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">
                  <div>
                    <p>Sean,</p>
                    <p>So your issue is with a GDAL autoconf build. I
                      can't see any significant changes in <a
                        href="http://configure.ac" rel="noreferrer
                        noreferrer" target="_blank"
                        moz-do-not-send="true">configure.ac</a> between
                      GDAL 3.5.0 and 3.4.0 related to rpath. This has
                      probably not changed in years. I do see in your
                      logs that the linking line of GDAL has a<br>
                      <br>
                       -rpath /usr/local/lib <br>
                      <br>
                      and that there's a /usr/local/lib/libproj.25.dylib
                      file<br>
                      <br>
                      But perhaps the issue is more with the PROJ CMake
                      build (hypothesis that you could check by testing
                      with a PROJ 8.2.1 autoconf build) ? I don't
                      know... Mac + rpath is hostile territory for me. <br>
                    </p>
                    <p>Does running a GDAL binary, like gdalinfo, works
                      before using that delocate module ?<br>
                    </p>
                    <p>Yes 5413 is CMake specific.</p>
                    <p>Even<br>
                    </p>
                    <div>Le 10/05/2022 à 23:02, Sean Gillies a écrit :.<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>Hi Even,</div>
                        <div><br>
                        </div>
                        <div>I'm running into a problem with GDAL
                          3.5.0rc4 and PROJ 9.0.0 on macos. It occurs
                          when I use <a
                            href="https://github.com/matthew-brett/delocate"
                            rel="noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://github.com/matthew-brett/delocate</a>
                          to relocate GDAL and its dependencies into
                          rasterio wheels.<br>
                        </div>
                        <div><br>
                        </div>
                        <div>The error:</div>
                        <div><br>
                        </div>
                        <div>
                          <div>
                            <div><span> <span>ERROR:delocate.libsana: </span></span>
                            </div>
                          </div>
                          <div>
                            <div> </div>
                          </div>
                          <div>
                            <div> <span> <span>@rpath/libproj.25.dylib
                                  not found: </span></span> </div>
                          </div>
                          <div>
                            <div> </div>
                          </div>
                          <div>
                            <div> <span> <span> Needed by:
                                  /usr/local/lib/libgdal.31.dylib </span></span>
                            </div>
                          </div>
                          <div>
                            <div> </div>
                          </div>
                          <div>
                            <div> <span> <span> Search path:</span></span></div>
                            <div><span><span><br>
                                </span></span></div>
                          </div>
                          <div>
                            <div> </div>
                          </div>
                          <div>
                            <div> <span> <span> </span></span> </div>
                          </div>
                          <div>
                            <div> </div>
                          </div>
                          <span> <span><a
                                href="mailto:ERROR:delocate.libsana:@rpath/libproj.25.dylib"
                                rel="noreferrer noreferrer"
                                target="_blank" moz-do-not-send="true"
                                class="moz-txt-link-freetext">ERROR:delocate.libsana:@rpath/libproj.25.dylib</a>
                              not found, requested by
                              /usr/local/lib/libgdal.31.dylib</span></span></div>
                        <div><span><span><br>
                            </span></span></div>
                        <div><span><span>Here is its context:</span></span>
                          <a
href="https://github.com/rasterio/rasterio-wheels/runs/6375882173?check_suite_focus=true#step:4:4025"
                            rel="noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://github.com/rasterio/rasterio-wheels/runs/6375882173?check_suite_focus=true#step:4:4025</a>.</div>
                        <div><br>
                        </div>
                        <div>I searched the GDAL tracker for related
                          issues and only found <a
                            href="https://github.com/OSGeo/gdal/issues/5413"
                            rel="noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://github.com/OSGeo/gdal/issues/5413</a>.
                          It looks like it could be related, but it also
                          looks like the fix is cmake specific and isn't
                          available for autotools builds. Is that
                          correct?<br>
                        </div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">On Tue, May
                          10, 2022 at 8:13 AM Even Rouault <<a
                            href="mailto:even.rouault@spatialys.com"
                            rel="noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true"
                            class="moz-txt-link-freetext">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">Hi,<br>
                          <br>
                          I've issued a rc4 with the following fixes
                          w.r.t rc3:<br>
                          * fix build error with CMake >= 3.10.2 and
                          < 3.11<br>
                          * fix build errors with Fedora mingw32<br>
                          <br>
                          Updated archives:<br>
                          <br>
                             <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc4.tar.xz"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc4.tar.xz</a><br>
                             <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc4.tar.gz"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc4.tar.gz</a><br>
                             <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdal350rc4.zip"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdal350rc4.zip</a><br>
                          <br>
                          Even<br>
                          <br>
                          Le 06/05/2022 à 15:06, Even Rouault a écrit :<br>
                          > Hi,<br>
                          ><br>
                          > I have prepared a GDAL/OGR 3.5.0 release
                          candidate.<br>
                          ><br>
                          > NEWS at:<br>
                          ><br>
                          >   <a
                            href="https://github.com/OSGeo/gdal/blob/v3.5.0RC1/NEWS.md"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://github.com/OSGeo/gdal/blob/v3.5.0RC1/NEWS.md</a><br>
                          ><br>
                          > Note the first item about the new CMake
                          build system, and the <br>
                          > deprecation of the autoconf & nmake
                          build systems that will be removed <br>
                          > in GDAL 3.6.0<br>
                          ><br>
                          > Pick up an archive among the following
                          ones (by ascending size):<br>
                          ><br>
                          >   <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc1.tar.xz"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc1.tar.xz</a><br>
                          >   <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc1.tar.gz"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdal-3.5.0rc1.tar.gz</a><br>
                          >   <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdal350rc1.zip"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdal350rc1.zip</a><br>
                          ><br>
                          > A snapshot of the gdalautotest suite is
                          also available :<br>
                          ><br>
                          > <a
href="https://download.osgeo.org/gdal/3.5.0/gdalautotest-3.5.0rc1.tar.gz"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdalautotest-3.5.0rc1.tar.gz</a><br>
                          >   <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdalautotest-3.5.0rc1.zip"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdalautotest-3.5.0rc1.zip</a><br>
                          ><br>
                          > A snapshot of the documentation is at:<br>
                          ><br>
                          >   <a
                            href="https://download.osgeo.org/gdal/3.5.0/gdal350doc.zip"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://download.osgeo.org/gdal/3.5.0/gdal350doc.zip</a><br>
                          ><br>
                          > The GDAL-GRASS plugin sources and release
                          process has been moved to <br>
                          > <a
                            href="https://github.com/OSGeo/gdal-grass"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://github.com/OSGeo/gdal-grass</a><br>
                          ><br>
                          > I'll call for a vote promoting it to next
                          week if no serious problems <br>
                          > are reported before.<br>
                          ><br>
                          > The "release/3.5" branch has been created
                          for all bug fixes related to <br>
                          > 3.5.x. master is now targetting 3.6.0dev.<br>
                          ><br>
                          > Best regards,<br>
                          ><br>
                          > Even<br>
                          ><br>
                          -- <br>
                          <a href="http://www.spatialys.com"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">http://www.spatialys.com</a><br>
                          My software is free, but my time generally
                          not.<br>
                          <br>
_______________________________________________<br>
                          gdal-dev mailing list<br>
                          <a href="mailto:gdal-dev@lists.osgeo.org"
                            rel="noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true"
                            class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a><br>
                          <a
                            href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true"
                            class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
                        </blockquote>
                      </div>
                      <br clear="all">
                      <br>
                      -- <br>
                      <div dir="ltr">Sean Gillies</div>
                      <br>
                      <fieldset></fieldset>
                      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
                    </blockquote>
                    <pre cols="72">-- 
<a href="http://www.spatialys.com" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
                  </div>
                  _______________________________________________<br>
                  gdal-dev mailing list<br>
                  <a href="mailto:gdal-dev@lists.osgeo.org"
                    rel="noreferrer noreferrer" target="_blank"
                    moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a><br>
                  <a
                    href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"
                    rel="noreferrer noreferrer noreferrer"
                    target="_blank" moz-do-not-send="true"
                    class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
                </blockquote>
              </div>
            </blockquote>
          </div>
          <br clear="all">
          <br>
          -- <br>
          <div dir="ltr">Sean Gillies</div>
        </blockquote>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
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>