<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Javier,</p>
    <p>this is because Conda builds have the RPATH set to "$ORIGIN/../lib"</p>
    <p>$ readelf -d ~/miniconda3/envs/gdal_master_env/bin/gdalinfo |
      grep RPATH<br>
       0x000000000000000f (RPATH)              Library rpath:
      [$ORIGIN/../lib]<br>
    </p>
    <p>And apparently this has priority over LD_LIBRARY_PATH</p>
    <p>You can try something like the following</p>
    <p>install the "chrpath" utility ("chrpath" package on
      Debian/Ubuntu)</p>
    <p>cp /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis
      /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis_no_rpath</p>
    <p>chrpath -d
      /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis_no_rpath</p>
    <p>LD_LIBRARY_PATH=/home/jshaw/work/PROJ/build/lib:/home/jshaw/anaconda3/envs/qgis_stable/lib
      /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis_no_rpath</p>
    <p>Or mess with with the content of
      /home/jshaw/anaconda3/envs/qgis_stable/lib, to symlink its
      libproj.so.25 to yours<br>
    </p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 13/06/2024 à 23:52, Javier Jimenez
      Shaw via PROJ a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CADRrdKu93-=GdUUHOWtG-=FA-vieyxLgKefdPyirM7X2ExWTGA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi</div>
        <div><br>
        </div>
        <div>I am trying to run QGIS (from conda) using the PROJ version
          I just compiled (master)<br>
        </div>
        <div>I thought that LD_LIBRARY_PATH should be enough, but this
          is not taking the compiled libproj.so, but the one from conda:<br>
        </div>
        <div><br>
        </div>
        <div>LD_LIBRARY_PATH=/home/jshaw/work/PROJ/build/lib
          /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis</div>
        <div><br>
        </div>
        <div>How should I do it? I do not want to compile QGIS, only to
          link with my version of PROJ.</div>
        <div><br>
        </div>
        <div>Thanks<br>
        </div>
        <div>
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ...
                  .... ._ .__</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
PROJ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</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>