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
[email protected]
https://lists.osgeo.org/mailman/listinfo/proj

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
PROJ mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/proj

Reply via email to