[PROJ] conda + qgis + PROJ

Even Rouault even.rouault at spatialys.com
Thu Jun 13 15:15:02 PDT 2024


Javier,

this is because Conda builds have the RPATH set to "$ORIGIN/../lib"

$ readelf -d ~/miniconda3/envs/gdal_master_env/bin/gdalinfo | grep RPATH
  0x000000000000000f (RPATH)              Library rpath: [$ORIGIN/../lib]

And apparently this has priority over LD_LIBRARY_PATH

You can try something like the following

install the "chrpath" utility ("chrpath" package on Debian/Ubuntu)

cp /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis 
/home/jshaw/anaconda3/envs/qgis_stable/bin/qgis_no_rpath

chrpath -d /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis_no_rpath

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

Or mess with with the content of 
/home/jshaw/anaconda3/envs/qgis_stable/lib, to symlink its libproj.so.25 
to yours

Even

Le 13/06/2024 à 23:52, Javier Jimenez Shaw via PROJ a écrit :
> Hi
>
> I am trying to run QGIS (from conda) using the PROJ version I just 
> compiled (master)
> I thought that LD_LIBRARY_PATH should be enough, but this is not 
> taking the compiled libproj.so, but the one from conda:
>
> LD_LIBRARY_PATH=/home/jshaw/work/PROJ/build/lib 
> /home/jshaw/anaconda3/envs/qgis_stable/bin/qgis
>
> How should I do it? I do not want to compile QGIS, only to link with 
> my version of PROJ.
>
> Thanks
> .___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__
>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20240614/d8c1de5a/attachment.htm>


More information about the PROJ mailing list